Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001308/0.001308, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.001447/0.001447, allocations: 219 kB / 21.46 MB, free: 1.586 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.696/1.696, allocations: 230.6 MB / 254.8 MB, free: 15.06 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1968/0.1968, allocations: 38.5 MB / 349.4 MB, free: 2.555 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_latest_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.001905/0.001905, allocations: 67.91 kB / 487.8 MB, free: 22.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1205, allocations: 62.42 MB / 0.5374 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.01064/0.1312, allocations: 7.667 MB / 0.5448 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005215/0.1364, allocations: 2.376 MB / 0.5472 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009435/0.1373, allocations: 35.69 kB / 0.5472 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00271/0.14, allocations: 0.8751 MB / 0.5481 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001584/0.1416, allocations: 0.5092 MB / 0.5485 GB, free: 12 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.143, allocations: 451 kB / 0.549 GB, free: 11.56 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001943/0.145, allocations: 1.281 MB / 0.5502 GB, free: 10.28 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000952/0.1459, allocations: 0.5176 MB / 0.5507 GB, free: 9.746 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001099/0.147, allocations: 0.5758 MB / 0.5513 GB, free: 9.168 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001236/0.1483, allocations: 0.7086 MB / 0.552 GB, free: 8.457 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002056/0.1485, allocations: 79.94 kB / 0.5521 GB, free: 8.379 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006293/0.1491, allocations: 223.7 kB / 0.5523 GB, free: 8.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006026/0.1497, allocations: 0.4908 MB / 0.5528 GB, free: 7.668 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009193/0.1506, allocations: 0.5247 MB / 0.5533 GB, free: 7.141 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001876/0.1525, allocations: 1.249 MB / 0.5545 GB, free: 5.887 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1525, allocations: 0 / 0.5545 GB, free: 5.887 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1525, allocations: 0 / 0.5545 GB, free: 5.887 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.861e-05/0.1526, allocations: 0 / 0.5545 GB, free: 5.887 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.002953/0.1555, allocations: 1.336 MB / 0.5558 GB, free: 4.488 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.1556, allocations: 12.03 kB / 0.5558 GB, free: 4.477 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.373e-05/0.1556, allocations: 22.19 kB / 0.5558 GB, free: 4.457 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002333/0.1559, allocations: 147.7 kB / 0.556 GB, free: 4.305 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/0.1571, allocations: 204.1 kB / 0.5562 GB, free: 4.105 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/0.1586, allocations: 0.7355 MB / 0.5569 GB, free: 3.328 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.171e-05/0.1587, allocations: 66.12 kB / 0.5569 GB, free: 3.266 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/0.1588, allocations: 79.98 kB / 0.557 GB, free: 3.188 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001985/0.1608, allocations: 1.179 MB / 0.5582 GB, free: 1.926 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.533e-05/0.1609, allocations: 7.891 kB / 0.5582 GB, free: 1.918 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.79e-05/0.161, allocations: 39.94 kB / 0.5582 GB, free: 1.879 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.661e-05/0.161, allocations: 57.97 kB / 0.5583 GB, free: 1.824 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.1628, allocations: 0.9249 MB / 0.5592 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006915/0.1697, allocations: 4.777 MB / 0.5638 GB, free: 11.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.171, allocations: 0.6238 MB / 0.5645 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005997/0.1716, allocations: 335.8 kB / 0.5648 GB, free: 10.93 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.171e-05/0.1716, allocations: 24.42 kB / 0.5648 GB, free: 10.91 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007769/0.1724, allocations: 435.8 kB / 0.5652 GB, free: 10.45 MB / 430.1 MB Notification: Performance of pre-optimization done (n=65): time 3.156e-06/0.1724, allocations: 0 / 0.5652 GB, free: 10.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=66): time 0.006505/0.1789, allocations: 2.455 MB / 0.5676 GB, free: 7.938 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/0.1791, allocations: 162.8 kB / 0.5678 GB, free: 7.742 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009407/0.18, allocations: 0.6057 MB / 0.5684 GB, free: 7.129 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.878e-05/0.1801, allocations: 33.7 kB / 0.5684 GB, free: 7.09 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00052/0.1806, allocations: 0.496 MB / 0.5689 GB, free: 6.586 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002788/0.1809, allocations: 230 kB / 0.5691 GB, free: 6.359 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002666/0.1811, allocations: 154.6 kB / 0.5692 GB, free: 6.199 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002386/0.1814, allocations: 390.7 kB / 0.5696 GB, free: 5.809 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005218/0.1819, allocations: 285.8 kB / 0.5699 GB, free: 5.531 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007823/0.1827, allocations: 0.564 MB / 0.5704 GB, free: 4.844 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.1841, allocations: 0.9456 MB / 0.5714 GB, free: 3.762 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.1841, allocations: 4 kB / 0.5714 GB, free: 3.758 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002514/0.1866, allocations: 1.224 MB / 0.5726 GB, free: 2.516 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.772e-05/0.1866, allocations: 41.69 kB / 0.5726 GB, free: 2.469 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.1867, allocations: 12 kB / 0.5726 GB, free: 2.457 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.1879, allocations: 333.6 kB / 0.5729 GB, free: 2.125 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005862/0.1884, allocations: 147.7 kB / 0.5731 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007246/0.1957, allocations: 5.39 MB / 0.5783 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007411/0.1964, allocations: 35.94 kB / 0.5784 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.1966, allocations: 39.98 kB / 0.5784 GB, free: 12.22 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.0006849/0.1972, allocations: 355.8 kB / 0.5787 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002055/0.1975, allocations: 79.47 kB / 0.5788 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/0.1997, allocations: 1.032 MB / 0.5798 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.1997, allocations: 8 kB / 0.5798 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.1997, allocations: 4 kB / 0.5798 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.1997, allocations: 3.984 kB / 0.5798 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003898/0.2036, allocations: 2.05 MB / 0.5818 GB, free: 8.562 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.2036, allocations: 7.938 kB / 0.5819 GB, free: 8.555 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003723/0.204, allocations: 71.89 kB / 0.5819 GB, free: 8.484 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009934/0.205, allocations: 321.5 kB / 0.5822 GB, free: 8.164 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.529e-05/0.2051, allocations: 16 kB / 0.5822 GB, free: 8.148 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007133/0.2122, allocations: 5.305 MB / 0.5874 GB, free: 2.539 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.553e-06/0.2122, allocations: 4.031 kB / 0.5874 GB, free: 2.535 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00236/0.2146, allocations: 1.116 MB / 0.5885 GB, free: 1.367 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003197/0.2149, allocations: 148.6 kB / 0.5887 GB, free: 1.203 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.2151, allocations: 19.92 kB / 0.5887 GB, free: 1.184 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004234/0.2155, allocations: 16 kB / 0.5887 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.2157, allocations: 64.36 kB / 0.5888 GB, free: 1.105 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.522e-05/0.2157, allocations: 20 kB / 0.5888 GB, free: 1.086 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006809/0.2164, allocations: 423 kB / 0.5892 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2164, allocations: 0 / 0.5892 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001151/0.2175, allocations: 264 kB / 0.5894 GB, free: 432 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.2363/0.4538, allocations: 1.666 MB / 0.5911 GB, free: 49.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002133/0.4559, allocations: 1.116 MB / 0.5921 GB, free: 49.56 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.4559, allocations: 1.125 kB / 0.5921 GB, free: 49.56 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.4571, allocations: 0.7405 MB / 0.5929 GB, free: 49.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.4582, allocations: 178.6 kB / 0.593 GB, free: 49.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01402/0.4722, allocations: 7.307 MB / 0.6002 GB, free: 45.81 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001446/0.4736, allocations: 1.106 MB / 0.6013 GB, free: 45.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009856/0.4746, allocations: 177.6 kB / 0.6014 GB, free: 45.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004039/0.475, allocations: 329.2 kB / 0.6017 GB, free: 44.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.713e-06/0.475, allocations: 1.188 kB / 0.6017 GB, free: 44.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04953/0.5245, allocations: 18.5 MB / 0.6198 GB, free: 36.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.18, allocations: 13.73 kB / 0.6198 GB, free: 36.4 MB / 446.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.35066264803754] Failed to read output from testmodel.py, exit status != 0: 15.329551358998287 15.33888438 15.184053385 Calling exit ...