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.002027/0.002027, 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.002269/0.002269, allocations: 212.5 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.527/1.527, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.1909/0.1909, allocations: 38.55 MB / 353.2 MB, free: 12.32 MB / 286.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.00216/0.00216, allocations: 59.89 kB / 493.3 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3775/0.3796, allocations: 62.47 MB / 0.5427 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.01011/0.3897, allocations: 7.151 MB / 0.5497 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005847/0.3956, allocations: 2.211 MB / 0.5519 GB, free: 9.062 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008608/0.3964, allocations: 37.69 kB / 0.5519 GB, free: 9.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002504/0.3989, allocations: 0.8397 MB / 0.5527 GB, free: 8.406 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001581/0.4005, allocations: 0.5174 MB / 0.5532 GB, free: 7.977 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001504/0.402, allocations: 461 kB / 0.5537 GB, free: 7.641 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002123/0.4041, allocations: 1.269 MB / 0.5549 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000923/0.4051, allocations: 0.5135 MB / 0.5554 GB, free: 6.594 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001582/0.4067, allocations: 0.5838 MB / 0.556 GB, free: 6.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0014/0.4081, allocations: 0.6974 MB / 0.5566 GB, free: 5.828 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001761/0.4082, allocations: 74.75 kB / 0.5567 GB, free: 5.828 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007198/0.4089, allocations: 247 kB / 0.557 GB, free: 5.652 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005945/0.4095, allocations: 0.4908 MB / 0.5574 GB, free: 5.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000671/0.4102, allocations: 442 kB / 0.5579 GB, free: 4.727 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002247/0.4125, allocations: 1.265 MB / 0.5591 GB, free: 3.457 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.4125, allocations: 0 / 0.5591 GB, free: 3.457 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4125, allocations: 0 / 0.5591 GB, free: 3.457 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.64e-05/0.4125, allocations: 0 / 0.5591 GB, free: 3.457 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.002973/0.4155, allocations: 1.265 MB / 0.5603 GB, free: 2.148 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.032e-05/0.4155, allocations: 11.98 kB / 0.5603 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.067e-05/0.4156, allocations: 22.19 kB / 0.5604 GB, free: 2.117 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001768/0.4157, allocations: 143.7 kB / 0.5605 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001137/0.4169, allocations: 208.1 kB / 0.5607 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/0.4182, allocations: 0.6595 MB / 0.5613 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.578e-05/0.4183, allocations: 70.06 kB / 0.5614 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001752/0.4184, allocations: 87.97 kB / 0.5615 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001986/0.4204, allocations: 1.204 MB / 0.5627 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.729e-05/0.4205, allocations: 11.89 kB / 0.5627 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-05/0.4206, allocations: 36 kB / 0.5627 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.494e-05/0.4206, allocations: 57.97 kB / 0.5628 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.4222, allocations: 0.9578 MB / 0.5637 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006428/0.4287, allocations: 4.453 MB / 0.568 GB, free: 9.906 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/0.43, allocations: 0.6478 MB / 0.5687 GB, free: 9.234 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006145/0.4306, allocations: 377.5 kB / 0.569 GB, free: 8.848 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.013e-05/0.4306, allocations: 12.44 kB / 0.5691 GB, free: 8.836 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007588/0.4314, allocations: 478.5 kB / 0.5695 GB, free: 8.336 MB / 414.1 MB Notification: Performance of pre-optimization done (n=65): time 3.015e-06/0.4314, allocations: 0 / 0.5695 GB, free: 8.336 MB / 414.1 MB Notification: Performance of matching and sorting (n=66): time 0.006001/0.4374, allocations: 2.38 MB / 0.5718 GB, free: 5.918 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002048/0.4376, allocations: 170.9 kB / 0.572 GB, free: 5.715 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008847/0.4385, allocations: 0.5939 MB / 0.5726 GB, free: 5.113 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.483e-05/0.4385, allocations: 45.75 kB / 0.5726 GB, free: 5.062 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005598/0.4391, allocations: 0.4921 MB / 0.5731 GB, free: 4.562 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.4393, allocations: 230.1 kB / 0.5733 GB, free: 4.336 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002418/0.4396, allocations: 158.6 kB / 0.5735 GB, free: 4.176 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002475/0.4398, allocations: 394.6 kB / 0.5738 GB, free: 3.781 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000488/0.4403, allocations: 311.5 kB / 0.5741 GB, free: 3.469 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000717/0.441, allocations: 0.5776 MB / 0.5747 GB, free: 2.762 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.4424, allocations: 0.9545 MB / 0.5756 GB, free: 1.668 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.4425, allocations: 4 kB / 0.5756 GB, free: 1.664 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002278/0.4447, allocations: 1.24 MB / 0.5769 GB, free: 408 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.243e-05/0.4448, allocations: 41.89 kB / 0.5769 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.4448, allocations: 11.94 kB / 0.5769 GB, free: 348 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.4459, allocations: 341.3 kB / 0.5772 GB, free: 0 / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005107/0.4464, allocations: 143.7 kB / 0.5774 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006646/0.453, allocations: 5.025 MB / 0.5823 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006194/0.4536, allocations: 35.98 kB / 0.5823 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.33e-05/0.4537, allocations: 43.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.0005441/0.4542, allocations: 360.6 kB / 0.5827 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.4544, allocations: 79.47 kB / 0.5828 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002011/0.4564, allocations: 1.068 MB / 0.5838 GB, free: 8.984 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/0.4564, allocations: 8 kB / 0.5838 GB, free: 8.977 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4564, allocations: 4 kB / 0.5838 GB, free: 8.973 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.036e-06/0.4564, allocations: 3.984 kB / 0.5838 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003389/0.4598, allocations: 1.99 MB / 0.5858 GB, free: 6.898 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.4598, allocations: 0 / 0.5858 GB, free: 6.898 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000329/0.4601, allocations: 80.06 kB / 0.5858 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000937/0.4611, allocations: 305.4 kB / 0.5861 GB, free: 6.516 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.248e-05/0.4611, allocations: 19.98 kB / 0.5862 GB, free: 6.496 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006779/0.4679, allocations: 4.946 MB / 0.591 GB, free: 1.312 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/0.4679, allocations: 8.031 kB / 0.591 GB, free: 1.305 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002188/0.4701, allocations: 1.148 MB / 0.5921 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000201/0.4703, allocations: 75.47 kB / 0.5922 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.4705, allocations: 12 kB / 0.5922 GB, free: 20 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004141/0.4709, allocations: 24.06 kB / 0.5922 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.4711, allocations: 60.42 kB / 0.5923 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.688e-05/0.4711, allocations: 23.98 kB / 0.5923 GB, free: 15.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006107/0.4717, allocations: 415 kB / 0.5927 GB, free: 15.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4717, allocations: 0 / 0.5927 GB, free: 15.51 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001048/0.4728, allocations: 271.9 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.00242/0.4752, allocations: 1.719 MB / 0.5946 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002142/0.4773, allocations: 1.173 MB / 0.5958 GB, free: 12.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4773, allocations: 0 / 0.5958 GB, free: 12.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001216/0.4786, allocations: 0.7722 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.0009756/0.4795, allocations: 186 kB / 0.5967 GB, free: 11.26 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/0.4918, allocations: 7.448 MB / 0.604 GB, free: 3.391 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007337/0.4926, allocations: 0.5001 MB / 0.6045 GB, free: 2.855 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005372/0.4931, allocations: 182.4 kB / 0.6047 GB, free: 2.672 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004989/0.4936, allocations: 323.3 kB / 0.605 GB, free: 2.355 MB / 446.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4936, allocations: 0 / 0.605 GB, free: 2.355 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05877/0.5524, allocations: 19.65 MB / 0.6241 GB, free: 15 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.95/16.5, allocations: 7.25 kB / 0.6242 GB, free: 15 MB / 478.1 MB " [Timeout remaining time 643] (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: 19.514136941055767] Failed to read output from testmodel.py, exit status != 0: 16.68370668706484 16.700446789 16.284495655 Calling exit ...