Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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.Units,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter_SI.i.1.|meter_SI.i.2.|meter_SI.i.3.|meter_SI.p.1.|meter_SI.p.2.|meter_SI.p.3.|meter_SI.v.1.|meter_SI.v.2.|meter_SI.v.3.|meter_pu.i.1.|meter_pu.i.2.|meter_pu.i.3.|meter_pu.p.1.|meter_pu.p.2.|meter_pu.p.3.|meter_pu.v.1.|meter_pu.v.2.|meter_pu.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Units") translateModel(PowerSystems.Examples.Introductory.Units,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter_SI.i.1.|meter_SI.i.2.|meter_SI.i.3.|meter_SI.p.1.|meter_SI.p.2.|meter_SI.p.3.|meter_SI.v.1.|meter_SI.v.2.|meter_SI.v.3.|meter_pu.i.1.|meter_pu.i.2.|meter_pu.i.3.|meter_pu.p.1.|meter_pu.p.2.|meter_pu.p.3.|meter_pu.v.1.|meter_pu.v.2.|meter_pu.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Units") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 114.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.001232/0.001232, allocations: 196 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.617/1.617, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1788/0.1788, allocations: 38.05 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 59.91 kB / 458.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4475/0.4488, allocations: 58.06 MB / 0.5041 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007867/0.4567, allocations: 6.097 MB / 0.51 GB, free: 3.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003697/0.4604, allocations: 1.953 MB / 0.5119 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004656/0.4609, allocations: 26.12 kB / 0.512 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001823/0.4628, allocations: 0.6906 MB / 0.5126 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001047/0.4638, allocations: 380.1 kB / 0.513 GB, free: 1.484 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.4651, allocations: 396.3 kB / 0.5134 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.4663, allocations: 0.9472 MB / 0.5143 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007794/0.4671, allocations: 0.5006 MB / 0.5148 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000812/0.4679, allocations: 435.9 kB / 0.5152 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009421/0.4689, allocations: 0.5244 MB / 0.5157 GB, free: 324 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.469, allocations: 61.25 kB / 0.5158 GB, free: 320 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006059/0.4696, allocations: 236.1 kB / 0.516 GB, free: 260 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006204/0.4703, allocations: 415.4 kB / 0.5164 GB, free: 128 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005894/0.4709, allocations: 424.6 kB / 0.5168 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001649/0.4725, allocations: 1.016 MB / 0.5178 GB, free: 15.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.4725, allocations: 1.406 kB / 0.5178 GB, free: 15.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4726, allocations: 4 kB / 0.5178 GB, free: 15.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.539e-05/0.4726, allocations: 0 / 0.5178 GB, free: 15.5 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002102/0.4747, allocations: 1.071 MB / 0.5189 GB, free: 14.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.4747, allocations: 13.14 kB / 0.5189 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007562/0.4755, allocations: 139.3 kB / 0.519 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.4765, allocations: 0.5438 MB / 0.5195 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.656e-05/0.4766, allocations: 57.39 kB / 0.5196 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.4768, allocations: 80.56 kB / 0.5197 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001789/0.4786, allocations: 1.14 MB / 0.5208 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.602e-05/0.4786, allocations: 6.312 kB / 0.5208 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.948e-05/0.4787, allocations: 34.34 kB / 0.5208 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.139e-05/0.4788, allocations: 50.98 kB / 0.5209 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.4803, allocations: 0.8639 MB / 0.5217 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005621/0.4859, allocations: 5.027 MB / 0.5266 GB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007315/0.4867, allocations: 418.9 kB / 0.527 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000345/0.487, allocations: 224 kB / 0.5272 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.615e-05/0.4871, allocations: 11.17 kB / 0.5272 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/0.4871, allocations: 37.47 kB / 0.5273 GB, free: 9.199 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 3.676e-06/0.4871, allocations: 0 / 0.5273 GB, free: 9.199 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.002189/0.4893, allocations: 1.068 MB / 0.5283 GB, free: 8.699 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.771e-05/0.4894, allocations: 83.12 kB / 0.5284 GB, free: 8.605 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006807/0.4901, allocations: 0.4919 MB / 0.5289 GB, free: 8.371 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.502e-05/0.4902, allocations: 34.77 kB / 0.5289 GB, free: 8.332 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003693/0.4905, allocations: 451.4 kB / 0.5293 GB, free: 7.977 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.4907, allocations: 159 kB / 0.5295 GB, free: 7.855 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002438/0.491, allocations: 150.9 kB / 0.5296 GB, free: 7.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.4911, allocations: 366.8 kB / 0.53 GB, free: 7.441 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003796/0.4915, allocations: 247.8 kB / 0.5302 GB, free: 7.371 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006247/0.4922, allocations: 0.6107 MB / 0.5308 GB, free: 6.789 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.4933, allocations: 0.9498 MB / 0.5318 GB, free: 6.031 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.4933, allocations: 3.188 kB / 0.5318 GB, free: 6.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001487/0.4948, allocations: 0.8935 MB / 0.5326 GB, free: 5.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.537e-05/0.4948, allocations: 16.22 kB / 0.5326 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-05/0.4949, allocations: 17.25 kB / 0.5327 GB, free: 5.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.105e-05/0.4949, allocations: 18.42 kB / 0.5327 GB, free: 5.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008604/0.4958, allocations: 220.6 kB / 0.5329 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.823e-05/0.4959, allocations: 24.39 kB / 0.5329 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005522/0.4964, allocations: 54.17 kB / 0.533 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.4965, allocations: 44.48 kB / 0.533 GB, free: 5.621 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006628/0.4972, allocations: 313.3 kB / 0.5333 GB, free: 5.387 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.4973, allocations: 52.72 kB / 0.5334 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001057/0.4984, allocations: 0.5577 MB / 0.5339 GB, free: 5.051 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.4984, allocations: 9.234 kB / 0.5339 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.4984, allocations: 1.062 kB / 0.5339 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.4984, allocations: 0 / 0.5339 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/0.5008, allocations: 1.342 MB / 0.5352 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.5008, allocations: 2.812 kB / 0.5352 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004448/0.5012, allocations: 107.4 kB / 0.5353 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.588e-05/0.5013, allocations: 7.875 kB / 0.5353 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.506e-05/0.5013, allocations: 9.281 kB / 0.5353 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/0.5013, allocations: 9.031 kB / 0.5353 GB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.5013, allocations: 6.125 kB / 0.5354 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009468/0.5023, allocations: 0.6471 MB / 0.536 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.5024, allocations: 125.5 kB / 0.5361 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.158e-05/0.5025, allocations: 20.5 kB / 0.5361 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.5028, allocations: 17.39 kB / 0.5361 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.136e-05/0.5028, allocations: 36.27 kB / 0.5362 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.395e-05/0.5029, allocations: 16.62 kB / 0.5362 GB, free: 3.477 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004145/0.5033, allocations: 332.5 kB / 0.5365 GB, free: 3.281 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5033, allocations: 0 / 0.5365 GB, free: 3.281 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007986/0.5041, allocations: 157.7 kB / 0.5367 GB, free: 3.266 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000161/0.5043, allocations: 119 kB / 0.5368 GB, free: 3.156 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.5053, allocations: 0.6093 MB / 0.5374 GB, free: 2.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.5053, allocations: 0.5 kB / 0.5374 GB, free: 2.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003484/0.5057, allocations: 250.6 kB / 0.5376 GB, free: 2.773 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007106/0.5064, allocations: 110.6 kB / 0.5377 GB, free: 2.715 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.5091, allocations: 1.358 MB / 0.539 GB, free: 1.883 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007385/0.5098, allocations: 0.9967 MB / 0.54 GB, free: 1.039 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005688/0.5104, allocations: 225 kB / 0.5402 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.5106, allocations: 55.3 kB / 0.5403 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5106, allocations: 0 / 0.5403 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of Templates: time 0.01194/0.5225, allocations: 5.724 MB / 0.5459 GB, free: 12.71 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Units -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches