Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_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.001402/0.001402, allocations: 109 kB / 17.06 MB, free: 5.961 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.001499/0.001499, allocations: 200 kB / 18 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1869/0.1869, allocations: 38.06 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 55.91 kB / 458.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4512/0.4525, allocations: 58.05 MB / 0.5041 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01096/0.4635, allocations: 7.559 MB / 0.5115 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005367/0.4689, allocations: 2.323 MB / 0.5137 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00104/0.47, allocations: 29.97 kB / 0.5138 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002655/0.4726, allocations: 0.8649 MB / 0.5146 GB, free: 304 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001995/0.4747, allocations: 0.499 MB / 0.5151 GB, free: 4 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001945/0.4766, allocations: 447.2 kB / 0.5155 GB, free: 15.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002683/0.4793, allocations: 1.324 MB / 0.5168 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001417/0.4808, allocations: 0.6884 MB / 0.5175 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001674/0.4824, allocations: 0.5678 MB / 0.5181 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001838/0.4843, allocations: 0.6823 MB / 0.5187 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003693/0.4847, allocations: 81.25 kB / 0.5188 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001149/0.4858, allocations: 269.5 kB / 0.5191 GB, free: 14.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001049/0.4869, allocations: 0.5009 MB / 0.5195 GB, free: 14.2 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002046/0.489, allocations: 0.5465 MB / 0.5201 GB, free: 13.88 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003648/0.4926, allocations: 1.327 MB / 0.5214 GB, free: 13.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.4926, allocations: 0 / 0.5214 GB, free: 13.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.417e-06/0.4927, allocations: 0 / 0.5214 GB, free: 13.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.688e-05/0.4927, allocations: 3.938 kB / 0.5214 GB, free: 13.38 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.004851/0.4976, allocations: 1.368 MB / 0.5227 GB, free: 12.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.4977, allocations: 14.14 kB / 0.5227 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001582/0.4992, allocations: 177.3 kB / 0.5229 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002287/0.5016, allocations: 0.746 MB / 0.5236 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.5017, allocations: 69.55 kB / 0.5237 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000446/0.5021, allocations: 105.2 kB / 0.5238 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003003/0.5052, allocations: 1.215 MB / 0.525 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.762e-05/0.5052, allocations: 6.641 kB / 0.525 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/0.5053, allocations: 38.17 kB / 0.525 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002754/0.5056, allocations: 65.66 kB / 0.5251 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002107/0.5077, allocations: 1.011 MB / 0.5261 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007323/0.5151, allocations: 4.764 MB / 0.5307 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.5163, allocations: 0.6702 MB / 0.5314 GB, free: 7.164 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007526/0.5171, allocations: 454.4 kB / 0.5318 GB, free: 6.938 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.123e-05/0.5172, allocations: 11.33 kB / 0.5318 GB, free: 6.934 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009325/0.5181, allocations: 0.5102 MB / 0.5323 GB, free: 6.586 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 5.039e-06/0.5181, allocations: 7.875 kB / 0.5323 GB, free: 6.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.005653/0.5238, allocations: 2.808 MB / 0.5351 GB, free: 4.855 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.5239, allocations: 181.3 kB / 0.5352 GB, free: 4.648 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008073/0.5247, allocations: 0.5882 MB / 0.5358 GB, free: 4.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.359e-05/0.5248, allocations: 46.17 kB / 0.5359 GB, free: 4.258 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000413/0.5252, allocations: 484.7 kB / 0.5363 GB, free: 3.836 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002802/0.5255, allocations: 268.1 kB / 0.5366 GB, free: 3.605 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003369/0.5259, allocations: 170.7 kB / 0.5367 GB, free: 3.504 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002308/0.5261, allocations: 391.3 kB / 0.5371 GB, free: 3.133 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006336/0.5267, allocations: 373.2 kB / 0.5375 GB, free: 2.961 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008462/0.5276, allocations: 0.6354 MB / 0.5381 GB, free: 2.438 MB / 398.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.008057/0.5357, allocations: 3.451 MB / 0.5415 GB, free: 364 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-05/0.5357, allocations: 1.469 kB / 0.5415 GB, free: 364 kB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002869/0.5386, allocations: 1.345 MB / 0.5428 GB, free: 15.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.176e-05/0.5387, allocations: 34.33 kB / 0.5428 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.062e-05/0.5387, allocations: 9.125 kB / 0.5428 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007003/0.5394, allocations: 248.3 kB / 0.5431 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.5406, allocations: 259.1 kB / 0.5433 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006034/0.5466, allocations: 6.088 MB / 0.5492 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009302/0.5476, allocations: 44.03 kB / 0.5493 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.103e-05/0.5477, allocations: 40 kB / 0.5493 GB, free: 8.965 MB / 414.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.0007651/0.5485, allocations: 374.5 kB / 0.5497 GB, free: 8.586 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001549/0.5486, allocations: 83.42 kB / 0.5498 GB, free: 8.504 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00205/0.5507, allocations: 1.145 MB / 0.5509 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.203e-05/0.5507, allocations: 11.98 kB / 0.5509 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.5507, allocations: 4 kB / 0.5509 GB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.5508, allocations: 7.984 kB / 0.5509 GB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00363/0.5544, allocations: 2.25 MB / 0.5531 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.403e-06/0.5544, allocations: 4 kB / 0.5531 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009153/0.5553, allocations: 187.9 kB / 0.5533 GB, free: 4.781 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007078/0.5561, allocations: 250.3 kB / 0.5535 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.494e-05/0.5561, allocations: 23.92 kB / 0.5535 GB, free: 4.504 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005395/0.5615, allocations: 6.008 MB / 0.5594 GB, free: 14.08 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.5616, allocations: 4.031 kB / 0.5594 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002782/0.5644, allocations: 1.659 MB / 0.561 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.5647, allocations: 152.5 kB / 0.5612 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.5648, allocations: 24.3 kB / 0.5612 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004122/0.5652, allocations: 27.98 kB / 0.5612 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.5654, allocations: 60.42 kB / 0.5613 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-05/0.5654, allocations: 27.98 kB / 0.5613 GB, free: 12.06 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000535/0.566, allocations: 415 kB / 0.5617 GB, free: 11.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.566, allocations: 0 / 0.5617 GB, free: 11.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001226/0.5672, allocations: 264 kB / 0.562 GB, free: 11.4 MB / 430.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.0002375/0.5675, allocations: 139 kB / 0.5621 GB, free: 11.26 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002239/0.5697, allocations: 1.392 MB / 0.5635 GB, free: 9.812 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.5697, allocations: 0 / 0.5635 GB, free: 9.812 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.571, allocations: 0.9249 MB / 0.5644 GB, free: 8.836 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009459/0.572, allocations: 181.8 kB / 0.5645 GB, free: 8.668 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003551/0.5756, allocations: 2.19 MB / 0.5667 GB, free: 6.43 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008719/0.5765, allocations: 1.115 MB / 0.5678 GB, free: 5.289 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006259/0.5771, allocations: 206.5 kB / 0.568 GB, free: 5.082 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.5773, allocations: 59.44 kB / 0.568 GB, free: 5.023 MB / 430.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5773, allocations: 0 / 0.568 GB, free: 5.023 MB / 430.1 MB Notification: Performance of Templates: time 0.02199/0.5993, allocations: 11.19 MB / 0.5789 GB, free: 9.906 MB / 446.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationFixedInitial.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches