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: translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009155/0.0009156, allocations: 91.41 kB / 16.3 MB, free: 6.457 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.001012/0.001012, allocations: 185 kB / 17.2 MB, free: 6.34 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.831/1.831, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1958/0.1958, allocations: 38.03 MB / 309.7 MB, free: 6.145 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.0008552/0.0008555, allocations: 12 kB / 376.5 MB, free: 3.227 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.3669, allocations: 56.33 MB / 432.8 MB, free: 18.87 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.006968/0.374, allocations: 7.837 MB / 440.6 MB, free: 11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004588/0.3786, allocations: 2.745 MB / 443.4 MB, free: 8.246 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009565/0.3796, allocations: 55.62 kB / 443.4 MB, free: 8.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007655/0.3804, allocations: 262.4 kB / 443.7 MB, free: 7.934 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001456/0.3818, allocations: 490.5 kB / 444.2 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001527/0.3834, allocations: 459 kB / 444.6 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000856/0.3842, allocations: 0.6709 MB / 445.3 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001433/0.3857, allocations: 1.012 MB / 446.3 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005454/0.3862, allocations: 410.5 kB / 446.7 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005484/0.3868, allocations: 462.5 kB / 447.2 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.181e-05/0.3869, allocations: 44 kB / 447.2 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004284/0.3873, allocations: 179.7 kB / 447.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003135/0.3876, allocations: 438.9 kB / 447.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.3878, allocations: 205.2 kB / 448 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006858/0.3885, allocations: 0.9858 MB / 449 MB, free: 2.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.3885, allocations: 0 / 449 MB, free: 2.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.3885, allocations: 0 / 449 MB, free: 2.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.3886, allocations: 3.938 kB / 449 MB, free: 2.582 MB / 318.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.002041/0.3906, allocations: 1.171 MB / 450.2 MB, free: 1.352 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.3907, allocations: 8.031 kB / 450.2 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.3917, allocations: 174.6 kB / 450.3 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.3928, allocations: 0.6719 MB / 451 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.155e-05/0.3929, allocations: 65.98 kB / 451.1 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001917/0.3931, allocations: 107.8 kB / 451.2 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.3949, allocations: 1.212 MB / 452.4 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.508e-05/0.3949, allocations: 8 kB / 452.4 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-05/0.395, allocations: 35.98 kB / 452.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002499/0.3953, allocations: 61.97 kB / 452.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001552/0.3968, allocations: 1.007 MB / 453.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005972/0.4028, allocations: 4.779 MB / 458.3 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.4039, allocations: 0.6726 MB / 459 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.759e-05/0.404, allocations: 16.61 kB / 459 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007192/0.4047, allocations: 0.4925 MB / 459.5 MB, free: 7.684 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 2.735e-06/0.4047, allocations: 0 / 459.5 MB, free: 7.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.004676/0.4094, allocations: 2.936 MB / 462.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.675e-05/0.4095, allocations: 174.7 kB / 462.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006254/0.4101, allocations: 0.586 MB / 463.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.501e-05/0.4102, allocations: 45.64 kB / 463.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003547/0.4106, allocations: 479 kB / 463.7 MB, free: 3.297 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/0.4108, allocations: 256.4 kB / 463.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.434e-05/0.4108, allocations: 20 kB / 463.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.411, allocations: 386.8 kB / 464.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005354/0.4115, allocations: 373.8 kB / 464.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007236/0.4123, allocations: 0.6229 MB / 465.3 MB, free: 1.531 MB / 334.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.00554/0.4178, allocations: 2.512 MB / 467.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.4178, allocations: 4 kB / 467.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00218/0.42, allocations: 1.332 MB / 469.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.133e-05/0.4201, allocations: 33.7 kB / 469.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.4201, allocations: 8 kB / 469.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006449/0.4208, allocations: 246.3 kB / 469.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.4219, allocations: 271.8 kB / 469.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006035/0.428, allocations: 5.633 MB / 475.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009088/0.4289, allocations: 39.98 kB / 475.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-05/0.429, allocations: 43.97 kB / 475.4 MB, free: 6.93 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,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007678/0.4298, allocations: 371.2 kB / 475.8 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.4299, allocations: 75.06 kB / 475.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/0.4318, allocations: 1.145 MB / 477 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.33e-05/0.4319, allocations: 8 kB / 477 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4319, allocations: 7.938 kB / 477 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.4319, allocations: 4.484 kB / 477 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003506/0.4354, allocations: 2.246 MB / 479.3 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.4354, allocations: 7.984 kB / 479.3 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009568/0.4364, allocations: 203.9 kB / 479.5 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006921/0.4371, allocations: 246.2 kB / 479.7 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.422e-05/0.4372, allocations: 23.98 kB / 479.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005247/0.4424, allocations: 5.555 MB / 485.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.4425, allocations: 0 / 485.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/0.445, allocations: 1.71 MB / 487 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002534/0.4453, allocations: 152.1 kB / 487.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.4454, allocations: 23.98 kB / 487.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003902/0.4458, allocations: 39.84 kB / 487.2 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.446, allocations: 56.48 kB / 487.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.735e-05/0.446, allocations: 23.98 kB / 487.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004774/0.4465, allocations: 403 kB / 487.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4465, allocations: 4 kB / 487.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001143/0.4476, allocations: 272 kB / 487.9 MB, free: 9.742 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002453/0.4479, allocations: 138.6 kB / 488.1 MB, free: 9.598 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002142/0.4501, allocations: 1.384 MB / 489.5 MB, free: 8.168 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4501, allocations: 0.625 kB / 489.5 MB, free: 8.168 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.4514, allocations: 0.9125 MB / 490.4 MB, free: 7.203 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007472/0.4521, allocations: 159.5 kB / 490.5 MB, free: 7.051 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004107/0.4563, allocations: 2.614 MB / 493.1 MB, free: 4.395 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008529/0.4571, allocations: 1.135 MB / 494.3 MB, free: 3.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006343/0.4578, allocations: 206.5 kB / 494.5 MB, free: 3.023 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.458, allocations: 59.42 kB / 494.5 MB, free: 2.965 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.458, allocations: 0 / 494.5 MB, free: 2.965 MB / 366.1 MB Notification: Performance of Templates: time 0.02457/0.4826, allocations: 9.988 MB / 0.4927 GB, free: 9 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile Environment - environmentSimulation: (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 & ./PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) Environment - environmentSimulation: