Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 120 kB / 18.49 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 215.1 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.563/1.563, allocations: 230.6 MB / 254.8 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1924/0.1924, allocations: 38.51 MB / 349.4 MB, free: 2.586 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 67.89 kB / 487.8 MB, free: 22.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1193, allocations: 62.41 MB / 0.5374 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.01039/0.1297, allocations: 7.664 MB / 0.5448 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004931/0.1347, allocations: 2.379 MB / 0.5472 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006528/0.1353, allocations: 39.69 kB / 0.5472 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002361/0.1377, allocations: 0.8671 MB / 0.548 GB, free: 12.56 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001267/0.1389, allocations: 0.5091 MB / 0.5485 GB, free: 12.05 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.1402, allocations: 455 kB / 0.549 GB, free: 11.61 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00158/0.1418, allocations: 1.278 MB / 0.5502 GB, free: 10.32 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008506/0.1426, allocations: 0.5255 MB / 0.5507 GB, free: 9.785 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009795/0.1436, allocations: 0.5719 MB / 0.5513 GB, free: 9.211 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001015/0.1446, allocations: 0.7008 MB / 0.552 GB, free: 8.508 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.1448, allocations: 75.94 kB / 0.5521 GB, free: 8.434 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004712/0.1452, allocations: 235.7 kB / 0.5523 GB, free: 8.203 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004866/0.1457, allocations: 498.6 kB / 0.5528 GB, free: 7.715 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000568/0.1463, allocations: 0.5287 MB / 0.5533 GB, free: 7.184 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001584/0.1479, allocations: 1.249 MB / 0.5545 GB, free: 5.93 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1479, allocations: 0 / 0.5545 GB, free: 5.93 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1479, allocations: 0 / 0.5545 GB, free: 5.93 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.1479, allocations: 0 / 0.5545 GB, free: 5.93 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002397/0.1503, allocations: 1.34 MB / 0.5558 GB, free: 4.527 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.1503, allocations: 12.03 kB / 0.5558 GB, free: 4.516 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.515e-05/0.1504, allocations: 22.19 kB / 0.5558 GB, free: 4.496 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001781/0.1505, allocations: 143.7 kB / 0.556 GB, free: 4.348 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001121/0.1517, allocations: 204.1 kB / 0.5562 GB, free: 4.148 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001242/0.1529, allocations: 0.7394 MB / 0.5569 GB, free: 3.367 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.519e-05/0.153, allocations: 62.12 kB / 0.5569 GB, free: 3.309 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.1531, allocations: 80 kB / 0.557 GB, free: 3.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/0.1549, allocations: 1.175 MB / 0.5582 GB, free: 1.973 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.117e-05/0.155, allocations: 11.89 kB / 0.5582 GB, free: 1.961 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.252e-05/0.155, allocations: 39.92 kB / 0.5582 GB, free: 1.922 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.019e-05/0.1551, allocations: 53.98 kB / 0.5583 GB, free: 1.871 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.1567, allocations: 0.9327 MB / 0.5592 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005973/0.1627, allocations: 4.773 MB / 0.5638 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.1639, allocations: 0.6238 MB / 0.5644 GB, free: 11.31 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005451/0.1644, allocations: 335.8 kB / 0.5648 GB, free: 10.98 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.157e-05/0.1645, allocations: 16.48 kB / 0.5648 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007065/0.1652, allocations: 439.8 kB / 0.5652 GB, free: 10.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=65): time 2.064e-06/0.1652, allocations: 0 / 0.5652 GB, free: 10.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=66): time 0.00571/0.1709, allocations: 2.467 MB / 0.5676 GB, free: 7.973 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.171, allocations: 162.8 kB / 0.5678 GB, free: 7.777 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007475/0.1718, allocations: 0.6017 MB / 0.5684 GB, free: 7.168 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.792e-05/0.1718, allocations: 37.7 kB / 0.5684 GB, free: 7.125 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004271/0.1722, allocations: 495.9 kB / 0.5689 GB, free: 6.633 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/0.1725, allocations: 238 kB / 0.5691 GB, free: 6.398 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002311/0.1727, allocations: 146.6 kB / 0.5692 GB, free: 6.246 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002148/0.1729, allocations: 394.7 kB / 0.5696 GB, free: 5.852 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004802/0.1734, allocations: 289.8 kB / 0.5699 GB, free: 5.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007194/0.1741, allocations: 0.564 MB / 0.5704 GB, free: 4.883 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/0.1754, allocations: 0.9533 MB / 0.5714 GB, free: 3.793 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1754, allocations: 0 / 0.5714 GB, free: 3.793 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002218/0.1777, allocations: 1.216 MB / 0.5726 GB, free: 2.559 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.134e-05/0.1777, allocations: 37.7 kB / 0.5726 GB, free: 2.516 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.1777, allocations: 8 kB / 0.5726 GB, free: 2.508 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/0.1789, allocations: 346 kB / 0.5729 GB, free: 2.164 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005285/0.1794, allocations: 139.8 kB / 0.5731 GB, free: 2.027 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006947/0.1863, allocations: 5.394 MB / 0.5783 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005946/0.1869, allocations: 35.98 kB / 0.5784 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.9e-05/0.187, allocations: 40 kB / 0.5784 GB, free: 12.26 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005309/0.1875, allocations: 355.8 kB / 0.5787 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001222/0.1877, allocations: 79.47 kB / 0.5788 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00205/0.1897, allocations: 1.032 MB / 0.5798 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.1897, allocations: 8 kB / 0.5798 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.1897, allocations: 4 kB / 0.5798 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.1897, allocations: 7.984 kB / 0.5798 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003473/0.1932, allocations: 2.047 MB / 0.5818 GB, free: 8.602 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.1932, allocations: 3.984 kB / 0.5818 GB, free: 8.598 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003109/0.1935, allocations: 67.91 kB / 0.5819 GB, free: 8.531 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009335/0.1945, allocations: 317.5 kB / 0.5822 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.734e-05/0.1945, allocations: 19.98 kB / 0.5822 GB, free: 8.195 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006652/0.2012, allocations: 5.312 MB / 0.5874 GB, free: 2.578 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.2012, allocations: 0 / 0.5874 GB, free: 2.578 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/0.2032, allocations: 1.113 MB / 0.5885 GB, free: 1.414 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002232/0.2034, allocations: 152.6 kB / 0.5887 GB, free: 1.246 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.293e-05/0.2035, allocations: 19.94 kB / 0.5887 GB, free: 1.227 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003512/0.2039, allocations: 23.98 kB / 0.5887 GB, free: 1.203 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.204, allocations: 56.36 kB / 0.5887 GB, free: 1.148 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.635e-05/0.2041, allocations: 20 kB / 0.5888 GB, free: 1.129 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005727/0.2046, allocations: 419 kB / 0.5892 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2046, allocations: 0 / 0.5892 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001/0.2056, allocations: 272 kB / 0.5894 GB, free: 472 kB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2679/0.4736, allocations: 1.666 MB / 0.5911 GB, free: 49.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001889/0.4754, allocations: 1.12 MB / 0.5921 GB, free: 49.54 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.4754, allocations: 4.844 kB / 0.5922 GB, free: 49.54 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.4765, allocations: 0.7334 MB / 0.5929 GB, free: 49.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009579/0.4775, allocations: 178.9 kB / 0.593 GB, free: 49.22 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.4888, allocations: 7.304 MB / 0.6002 GB, free: 45.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009814/0.4898, allocations: 1.11 MB / 0.6013 GB, free: 45.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006318/0.4904, allocations: 170.8 kB / 0.6014 GB, free: 45.03 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003816/0.4908, allocations: 325.2 kB / 0.6017 GB, free: 44.78 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4908, allocations: 0 / 0.6017 GB, free: 44.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05152/0.5423, allocations: 18.5 MB / 0.6198 GB, free: 36.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/14.95, allocations: 9.547 kB / 0.6198 GB, free: 36.48 MB / 446.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.999865647987463] Failed to read output from testmodel.py, exit status != 0: 15.113753050973173 15.123932907 14.97377737 Calling exit ...