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.001762/0.001762, allocations: 109.9 kB / 17.06 MB, free: 6.02 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.002327/0.002327, allocations: 192 kB / 18 MB, free: 5.102 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.589/1.589, 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.1751/0.1751, allocations: 38.05 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 55.91 kB / 458.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.379/0.3802, allocations: 58.06 MB / 0.5041 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.008584/0.3889, allocations: 7.577 MB / 0.5115 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004348/0.3933, allocations: 2.318 MB / 0.5138 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008785/0.3942, allocations: 33.19 kB / 0.5138 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002434/0.3966, allocations: 0.8541 MB / 0.5146 GB, free: 304 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001898/0.3986, allocations: 0.5003 MB / 0.5151 GB, free: 4 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001689/0.4003, allocations: 450.4 kB / 0.5156 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001828/0.4021, allocations: 1.276 MB / 0.5168 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001058/0.4032, allocations: 0.6763 MB / 0.5175 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001238/0.4044, allocations: 0.5538 MB / 0.518 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001423/0.4059, allocations: 0.6577 MB / 0.5186 GB, free: 14.45 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001798/0.4061, allocations: 73.59 kB / 0.5187 GB, free: 14.45 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006993/0.4068, allocations: 216.4 kB / 0.5189 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007441/0.4075, allocations: 488.8 kB / 0.5194 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008055/0.4083, allocations: 0.5309 MB / 0.5199 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002533/0.4109, allocations: 1.247 MB / 0.5211 GB, free: 13.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.4109, allocations: 0.6094 kB / 0.5211 GB, free: 13.46 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.4109, allocations: 1.094 kB / 0.5211 GB, free: 13.46 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.134e-05/0.411, allocations: 0 / 0.5211 GB, free: 13.46 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.003841/0.4148, allocations: 1.336 MB / 0.5224 GB, free: 12.53 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.4149, allocations: 13.48 kB / 0.5224 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/0.4161, allocations: 170.2 kB / 0.5226 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001994/0.4181, allocations: 0.7353 MB / 0.5233 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.323e-05/0.4182, allocations: 59.56 kB / 0.5234 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001887/0.4184, allocations: 86.94 kB / 0.5235 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003001/0.4214, allocations: 1.179 MB / 0.5246 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.589e-05/0.4214, allocations: 2.594 kB / 0.5246 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001107/0.4216, allocations: 41.17 kB / 0.5247 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001502/0.4217, allocations: 56.81 kB / 0.5247 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002319/0.424, allocations: 0.932 MB / 0.5256 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007422/0.4315, allocations: 4.772 MB / 0.5303 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/0.433, allocations: 0.6823 MB / 0.5309 GB, free: 7.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005586/0.4335, allocations: 374.3 kB / 0.5313 GB, free: 7.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.142e-05/0.4336, allocations: 15.92 kB / 0.5313 GB, free: 7.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007559/0.4344, allocations: 435.4 kB / 0.5317 GB, free: 6.812 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 3.616e-06/0.4344, allocations: 5.125 kB / 0.5317 GB, free: 6.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005781/0.4402, allocations: 2.471 MB / 0.5342 GB, free: 5.293 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.4403, allocations: 170.5 kB / 0.5343 GB, free: 5.098 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000804/0.4411, allocations: 0.5967 MB / 0.5349 GB, free: 4.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.124e-05/0.4412, allocations: 41.97 kB / 0.5349 GB, free: 4.707 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004201/0.4416, allocations: 492 kB / 0.5354 GB, free: 4.277 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.4418, allocations: 243 kB / 0.5356 GB, free: 4.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002454/0.4421, allocations: 151.5 kB / 0.5358 GB, free: 3.977 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.4423, allocations: 391.7 kB / 0.5362 GB, free: 3.605 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004597/0.4427, allocations: 287.8 kB / 0.5364 GB, free: 3.473 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006587/0.4434, allocations: 0.5508 MB / 0.537 GB, free: 2.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.4447, allocations: 0.9651 MB / 0.5379 GB, free: 2.227 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.4447, allocations: 6.062 kB / 0.5379 GB, free: 2.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002162/0.4469, allocations: 1.22 MB / 0.5391 GB, free: 1.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.029e-05/0.4469, allocations: 34.42 kB / 0.5391 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.4469, allocations: 8.5 kB / 0.5391 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.448, allocations: 337.7 kB / 0.5395 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000479/0.4485, allocations: 145.5 kB / 0.5396 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006666/0.4552, allocations: 5.405 MB / 0.5449 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006451/0.4559, allocations: 32.53 kB / 0.5449 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-05/0.456, allocations: 42.38 kB / 0.545 GB, free: 12.84 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.0006419/0.4566, allocations: 355.5 kB / 0.5453 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.4568, allocations: 84.2 kB / 0.5454 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00202/0.4588, allocations: 1.038 MB / 0.5464 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.006e-06/0.4588, allocations: 6.719 kB / 0.5464 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/0.4589, allocations: 9.281 kB / 0.5464 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.4589, allocations: 5.328 kB / 0.5464 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003434/0.4623, allocations: 2.057 MB / 0.5484 GB, free: 9.973 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.4623, allocations: 4 kB / 0.5484 GB, free: 9.969 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003062/0.4626, allocations: 71.89 kB / 0.5485 GB, free: 9.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008528/0.4635, allocations: 317.5 kB / 0.5488 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.846e-05/0.4636, allocations: 23.92 kB / 0.5488 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005466/0.469, allocations: 5.312 MB / 0.554 GB, free: 3.953 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.4691, allocations: 7.938 kB / 0.554 GB, free: 3.945 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001772/0.4708, allocations: 1.116 MB / 0.5551 GB, free: 2.781 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002729/0.4711, allocations: 148.6 kB / 0.5552 GB, free: 2.617 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.4713, allocations: 24 kB / 0.5553 GB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003491/0.4716, allocations: 23.98 kB / 0.5553 GB, free: 2.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.4718, allocations: 48.44 kB / 0.5553 GB, free: 2.523 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.883e-05/0.4718, allocations: 23.98 kB / 0.5554 GB, free: 2.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005171/0.4723, allocations: 419 kB / 0.5558 GB, free: 2.094 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4724, allocations: 4 kB / 0.5558 GB, free: 2.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001202/0.4736, allocations: 268 kB / 0.556 GB, free: 1.828 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.0001957/0.4738, allocations: 127 kB / 0.5561 GB, free: 1.695 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001947/0.4757, allocations: 1.156 MB / 0.5573 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.4757, allocations: 0 / 0.5573 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.4768, allocations: 0.7605 MB / 0.558 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009751/0.4778, allocations: 181.4 kB / 0.5582 GB, free: 15.53 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003249/0.4811, allocations: 1.781 MB / 0.5599 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000955/0.482, allocations: 1.103 MB / 0.561 GB, free: 12.57 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005298/0.4826, allocations: 178.3 kB / 0.5612 GB, free: 12.39 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.4827, allocations: 51.42 kB / 0.5612 GB, free: 12.35 MB / 430.1 MB Notification: Performance of SimCode: time 2.114e-06/0.4827, allocations: 0 / 0.5612 GB, free: 12.35 MB / 430.1 MB Notification: Performance of Templates: time 0.02333/0.5061, allocations: 10.98 MB / 0.5719 GB, free: 1.438 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