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.001259/0.001259, allocations: 111.6 kB / 17.06 MB, free: 5.973 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: 200 kB / 18.01 MB, free: 5.055 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.471/1.471, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1803/0.1803, allocations: 38.05 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.001881, allocations: 59.91 kB / 458.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4641/0.466, allocations: 58.06 MB / 0.5041 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009413/0.4754, allocations: 7.578 MB / 0.5115 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006559/0.482, allocations: 2.321 MB / 0.5138 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009906/0.483, allocations: 29.88 kB / 0.5138 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002817/0.4859, allocations: 0.8576 MB / 0.5146 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00157/0.4875, allocations: 0.511 MB / 0.5151 GB, free: 276 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001605/0.4891, allocations: 446.9 kB / 0.5156 GB, free: 76 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00183/0.4909, allocations: 1.282 MB / 0.5168 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001319/0.4922, allocations: 0.672 MB / 0.5175 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001288/0.4935, allocations: 0.5659 MB / 0.518 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.4948, allocations: 0.6488 MB / 0.5187 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001343/0.495, allocations: 75.22 kB / 0.5187 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005376/0.4955, allocations: 214.6 kB / 0.5189 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006451/0.4962, allocations: 493.1 kB / 0.5194 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006913/0.4969, allocations: 0.5316 MB / 0.5199 GB, free: 14.2 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001787/0.4987, allocations: 1.232 MB / 0.5211 GB, free: 13.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.4987, allocations: 4 kB / 0.5211 GB, free: 13.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4987, allocations: 0 / 0.5211 GB, free: 13.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.272e-05/0.4987, allocations: 5.703 kB / 0.5211 GB, free: 13.73 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.002478/0.5012, allocations: 1.305 MB / 0.5224 GB, free: 12.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.5013, allocations: 12.67 kB / 0.5224 GB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000887/0.5022, allocations: 163.1 kB / 0.5226 GB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.5036, allocations: 0.7339 MB / 0.5233 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.75e-05/0.5037, allocations: 60.62 kB / 0.5234 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000158/0.5038, allocations: 85.92 kB / 0.5234 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002117/0.506, allocations: 1.179 MB / 0.5246 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.408e-05/0.506, allocations: 6.375 kB / 0.5246 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-05/0.5061, allocations: 38.19 kB / 0.5246 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.486e-05/0.5062, allocations: 57.38 kB / 0.5247 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.5079, allocations: 0.9238 MB / 0.5256 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006235/0.5142, allocations: 4.768 MB / 0.5302 GB, free: 7.895 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.5155, allocations: 0.6742 MB / 0.5309 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005663/0.5161, allocations: 381.5 kB / 0.5313 GB, free: 7.336 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.284e-05/0.5162, allocations: 12.05 kB / 0.5313 GB, free: 7.332 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006572/0.5168, allocations: 440.1 kB / 0.5317 GB, free: 7.031 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.074e-06/0.5168, allocations: 0 / 0.5317 GB, free: 7.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005591/0.5224, allocations: 2.441 MB / 0.5341 GB, free: 5.543 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.5226, allocations: 170.7 kB / 0.5342 GB, free: 5.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007857/0.5234, allocations: 0.6045 MB / 0.5348 GB, free: 4.992 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.823e-05/0.5234, allocations: 37.77 kB / 0.5349 GB, free: 4.953 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003728/0.5238, allocations: 486.2 kB / 0.5353 GB, free: 4.527 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.524, allocations: 229.1 kB / 0.5356 GB, free: 4.332 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002333/0.5243, allocations: 156.7 kB / 0.5357 GB, free: 4.234 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.5245, allocations: 386.3 kB / 0.5361 GB, free: 3.867 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004719/0.525, allocations: 285.9 kB / 0.5363 GB, free: 3.738 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007263/0.5257, allocations: 0.5533 MB / 0.5369 GB, free: 3.242 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.527, allocations: 0.9534 MB / 0.5378 GB, free: 2.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.527, allocations: 6.406 kB / 0.5378 GB, free: 2.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002167/0.5292, allocations: 1.223 MB / 0.539 GB, free: 1.844 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.661e-05/0.5292, allocations: 35.14 kB / 0.5391 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.5293, allocations: 8.188 kB / 0.5391 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.5303, allocations: 341 kB / 0.5394 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004811/0.5308, allocations: 145.8 kB / 0.5395 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006565/0.5374, allocations: 5.385 MB / 0.5448 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006145/0.538, allocations: 31.75 kB / 0.5448 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.119e-05/0.5381, allocations: 46.8 kB / 0.5449 GB, free: 13.12 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.0007107/0.5389, allocations: 355.6 kB / 0.5452 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.539, allocations: 79.75 kB / 0.5453 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002123/0.5411, allocations: 1.039 MB / 0.5463 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.5411, allocations: 7.844 kB / 0.5463 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.68e-05/0.5412, allocations: 4.781 kB / 0.5463 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.5412, allocations: 3.984 kB / 0.5463 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00362/0.5448, allocations: 2.065 MB / 0.5483 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.5448, allocations: 4 kB / 0.5483 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002823/0.5451, allocations: 67.91 kB / 0.5484 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008931/0.546, allocations: 317.6 kB / 0.5487 GB, free: 9.793 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.268e-05/0.5461, allocations: 15.94 kB / 0.5487 GB, free: 9.777 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006247/0.5523, allocations: 5.315 MB / 0.5539 GB, free: 4.168 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.5524, allocations: 4 kB / 0.5539 GB, free: 4.164 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.5543, allocations: 1.12 MB / 0.555 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002668/0.5545, allocations: 144.1 kB / 0.5551 GB, free: 2.836 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.5547, allocations: 19.98 kB / 0.5552 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004876/0.5552, allocations: 16 kB / 0.5552 GB, free: 2.801 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.5554, allocations: 64.36 kB / 0.5552 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.935e-05/0.5555, allocations: 16 kB / 0.5552 GB, free: 2.723 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007108/0.5562, allocations: 423 kB / 0.5556 GB, free: 2.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5562, allocations: 0 / 0.5556 GB, free: 2.312 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001621/0.5578, allocations: 272 kB / 0.5559 GB, free: 2.047 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.0002839/0.5581, allocations: 119.1 kB / 0.556 GB, free: 1.922 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.5605, allocations: 1.152 MB / 0.5571 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.5605, allocations: 0 / 0.5571 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001164/0.5617, allocations: 0.7607 MB / 0.5579 GB, free: 15.93 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009189/0.5626, allocations: 178.5 kB / 0.5581 GB, free: 15.76 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003909/0.5666, allocations: 1.753 MB / 0.5598 GB, free: 13.96 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001183/0.5678, allocations: 1.107 MB / 0.5609 GB, free: 12.83 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004845/0.5682, allocations: 174.3 kB / 0.561 GB, free: 12.65 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.5684, allocations: 59.36 kB / 0.5611 GB, free: 12.6 MB / 430.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5684, allocations: 0 / 0.5611 GB, free: 12.6 MB / 430.1 MB Notification: Performance of Templates: time 0.02358/0.592, allocations: 10.97 MB / 0.5718 GB, free: 1.703 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