Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.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.SimulationSteadyState,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.SimulationSteadyState") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,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.SimulationSteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.00108/0.001081, allocations: 195 kB / 18 MB, free: 5.105 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.437/1.437, 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.1745/0.1745, allocations: 38.04 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 59.89 kB / 458.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4/0.4014, allocations: 58.05 MB / 0.5041 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.008609/0.4101, allocations: 7.58 MB / 0.5115 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00434/0.4145, allocations: 2.313 MB / 0.5138 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005678/0.415, allocations: 29.19 kB / 0.5138 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002174/0.4172, allocations: 0.8608 MB / 0.5146 GB, free: 348 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001417/0.4187, allocations: 0.5066 MB / 0.5151 GB, free: 40 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001556/0.4202, allocations: 446.8 kB / 0.5155 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00207/0.4223, allocations: 1.276 MB / 0.5168 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001098/0.4234, allocations: 0.68 MB / 0.5175 GB, free: 15.01 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001392/0.4248, allocations: 0.5571 MB / 0.518 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001345/0.4262, allocations: 0.6579 MB / 0.5186 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001396/0.4263, allocations: 74.69 kB / 0.5187 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006305/0.427, allocations: 219 kB / 0.5189 GB, free: 14.45 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006191/0.4276, allocations: 485.5 kB / 0.5194 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007212/0.4283, allocations: 0.5304 MB / 0.5199 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001915/0.4303, allocations: 1.236 MB / 0.5211 GB, free: 13.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4303, allocations: 4.875 kB / 0.5211 GB, free: 13.51 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4303, allocations: 4 kB / 0.5211 GB, free: 13.51 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.236e-05/0.4303, allocations: 0 / 0.5211 GB, free: 13.51 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.002895/0.4332, allocations: 1.303 MB / 0.5224 GB, free: 12.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.4333, allocations: 16.05 kB / 0.5224 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009668/0.4343, allocations: 166.5 kB / 0.5226 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/0.4358, allocations: 0.7273 MB / 0.5233 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.78e-05/0.4359, allocations: 63.73 kB / 0.5233 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.436, allocations: 82.44 kB / 0.5234 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002378/0.4384, allocations: 1.182 MB / 0.5246 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.729e-05/0.4384, allocations: 3.844 kB / 0.5246 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.941e-05/0.4385, allocations: 34.05 kB / 0.5246 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.4387, allocations: 55.53 kB / 0.5247 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001879/0.4406, allocations: 0.9285 MB / 0.5256 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008571/0.4491, allocations: 4.769 MB / 0.5302 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00172/0.4509, allocations: 0.6806 MB / 0.5309 GB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006714/0.4516, allocations: 380.8 kB / 0.5313 GB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.464e-05/0.4517, allocations: 7.219 kB / 0.5313 GB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009338/0.4526, allocations: 441.2 kB / 0.5317 GB, free: 6.887 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 5.059e-06/0.4526, allocations: 0 / 0.5317 GB, free: 6.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005748/0.4584, allocations: 2.448 MB / 0.5341 GB, free: 5.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.4585, allocations: 171.4 kB / 0.5342 GB, free: 5.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008757/0.4594, allocations: 0.6046 MB / 0.5348 GB, free: 4.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.422e-05/0.4595, allocations: 37.39 kB / 0.5349 GB, free: 4.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004364/0.4599, allocations: 486.8 kB / 0.5353 GB, free: 4.375 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002397/0.4602, allocations: 225 kB / 0.5355 GB, free: 4.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002293/0.4604, allocations: 148.5 kB / 0.5357 GB, free: 4.094 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002102/0.4606, allocations: 386.9 kB / 0.5361 GB, free: 3.727 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005194/0.4611, allocations: 288.8 kB / 0.5363 GB, free: 3.594 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000677/0.4618, allocations: 0.5506 MB / 0.5369 GB, free: 3.102 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001241/0.4631, allocations: 0.9571 MB / 0.5378 GB, free: 2.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.4631, allocations: 10.23 kB / 0.5378 GB, free: 2.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002245/0.4653, allocations: 1.219 MB / 0.539 GB, free: 1.699 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.627e-05/0.4654, allocations: 35.08 kB / 0.539 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/0.4654, allocations: 9.156 kB / 0.539 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.4666, allocations: 337.2 kB / 0.5394 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000535/0.4671, allocations: 145 kB / 0.5395 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006545/0.4737, allocations: 5.397 MB / 0.5448 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006816/0.4744, allocations: 31.97 kB / 0.5448 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.955e-05/0.4744, allocations: 38.44 kB / 0.5448 GB, free: 12.98 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000641/0.4751, allocations: 360.7 kB / 0.5452 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.4752, allocations: 83.36 kB / 0.5453 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.4772, allocations: 1.026 MB / 0.5463 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.4772, allocations: 11.98 kB / 0.5463 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.4772, allocations: 4.812 kB / 0.5463 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.4772, allocations: 1.188 kB / 0.5463 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003441/0.4807, allocations: 2.067 MB / 0.5483 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.4807, allocations: 0 / 0.5483 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000286/0.481, allocations: 75.89 kB / 0.5484 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008192/0.4818, allocations: 317.5 kB / 0.5487 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.533e-05/0.4819, allocations: 19.94 kB / 0.5487 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00569/0.4876, allocations: 5.316 MB / 0.5539 GB, free: 3.992 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.4876, allocations: 7.875 kB / 0.5539 GB, free: 3.984 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.4894, allocations: 1.112 MB / 0.555 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003105/0.4897, allocations: 152.1 kB / 0.5551 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.4898, allocations: 12 kB / 0.5551 GB, free: 2.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003612/0.4902, allocations: 19.98 kB / 0.5552 GB, free: 2.625 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.4904, allocations: 56.44 kB / 0.5552 GB, free: 2.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-05/0.4904, allocations: 23.98 kB / 0.5552 GB, free: 2.547 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005468/0.491, allocations: 419 kB / 0.5556 GB, free: 2.141 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.491, allocations: 0 / 0.5556 GB, free: 2.141 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001155/0.4921, allocations: 268 kB / 0.5559 GB, free: 1.879 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001778/0.4923, allocations: 119.1 kB / 0.556 GB, free: 1.754 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002009/0.4943, allocations: 1.156 MB / 0.5571 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.4944, allocations: 4 kB / 0.5571 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.4955, allocations: 0.7644 MB / 0.5579 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009887/0.4965, allocations: 175.7 kB / 0.558 GB, free: 15.59 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003407/0.4999, allocations: 1.751 MB / 0.5598 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009252/0.5008, allocations: 1.103 MB / 0.5608 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005161/0.5014, allocations: 178.3 kB / 0.561 GB, free: 12.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.5015, allocations: 51.44 kB / 0.5611 GB, free: 12.43 MB / 430.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5015, allocations: 0 / 0.5611 GB, free: 12.43 MB / 430.1 MB Notification: Performance of Templates: time 0.02457/0.5261, allocations: 11.21 MB / 0.572 GB, free: 1.289 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches