Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.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.00139/0.00139, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.00165/0.00165, allocations: 219.7 kB / 23.73 MB, free: 4.16 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.561/1.561, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.1995/0.1995, allocations: 38.55 MB / 352.5 MB, free: 12.38 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.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",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.003441/0.003441, allocations: 75.89 kB / 492.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3717, allocations: 62.45 MB / 0.5419 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01092/0.3826, allocations: 7.164 MB / 0.5489 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005707/0.3883, allocations: 2.224 MB / 0.5511 GB, free: 9.055 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008091/0.3891, allocations: 37.25 kB / 0.5511 GB, free: 9.035 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002593/0.3917, allocations: 0.8337 MB / 0.5519 GB, free: 8.402 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001892/0.3936, allocations: 0.5051 MB / 0.5524 GB, free: 7.984 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001652/0.3953, allocations: 469.9 kB / 0.5529 GB, free: 7.641 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00241/0.3977, allocations: 1.315 MB / 0.5542 GB, free: 6.906 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001094/0.3988, allocations: 0.5214 MB / 0.5547 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001276/0.4, allocations: 0.5948 MB / 0.5553 GB, free: 6.211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001179/0.4012, allocations: 0.7024 MB / 0.5559 GB, free: 5.797 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001643/0.4014, allocations: 84.28 kB / 0.556 GB, free: 5.773 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007373/0.4021, allocations: 275.6 kB / 0.5563 GB, free: 5.504 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005736/0.4027, allocations: 0.5181 MB / 0.5568 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005652/0.4032, allocations: 465.9 kB / 0.5572 GB, free: 4.527 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001654/0.4049, allocations: 1.354 MB / 0.5586 GB, free: 3.168 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.4049, allocations: 0 / 0.5586 GB, free: 3.168 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4049, allocations: 0 / 0.5586 GB, free: 3.168 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.602e-05/0.4049, allocations: 0 / 0.5586 GB, free: 3.168 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.002614/0.4075, allocations: 1.289 MB / 0.5598 GB, free: 1.832 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.4076, allocations: 15.98 kB / 0.5598 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001924/0.4078, allocations: 139.7 kB / 0.56 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001215/0.409, allocations: 208.1 kB / 0.5602 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001514/0.4105, allocations: 0.6789 MB / 0.5608 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.748e-05/0.4106, allocations: 62.38 kB / 0.5609 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002463/0.4108, allocations: 107.9 kB / 0.561 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002019/0.4128, allocations: 1.248 MB / 0.5622 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.408e-05/0.4129, allocations: 7.938 kB / 0.5622 GB, free: 15.26 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.888e-05/0.413, allocations: 32 kB / 0.5622 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002764/0.4132, allocations: 69.95 kB / 0.5623 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/0.415, allocations: 1.032 MB / 0.5633 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006876/0.4219, allocations: 4.425 MB / 0.5676 GB, free: 9.512 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.4231, allocations: 0.6608 MB / 0.5683 GB, free: 8.824 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007037/0.4238, allocations: 445.8 kB / 0.5687 GB, free: 8.375 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.279e-05/0.4238, allocations: 12.66 kB / 0.5687 GB, free: 8.363 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008442/0.4247, allocations: 0.5307 MB / 0.5692 GB, free: 7.801 MB / 414.1 MB Notification: Performance of pre-optimization done (n=69): time 2.846e-06/0.4247, allocations: 0 / 0.5692 GB, free: 7.801 MB / 414.1 MB Notification: Performance of matching and sorting (n=73): time 0.005321/0.43, allocations: 2.818 MB / 0.572 GB, free: 4.914 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.4301, allocations: 171.1 kB / 0.5722 GB, free: 4.707 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008342/0.431, allocations: 0.6055 MB / 0.5727 GB, free: 4.098 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.424e-05/0.431, allocations: 41.7 kB / 0.5728 GB, free: 4.051 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004523/0.4315, allocations: 492.1 kB / 0.5733 GB, free: 3.562 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002855/0.4318, allocations: 265.8 kB / 0.5735 GB, free: 3.301 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003524/0.4321, allocations: 170.6 kB / 0.5737 GB, free: 3.129 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002343/0.4323, allocations: 390.7 kB / 0.574 GB, free: 2.738 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006617/0.433, allocations: 403.5 kB / 0.5744 GB, free: 2.336 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009318/0.4339, allocations: 0.66 MB / 0.5751 GB, free: 1.559 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007945/0.4419, allocations: 3.224 MB / 0.5782 GB, free: 14.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/0.4419, allocations: 4 kB / 0.5782 GB, free: 14.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002693/0.4446, allocations: 1.365 MB / 0.5796 GB, free: 12.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.558e-05/0.4446, allocations: 33.7 kB / 0.5796 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.4447, allocations: 8 kB / 0.5796 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007282/0.4454, allocations: 242.7 kB / 0.5798 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/0.4466, allocations: 275.5 kB / 0.5801 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006609/0.4532, allocations: 5.732 MB / 0.5857 GB, free: 6.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007223/0.4539, allocations: 35.92 kB / 0.5857 GB, free: 6.145 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.454, allocations: 43.98 kB / 0.5858 GB, free: 6.102 MB / 430.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,$PRE.switch.t0,$PRE.switch.closed,$PRE.switch.open,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,switch.open,switch.t0,switch.control[1],$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007155/0.4547, allocations: 376.9 kB / 0.5861 GB, free: 5.719 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.4549, allocations: 87.42 kB / 0.5862 GB, free: 5.633 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002377/0.4573, allocations: 1.182 MB / 0.5874 GB, free: 4.414 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.297e-05/0.4573, allocations: 11.94 kB / 0.5874 GB, free: 4.402 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.4574, allocations: 7.984 kB / 0.5874 GB, free: 4.395 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.4574, allocations: 7.984 kB / 0.5874 GB, free: 4.387 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004502/0.4619, allocations: 2.164 MB / 0.5895 GB, free: 2.137 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.4619, allocations: 4 kB / 0.5895 GB, free: 2.133 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.4629, allocations: 187.9 kB / 0.5897 GB, free: 1.949 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008544/0.4638, allocations: 242.2 kB / 0.5899 GB, free: 1.703 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.844e-05/0.4638, allocations: 31.92 kB / 0.5899 GB, free: 1.672 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006894/0.4707, allocations: 5.658 MB / 0.5955 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4707, allocations: 0 / 0.5955 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003365/0.4741, allocations: 1.726 MB / 0.5972 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002791/0.4744, allocations: 71.55 kB / 0.5972 GB, free: 9.816 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001855/0.4746, allocations: 23.98 kB / 0.5973 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005699/0.4751, allocations: 27.97 kB / 0.5973 GB, free: 9.766 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/0.4754, allocations: 64.42 kB / 0.5973 GB, free: 9.703 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.066e-05/0.4754, allocations: 20 kB / 0.5974 GB, free: 9.684 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006829/0.4761, allocations: 419 kB / 0.5978 GB, free: 9.277 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4761, allocations: 0 / 0.5978 GB, free: 9.277 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001381/0.4775, allocations: 272 kB / 0.598 GB, free: 9.012 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003662/0.4811, allocations: 2.277 MB / 0.6002 GB, free: 6.664 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002961/0.4841, allocations: 1.415 MB / 0.6016 GB, free: 5.184 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/0.4841, allocations: 7.938 kB / 0.6016 GB, free: 5.176 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001553/0.4857, allocations: 0.9116 MB / 0.6025 GB, free: 4.207 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.4869, allocations: 180.7 kB / 0.6027 GB, free: 4.039 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01487/0.5018, allocations: 8.348 MB / 0.6108 GB, free: 11.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000917/0.5027, allocations: 0.5166 MB / 0.6113 GB, free: 10.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007039/0.5034, allocations: 210.5 kB / 0.6115 GB, free: 10.49 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005467/0.5039, allocations: 335.3 kB / 0.6119 GB, free: 10.16 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5039, allocations: 4 kB / 0.6119 GB, free: 10.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.089/0.5929, allocations: 20.34 MB / 0.6317 GB, free: 6.062 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.81, allocations: 7.984 kB / 0.6317 GB, free: 6.055 MB / 478.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.808519542682916] Failed to read output from testmodel.py, exit status != 0: 12.933609104715288 12.949458571 12.541135448 Calling exit ...