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.001382/0.001382, allocations: 107.5 kB / 21.21 MB, free: 0.6523 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.001539/0.001539, allocations: 211.7 kB / 24.51 MB, free: 3.941 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.547/1.547, allocations: 230.6 MB / 258.3 MB, free: 7.773 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.1864/0.1864, allocations: 38.56 MB / 353.2 MB, free: 12.28 MB / 286.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.002338/0.002338, allocations: 59.91 kB / 493.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3941/0.3964, allocations: 62.46 MB / 0.5427 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.01323/0.4096, allocations: 7.163 MB / 0.5497 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006991/0.4166, allocations: 2.215 MB / 0.5519 GB, free: 9.055 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001313/0.418, allocations: 38.06 kB / 0.5519 GB, free: 9.035 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003009/0.421, allocations: 0.8326 MB / 0.5527 GB, free: 8.402 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002089/0.423, allocations: 0.5084 MB / 0.5532 GB, free: 7.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001989/0.425, allocations: 466.1 kB / 0.5536 GB, free: 7.641 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002826/0.4279, allocations: 1.277 MB / 0.5549 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001505/0.4294, allocations: 0.516 MB / 0.5554 GB, free: 6.582 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001819/0.4312, allocations: 0.5763 MB / 0.556 GB, free: 6.246 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002126/0.4333, allocations: 0.7025 MB / 0.5566 GB, free: 5.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004985/0.4338, allocations: 73.84 kB / 0.5567 GB, free: 5.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001495/0.4353, allocations: 237.8 kB / 0.5569 GB, free: 5.648 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001118/0.4364, allocations: 498.7 kB / 0.5574 GB, free: 5.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001409/0.4378, allocations: 453.9 kB / 0.5579 GB, free: 4.715 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002494/0.4403, allocations: 1.257 MB / 0.5591 GB, free: 3.453 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.001e-05/0.4403, allocations: 4 kB / 0.5591 GB, free: 3.449 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.4403, allocations: 3.938 kB / 0.5591 GB, free: 3.445 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.059e-05/0.4404, allocations: 0 / 0.5591 GB, free: 3.445 MB / 398.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.003902/0.4443, allocations: 1.253 MB / 0.5603 GB, free: 2.148 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/0.4444, allocations: 19.92 kB / 0.5603 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.133e-05/0.4444, allocations: 30.12 kB / 0.5604 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002937/0.4447, allocations: 139.7 kB / 0.5605 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001387/0.4461, allocations: 204.1 kB / 0.5607 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/0.4477, allocations: 0.6556 MB / 0.5613 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.012e-05/0.4478, allocations: 66.12 kB / 0.5614 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001949/0.448, allocations: 80 kB / 0.5615 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002352/0.4504, allocations: 1.208 MB / 0.5626 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.936e-05/0.4504, allocations: 15.89 kB / 0.5627 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.553e-05/0.4505, allocations: 35.98 kB / 0.5627 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.924e-05/0.4506, allocations: 57.97 kB / 0.5627 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001799/0.4524, allocations: 0.9617 MB / 0.5637 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007038/0.4594, allocations: 4.449 MB / 0.568 GB, free: 9.914 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.4608, allocations: 0.6574 MB / 0.5687 GB, free: 9.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006279/0.4614, allocations: 373.6 kB / 0.569 GB, free: 8.848 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.572e-05/0.4615, allocations: 12.44 kB / 0.569 GB, free: 8.836 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007303/0.4622, allocations: 478.5 kB / 0.5695 GB, free: 8.336 MB / 414.1 MB Notification: Performance of pre-optimization done (n=65): time 3.196e-06/0.4622, allocations: 0 / 0.5695 GB, free: 8.336 MB / 414.1 MB Notification: Performance of matching and sorting (n=66): time 0.006385/0.4686, allocations: 2.384 MB / 0.5718 GB, free: 5.914 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001566/0.4688, allocations: 170.9 kB / 0.572 GB, free: 5.711 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.4698, allocations: 0.5978 MB / 0.5726 GB, free: 5.105 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.676e-05/0.4699, allocations: 41.7 kB / 0.5726 GB, free: 5.059 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005655/0.4705, allocations: 499.9 kB / 0.5731 GB, free: 4.562 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003015/0.4708, allocations: 238 kB / 0.5733 GB, free: 4.328 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000288/0.4711, allocations: 150.6 kB / 0.5735 GB, free: 4.176 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002762/0.4713, allocations: 390.7 kB / 0.5738 GB, free: 3.785 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005802/0.4719, allocations: 311.5 kB / 0.5741 GB, free: 3.473 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008108/0.4727, allocations: 0.5815 MB / 0.5747 GB, free: 2.762 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001435/0.4742, allocations: 0.9545 MB / 0.5756 GB, free: 1.668 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.4742, allocations: 4 kB / 0.5756 GB, free: 1.664 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002487/0.4767, allocations: 1.243 MB / 0.5769 GB, free: 404 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.398e-05/0.4767, allocations: 33.7 kB / 0.5769 GB, free: 364 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.457e-05/0.4767, allocations: 8 kB / 0.5769 GB, free: 356 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.478, allocations: 345.6 kB / 0.5772 GB, free: 4 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005615/0.4786, allocations: 143.8 kB / 0.5774 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007/0.4856, allocations: 5.046 MB / 0.5823 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007546/0.4863, allocations: 39.95 kB / 0.5823 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001544/0.4865, allocations: 35.98 kB / 0.5824 GB, free: 10.53 MB / 430.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.0007442/0.4872, allocations: 355.2 kB / 0.5827 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/0.4874, allocations: 79.47 kB / 0.5828 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002318/0.4898, allocations: 1.068 MB / 0.5838 GB, free: 8.984 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.4898, allocations: 4 kB / 0.5838 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.692e-05/0.4898, allocations: 8 kB / 0.5838 GB, free: 8.973 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.4898, allocations: 3.984 kB / 0.5838 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004145/0.4939, allocations: 1.986 MB / 0.5858 GB, free: 6.902 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.4939, allocations: 4 kB / 0.5858 GB, free: 6.898 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003397/0.4943, allocations: 71.91 kB / 0.5858 GB, free: 6.828 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001013/0.4953, allocations: 324.3 kB / 0.5862 GB, free: 6.508 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.415e-05/0.4954, allocations: 15.94 kB / 0.5862 GB, free: 6.492 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006843/0.5022, allocations: 4.96 MB / 0.591 GB, free: 1.293 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.5022, allocations: 0 / 0.591 GB, free: 1.293 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.5044, allocations: 1.144 MB / 0.5921 GB, free: 100 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002814/0.5047, allocations: 75.47 kB / 0.5922 GB, free: 24 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001855/0.5049, allocations: 16 kB / 0.5922 GB, free: 8 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004539/0.5054, allocations: 20.03 kB / 0.5922 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/0.5055, allocations: 56.28 kB / 0.5923 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.555e-05/0.5056, allocations: 20 kB / 0.5923 GB, free: 15.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007103/0.5063, allocations: 423 kB / 0.5927 GB, free: 15.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5063, allocations: 0 / 0.5927 GB, free: 15.51 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001281/0.5076, allocations: 264 kB / 0.593 GB, free: 15.25 MB / 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.002543/0.5101, allocations: 1.712 MB / 0.5946 GB, free: 13.47 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002308/0.5124, allocations: 1.18 MB / 0.5958 GB, free: 12.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.5124, allocations: 0 / 0.5958 GB, free: 12.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001296/0.5137, allocations: 0.7809 MB / 0.5965 GB, free: 11.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.5149, allocations: 184.4 kB / 0.5967 GB, free: 11.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/0.5285, allocations: 7.452 MB / 0.604 GB, free: 3.383 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009171/0.5294, allocations: 0.5003 MB / 0.6045 GB, free: 2.848 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005499/0.5299, allocations: 174.3 kB / 0.6047 GB, free: 2.672 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005274/0.5305, allocations: 327.3 kB / 0.605 GB, free: 2.352 MB / 446.1 MB Notification: Performance of SimCode: time 1.313e-06/0.5305, allocations: 0 / 0.605 GB, free: 2.352 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0598/0.5903, allocations: 19.63 MB / 0.6241 GB, free: 15.01 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.62/16.21, allocations: 10.97 kB / 0.6241 GB, free: 15 MB / 478.1 MB " [Timeout remaining time 644] (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: 19.23666452197358] Failed to read output from testmodel.py, exit status != 0: 16.394745743949898 16.415926624 15.971507791 Calling exit ...