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.001378/0.001378, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.00143/0.00143, allocations: 188.4 kB / 18.67 MB, free: 4.41 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.356/1.356, allocations: 222.9 MB / 242.4 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.1802/0.1802, allocations: 38.03 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.89 kB / 458.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3311, allocations: 58.05 MB / 0.5048 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.007898/0.339, allocations: 7.588 MB / 0.5122 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004722/0.3438, allocations: 2.316 MB / 0.5144 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008009/0.3446, allocations: 29.84 kB / 0.5145 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002233/0.3469, allocations: 0.8515 MB / 0.5153 GB, free: 352 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001557/0.3485, allocations: 0.5067 MB / 0.5158 GB, free: 44 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001706/0.3502, allocations: 455.6 kB / 0.5162 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002704/0.3529, allocations: 1.267 MB / 0.5175 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001154/0.3541, allocations: 0.6758 MB / 0.5181 GB, free: 15.01 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001418/0.3555, allocations: 0.5649 MB / 0.5187 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001336/0.3569, allocations: 0.6502 MB / 0.5193 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001546/0.357, allocations: 75.19 kB / 0.5194 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006454/0.3577, allocations: 213.9 kB / 0.5196 GB, free: 14.45 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006175/0.3583, allocations: 494.3 kB / 0.5201 GB, free: 14.29 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006816/0.359, allocations: 0.5316 MB / 0.5206 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001846/0.3609, allocations: 1.231 MB / 0.5218 GB, free: 13.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3609, allocations: 1.188 kB / 0.5218 GB, free: 13.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.3609, allocations: 0 / 0.5218 GB, free: 13.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.305e-05/0.3609, allocations: 3.938 kB / 0.5218 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.002724/0.3636, allocations: 1.306 MB / 0.5231 GB, free: 12.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.3637, allocations: 13.44 kB / 0.5231 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000997/0.3647, allocations: 165.6 kB / 0.5232 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/0.3661, allocations: 0.7346 MB / 0.5239 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.035e-05/0.3662, allocations: 64.75 kB / 0.524 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.3663, allocations: 90.42 kB / 0.5241 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002042/0.3684, allocations: 1.178 MB / 0.5252 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.922e-05/0.3684, allocations: 7.281 kB / 0.5253 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.291e-05/0.3685, allocations: 33.5 kB / 0.5253 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.202e-05/0.3686, allocations: 57.16 kB / 0.5253 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001613/0.3702, allocations: 0.9321 MB / 0.5262 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006326/0.3766, allocations: 4.759 MB / 0.5309 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/0.3777, allocations: 0.6723 MB / 0.5316 GB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005332/0.3783, allocations: 378.4 kB / 0.5319 GB, free: 7.148 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.277e-05/0.3783, allocations: 15.42 kB / 0.5319 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006387/0.379, allocations: 444 kB / 0.5324 GB, free: 6.836 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.255e-06/0.379, allocations: 2 kB / 0.5324 GB, free: 6.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005478/0.3845, allocations: 2.44 MB / 0.5347 GB, free: 5.348 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.691e-05/0.3846, allocations: 174.5 kB / 0.5349 GB, free: 5.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000872/0.3855, allocations: 0.5965 MB / 0.5355 GB, free: 4.801 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.327e-05/0.3856, allocations: 41.58 kB / 0.5355 GB, free: 4.758 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004146/0.386, allocations: 486.7 kB / 0.536 GB, free: 4.332 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002266/0.3862, allocations: 229.2 kB / 0.5362 GB, free: 4.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002317/0.3865, allocations: 149.1 kB / 0.5363 GB, free: 4.047 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.3866, allocations: 390 kB / 0.5367 GB, free: 3.676 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004926/0.3871, allocations: 281 kB / 0.537 GB, free: 3.551 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006345/0.3878, allocations: 0.5587 MB / 0.5375 GB, free: 3.051 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.389, allocations: 0.9563 MB / 0.5385 GB, free: 2.305 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.104e-05/0.389, allocations: 6.688 kB / 0.5385 GB, free: 2.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002261/0.3913, allocations: 1.219 MB / 0.5397 GB, free: 1.652 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.404e-05/0.3913, allocations: 39.12 kB / 0.5397 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/0.3914, allocations: 9.156 kB / 0.5397 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.3925, allocations: 332.5 kB / 0.54 GB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005229/0.393, allocations: 149 kB / 0.5402 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006175/0.3992, allocations: 5.395 MB / 0.5454 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007166/0.3999, allocations: 30.38 kB / 0.5455 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/0.4, allocations: 38.44 kB / 0.5455 GB, free: 12.93 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.0006743/0.4007, allocations: 360.5 kB / 0.5458 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001915/0.4009, allocations: 80.22 kB / 0.5459 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002006/0.4029, allocations: 1.038 MB / 0.5469 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.403, allocations: 7.938 kB / 0.5469 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.403, allocations: 4.25 kB / 0.547 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.403, allocations: 5.453 kB / 0.547 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003526/0.4065, allocations: 2.066 MB / 0.549 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.4066, allocations: 4 kB / 0.549 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003195/0.4069, allocations: 71.89 kB / 0.549 GB, free: 9.969 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008635/0.4078, allocations: 317.5 kB / 0.5493 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.701e-05/0.4078, allocations: 15.94 kB / 0.5494 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005738/0.4136, allocations: 5.308 MB / 0.5545 GB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.4136, allocations: 4 kB / 0.5546 GB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/0.4156, allocations: 1.116 MB / 0.5556 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002961/0.4159, allocations: 152.1 kB / 0.5558 GB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001807/0.4161, allocations: 16 kB / 0.5558 GB, free: 2.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004269/0.4165, allocations: 23.98 kB / 0.5558 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.4167, allocations: 52.38 kB / 0.5559 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-05/0.4167, allocations: 20 kB / 0.5559 GB, free: 2.586 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005892/0.4173, allocations: 423 kB / 0.5563 GB, free: 2.176 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4173, allocations: 0 / 0.5563 GB, free: 2.176 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001208/0.4185, allocations: 264 kB / 0.5565 GB, free: 1.918 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.0001854/0.4187, allocations: 123.1 kB / 0.5567 GB, free: 1.789 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.4207, allocations: 1.148 MB / 0.5578 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.4207, allocations: 4 kB / 0.5578 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.4218, allocations: 0.7644 MB / 0.5585 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.4228, allocations: 180.1 kB / 0.5587 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003356/0.4262, allocations: 1.835 MB / 0.5605 GB, free: 13.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007924/0.427, allocations: 1.103 MB / 0.5616 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001926/0.4272, allocations: 59.42 kB / 0.5616 GB, free: 12.55 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4272, allocations: 0 / 0.5616 GB, free: 12.55 MB / 430.1 MB Notification: Performance of Templates: time 0.02307/0.4503, allocations: 17.06 MB / 0.5783 GB, free: 11.51 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches