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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009153/0.0009153, allocations: 92.95 kB / 16.65 MB, free: 6.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 172.7 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.4/1.4, allocations: 205.4 MB / 223.7 MB, free: 13.09 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1735/0.1735, allocations: 38.05 MB / 310.1 MB, free: 5.918 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004843/0.0004843, allocations: 19.12 kB / 377.3 MB, free: 2.625 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2455, allocations: 56.34 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.006322/0.2519, allocations: 8.743 MB / 442.3 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004283/0.2562, allocations: 2.86 MB / 445.2 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006443/0.2569, allocations: 59.56 kB / 445.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000585/0.2575, allocations: 206.6 kB / 445.5 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009082/0.2584, allocations: 493.9 kB / 445.9 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008898/0.2593, allocations: 403.3 kB / 446.3 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.2605, allocations: 1.968 MB / 448.3 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001332/0.2619, allocations: 1.118 MB / 449.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005348/0.2624, allocations: 469.7 kB / 449.9 MB, free: 2.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006947/0.2631, allocations: 0.6735 MB / 450.6 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.907e-05/0.2632, allocations: 44 kB / 450.6 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003956/0.2636, allocations: 243.5 kB / 450.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002896/0.2639, allocations: 470.7 kB / 451.3 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003115/0.2642, allocations: 0.5108 MB / 451.8 MB, free: 340 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009603/0.2652, allocations: 1.25 MB / 453.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.2652, allocations: 0 / 453.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.519e-06/0.2652, allocations: 0 / 453.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.2652, allocations: 7.938 kB / 453.1 MB, free: 15.06 MB / 334.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.002128/0.2674, allocations: 1.163 MB / 454.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.2674, allocations: 8.031 kB / 454.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000174/0.2676, allocations: 139.7 kB / 454.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009719/0.2686, allocations: 171.5 kB / 454.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.2697, allocations: 0.6999 MB / 455.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.365e-05/0.2697, allocations: 66.38 kB / 455.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002175/0.27, allocations: 107.9 kB / 455.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001668/0.2716, allocations: 1.223 MB / 456.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.87e-05/0.2717, allocations: 3.906 kB / 456.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.018e-05/0.2718, allocations: 36 kB / 456.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002589/0.272, allocations: 65.97 kB / 456.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.2735, allocations: 1.007 MB / 457.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006445/0.28, allocations: 4.783 MB / 462.5 MB, free: 5.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009934/0.281, allocations: 0.6647 MB / 463.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006061/0.2816, allocations: 451.9 kB / 463.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.442e-05/0.2817, allocations: 16.5 kB / 463.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007346/0.2824, allocations: 0.5003 MB / 464.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 4.238e-06/0.2825, allocations: 4 kB / 464.2 MB, free: 3.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.004482/0.2869, allocations: 2.776 MB / 466.9 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.2871, allocations: 174.7 kB / 467.1 MB, free: 488 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006755/0.2878, allocations: 0.5938 MB / 467.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.987e-05/0.2878, allocations: 41.7 kB / 467.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003535/0.2882, allocations: 478.9 kB / 468.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/0.2884, allocations: 260.5 kB / 468.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.2885, allocations: 85.67 kB / 468.5 MB, free: 15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.2887, allocations: 390.7 kB / 468.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000552/0.2893, allocations: 377.8 kB / 469.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007222/0.29, allocations: 0.631 MB / 469.9 MB, free: 13.5 MB / 350.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.006977/0.297, allocations: 3.458 MB / 473.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.297, allocations: 7.938 kB / 473.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002354/0.2994, allocations: 1.343 MB / 474.7 MB, free: 8.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.086e-05/0.2994, allocations: 33.7 kB / 474.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.016e-05/0.2995, allocations: 8 kB / 474.8 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006808/0.3002, allocations: 247 kB / 475 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.3013, allocations: 263.6 kB / 475.3 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005593/0.3069, allocations: 5.581 MB / 480.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006458/0.3076, allocations: 40.23 kB / 480.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.3077, allocations: 39.98 kB / 480.9 MB, free: 1.875 MB / 350.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: 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.0006752/0.3084, allocations: 391 kB / 481.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.3085, allocations: 75.06 kB / 481.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002067/0.3106, allocations: 1.141 MB / 482.5 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-05/0.3107, allocations: 12 kB / 482.5 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.3107, allocations: 8 kB / 482.5 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.3107, allocations: 3.984 kB / 482.5 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003838/0.3145, allocations: 2.253 MB / 484.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.3146, allocations: 160 / 484.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009002/0.3155, allocations: 191.8 kB / 485 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007488/0.3162, allocations: 250.2 kB / 485.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.942e-05/0.3163, allocations: 27.98 kB / 485.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005358/0.3217, allocations: 5.5 MB / 490.8 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.3217, allocations: 8.016 kB / 490.8 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002701/0.3244, allocations: 1.645 MB / 492.4 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002845/0.3247, allocations: 148.2 kB / 492.6 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000151/0.3249, allocations: 27.92 kB / 492.6 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004411/0.3253, allocations: 27.98 kB / 492.6 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.3255, allocations: 56.42 kB / 492.7 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.878e-05/0.3256, allocations: 27.98 kB / 492.7 MB, free: 5.484 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005475/0.3261, allocations: 411 kB / 493.1 MB, free: 5.086 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3261, allocations: 0 / 493.1 MB, free: 5.086 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001233/0.3274, allocations: 280 kB / 493.4 MB, free: 4.812 MB / 366.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.003085/0.3304, allocations: 2.218 MB / 495.6 MB, free: 2.531 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002442/0.3329, allocations: 1.392 MB / 497 MB, free: 1.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3329, allocations: 0 / 497 MB, free: 1.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001257/0.3342, allocations: 0.9162 MB / 497.9 MB, free: 128 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/0.3353, allocations: 175.3 kB / 498.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01429/0.3496, allocations: 8.87 MB / 0.4951 GB, free: 6.656 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/0.3508, allocations: 1.119 MB / 0.4961 GB, free: 5.512 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000743/0.3516, allocations: 202.5 kB / 0.4963 GB, free: 5.309 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005403/0.3522, allocations: 335.3 kB / 0.4967 GB, free: 4.98 MB / 382.1 MB Notification: Performance of SimCode: time 2.054e-06/0.3522, allocations: 0 / 0.4967 GB, free: 4.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.038/0.3902, allocations: 17.68 MB / 0.5139 GB, free: 3.324 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002353/0.3905, allocations: 226.4 kB / 0.5141 GB, free: 3.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.136/2.526, allocations: 3.938 kB / 0.5141 GB, free: 3.066 MB / 398.1 MB (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 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)