Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007828/0.0007828, allocations: 89.59 kB / 16.65 MB, free: 6.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008437/0.0008438, allocations: 182 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.196/1.196, allocations: 205.4 MB / 223.7 MB, free: 13 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1638/0.1638, allocations: 38.06 MB / 310.1 MB, free: 5.891 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005239/0.0005239, allocations: 12.56 kB / 377.3 MB, free: 2.598 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2247, allocations: 56.33 MB / 433.6 MB, free: 18.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.002984/0.2277, allocations: 3.35 MB / 437 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.2292, allocations: 1.568 MB / 438.5 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.2293, allocations: 7.938 kB / 438.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.2295, allocations: 39.7 kB / 438.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004646/0.2299, allocations: 263.2 kB / 438.8 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002093/0.2302, allocations: 115.7 kB / 438.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000369/0.2305, allocations: 0.5689 MB / 439.5 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004933/0.2311, allocations: 322.8 kB / 439.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.2312, allocations: 119.4 kB / 439.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.2314, allocations: 159.4 kB / 440.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.027e-05/0.2314, allocations: 11.98 kB / 440.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000391/0.2318, allocations: 403 kB / 440.5 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.73e-05/0.2319, allocations: 95.77 kB / 440.6 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.043e-05/0.232, allocations: 121.2 kB / 440.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003201/0.2323, allocations: 378.8 kB / 441.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.2323, allocations: 0 / 441.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2323, allocations: 0 / 441.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.187e-06/0.2324, allocations: 4 kB / 441.1 MB, free: 11.22 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000496/0.2329, allocations: 482.6 kB / 441.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.2329, allocations: 8.031 kB / 441.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.052e-05/0.233, allocations: 54.73 kB / 441.6 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007752/0.2337, allocations: 92.55 kB / 441.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.234, allocations: 263.7 kB / 442 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.234, allocations: 16.38 kB / 442 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.843e-05/0.234, allocations: 16.38 kB / 442 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003845/0.2344, allocations: 329.5 kB / 442.3 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.2344, allocations: 0 / 442.3 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.2345, allocations: 4 kB / 442.3 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.259e-05/0.2345, allocations: 23.98 kB / 442.3 MB, free: 9.836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003412/0.2349, allocations: 283.7 kB / 442.6 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.2361, allocations: 1.287 MB / 443.9 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003476/0.2365, allocations: 229.1 kB / 444.1 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.2366, allocations: 102 kB / 444.2 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.2366, allocations: 3.938 kB / 444.2 MB, free: 7.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.2366, allocations: 38.5 kB / 444.3 MB, free: 7.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.362e-06/0.2366, allocations: 4 kB / 444.3 MB, free: 7.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.000643/0.2373, allocations: 428.8 kB / 444.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.2373, allocations: 89.03 kB / 444.8 MB, free: 7.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.2375, allocations: 202.4 kB / 445 MB, free: 7.039 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.2375, allocations: 29.69 kB / 445 MB, free: 7.004 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.182e-05/0.2376, allocations: 159.9 kB / 445.2 MB, free: 6.844 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.505e-05/0.2376, allocations: 59.11 kB / 445.2 MB, free: 6.785 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.257e-05/0.2376, allocations: 29.64 kB / 445.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.901e-05/0.2377, allocations: 326.8 kB / 445.6 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.2378, allocations: 87.95 kB / 445.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.238, allocations: 164.4 kB / 445.8 MB, free: 6.145 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003038/0.2383, allocations: 263.6 kB / 446.1 MB, free: 5.859 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2383, allocations: 4 kB / 446.1 MB, free: 5.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003213/0.2386, allocations: 293.3 kB / 446.4 MB, free: 5.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.2386, allocations: 7.938 kB / 446.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2386, allocations: 7.984 kB / 446.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.2387, allocations: 4 kB / 446.4 MB, free: 5.543 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.2389, allocations: 55.91 kB / 446.4 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.2389, allocations: 7.938 kB / 446.4 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.239, allocations: 15.98 kB / 446.5 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.2391, allocations: 11.98 kB / 446.5 MB, free: 5.453 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001006/0.2392, allocations: 149.9 kB / 446.6 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.729e-05/0.2392, allocations: 19.75 kB / 446.6 MB, free: 5.277 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003039/0.2395, allocations: 231.3 kB / 446.9 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.2395, allocations: 4 kB / 446.9 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2395, allocations: 4 kB / 446.9 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.2395, allocations: 0 / 446.9 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009398/0.2405, allocations: 0.9555 MB / 447.8 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2405, allocations: 4 kB / 447.8 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.2406, allocations: 39.91 kB / 447.9 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.2406, allocations: 8 kB / 447.9 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.2407, allocations: 7.938 kB / 447.9 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.2407, allocations: 4 kB / 447.9 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.2407, allocations: 7.938 kB / 447.9 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002749/0.241, allocations: 410.8 kB / 448.3 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.894e-05/0.241, allocations: 108.9 kB / 448.4 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.968e-05/0.241, allocations: 7.938 kB / 448.4 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.2412, allocations: 15.98 kB / 448.4 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.085e-05/0.2412, allocations: 23.86 kB / 448.5 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.2413, allocations: 8 kB / 448.5 MB, free: 3.266 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.745e-05/0.2413, allocations: 151.2 kB / 448.6 MB, free: 3.117 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2413, allocations: 4 kB / 448.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000338/0.2417, allocations: 52 kB / 448.7 MB, free: 3.062 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004392/0.2421, allocations: 0.9442 MB / 449.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002664/0.2424, allocations: 208.8 kB / 449.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.2424, allocations: 4.125 kB / 449.8 MB, free: 1.836 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.2425, allocations: 99.7 kB / 449.9 MB, free: 1.738 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004799/0.243, allocations: 51.66 kB / 450 MB, free: 1.688 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/0.2454, allocations: 2.773 MB / 452.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.2457, allocations: 0.7558 MB / 453.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001456/0.2459, allocations: 57.48 kB / 453.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.246, allocations: 67.41 kB / 453.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.246, allocations: 0 / 453.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01443/0.2605, allocations: 3.737 MB / 457.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000214/0.2607, allocations: 197.3 kB / 457.5 MB, free: 9.836 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.014, allocations: 0 / 457.5 MB, free: 9.836 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1)