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.001606/0.001606, allocations: 113.9 kB / 17.06 MB, free: 6 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.001648/0.001648, allocations: 200 kB / 18 MB, free: 5.078 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.518/1.518, 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.1736/0.1736, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001752, allocations: 63.89 kB / 458.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4119/0.4137, allocations: 58.06 MB / 0.5041 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01029/0.424, allocations: 7.566 MB / 0.5115 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005429/0.4295, allocations: 2.324 MB / 0.5138 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0011/0.4306, allocations: 29.56 kB / 0.5138 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002416/0.4331, allocations: 0.8509 MB / 0.5146 GB, free: 268 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00185/0.435, allocations: 0.5072 MB / 0.5151 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001783/0.4368, allocations: 451.2 kB / 0.5155 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002469/0.4392, allocations: 1.316 MB / 0.5168 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001413/0.4407, allocations: 0.688 MB / 0.5175 GB, free: 14.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001871/0.4426, allocations: 0.5779 MB / 0.5181 GB, free: 14.65 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001822/0.4444, allocations: 0.6859 MB / 0.5187 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002705/0.4447, allocations: 82.16 kB / 0.5188 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009408/0.4456, allocations: 273.6 kB / 0.5191 GB, free: 14.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007795/0.4464, allocations: 0.5059 MB / 0.5196 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000809/0.4472, allocations: 0.5498 MB / 0.5201 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002186/0.4494, allocations: 1.318 MB / 0.5214 GB, free: 13.33 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.325e-06/0.4495, allocations: 1.125 kB / 0.5214 GB, free: 13.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.4495, allocations: 0 / 0.5214 GB, free: 13.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.235e-05/0.4495, allocations: 0 / 0.5214 GB, free: 13.33 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.003088/0.4526, allocations: 1.34 MB / 0.5227 GB, free: 12.42 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.4527, allocations: 14.11 kB / 0.5227 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/0.4538, allocations: 164.1 kB / 0.5229 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001489/0.4553, allocations: 0.7415 MB / 0.5236 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.153e-05/0.4554, allocations: 68.73 kB / 0.5237 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002717/0.4557, allocations: 106.8 kB / 0.5238 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002377/0.4581, allocations: 1.226 MB / 0.525 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/0.4581, allocations: 3.219 kB / 0.525 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.4582, allocations: 37.22 kB / 0.525 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002757/0.4585, allocations: 62.62 kB / 0.5251 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001922/0.4604, allocations: 1.014 MB / 0.526 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007565/0.468, allocations: 4.749 MB / 0.5307 GB, free: 7.508 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.4693, allocations: 0.6769 MB / 0.5313 GB, free: 7.133 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006983/0.47, allocations: 458.4 kB / 0.5318 GB, free: 6.902 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.471e-05/0.4701, allocations: 11.83 kB / 0.5318 GB, free: 6.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008838/0.471, allocations: 0.502 MB / 0.5323 GB, free: 6.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 3.036e-06/0.471, allocations: 1.531 kB / 0.5323 GB, free: 6.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.005701/0.4767, allocations: 2.785 MB / 0.535 GB, free: 4.855 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.4768, allocations: 167.5 kB / 0.5352 GB, free: 4.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008118/0.4776, allocations: 0.5938 MB / 0.5357 GB, free: 4.312 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.603e-05/0.4777, allocations: 37.27 kB / 0.5358 GB, free: 4.273 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004455/0.4782, allocations: 478.5 kB / 0.5362 GB, free: 3.855 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002497/0.4784, allocations: 255.4 kB / 0.5365 GB, free: 3.637 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002985/0.4787, allocations: 174.2 kB / 0.5366 GB, free: 3.531 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.4789, allocations: 395.7 kB / 0.537 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006422/0.4796, allocations: 373.2 kB / 0.5374 GB, free: 2.984 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008502/0.4804, allocations: 0.6349 MB / 0.538 GB, free: 2.461 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.00759/0.488, allocations: 3.446 MB / 0.5414 GB, free: 396 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.4881, allocations: 5.375 kB / 0.5414 GB, free: 392 kB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002747/0.4908, allocations: 1.337 MB / 0.5427 GB, free: 15.67 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.873e-05/0.4909, allocations: 35.52 kB / 0.5427 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/0.4909, allocations: 12.06 kB / 0.5427 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007266/0.4916, allocations: 248.4 kB / 0.543 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.4928, allocations: 266.6 kB / 0.5432 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005579/0.4984, allocations: 6.079 MB / 0.5491 GB, free: 9.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007494/0.4992, allocations: 43.89 kB / 0.5492 GB, free: 9.117 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.517e-05/0.4993, allocations: 44.05 kB / 0.5492 GB, free: 9.074 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.0007036/0.5, allocations: 364.8 kB / 0.5496 GB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.5001, allocations: 83 kB / 0.5497 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.5021, allocations: 1.145 MB / 0.5508 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.876e-05/0.5021, allocations: 8 kB / 0.5508 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.5021, allocations: 4 kB / 0.5508 GB, free: 7.438 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/0.5021, allocations: 7.922 kB / 0.5508 GB, free: 7.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003486/0.5056, allocations: 2.246 MB / 0.553 GB, free: 5.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.5056, allocations: 4 kB / 0.553 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008578/0.5065, allocations: 187.9 kB / 0.5532 GB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006925/0.5072, allocations: 254.5 kB / 0.5534 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.159e-05/0.5073, allocations: 27.92 kB / 0.5534 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005257/0.5125, allocations: 6.003 MB / 0.5593 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.5126, allocations: 4.156 kB / 0.5593 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002579/0.5152, allocations: 1.643 MB / 0.5609 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002546/0.5154, allocations: 152.2 kB / 0.5611 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/0.5156, allocations: 27.98 kB / 0.5611 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003939/0.516, allocations: 19.98 kB / 0.5611 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.5161, allocations: 60.36 kB / 0.5612 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.006e-05/0.5162, allocations: 27.97 kB / 0.5612 GB, free: 12.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000675/0.5169, allocations: 419 kB / 0.5616 GB, free: 11.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5169, allocations: 0 / 0.5616 GB, free: 11.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001657/0.5185, allocations: 276 kB / 0.5618 GB, free: 11.53 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.0003632/0.5189, allocations: 131 kB / 0.562 GB, free: 11.39 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002764/0.5217, allocations: 1.396 MB / 0.5633 GB, free: 9.941 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.5217, allocations: 0 / 0.5633 GB, free: 9.941 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.5232, allocations: 0.9129 MB / 0.5642 GB, free: 8.977 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.5243, allocations: 187.9 kB / 0.5644 GB, free: 8.801 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004709/0.529, allocations: 2.165 MB / 0.5665 GB, free: 6.59 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009974/0.5301, allocations: 1.115 MB / 0.5676 GB, free: 5.449 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006641/0.5307, allocations: 206.5 kB / 0.5678 GB, free: 5.242 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/0.531, allocations: 55.42 kB / 0.5679 GB, free: 5.188 MB / 430.1 MB Notification: Performance of SimCode: time 1.203e-06/0.531, allocations: 0 / 0.5679 GB, free: 5.188 MB / 430.1 MB Notification: Performance of Templates: time 0.02268/0.5537, allocations: 11.19 MB / 0.5788 GB, free: 10.07 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