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: "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001601/0.001601, allocations: 114 kB / 17.06 MB, free: 5.992 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.001868/0.001868, allocations: 198.9 kB / 18 MB, free: 5.07 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.412/1.412, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2453/0.2453, allocations: 38.03 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002237/0.002237, allocations: 63.84 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4297/0.4319, allocations: 58.05 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.006703/0.4387, allocations: 6.104 MB / 0.5096 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003029/0.4418, allocations: 1.946 MB / 0.5115 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003606/0.4421, allocations: 21.97 kB / 0.5115 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001566/0.4437, allocations: 0.6951 MB / 0.5122 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007977/0.4445, allocations: 381.8 kB / 0.5125 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.4457, allocations: 395.7 kB / 0.5129 GB, free: 1.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.4468, allocations: 0.9417 MB / 0.5138 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006585/0.4475, allocations: 0.497 MB / 0.5143 GB, free: 420 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005708/0.4481, allocations: 431.5 kB / 0.5147 GB, free: 228 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000695/0.4488, allocations: 0.5321 MB / 0.5152 GB, free: 24 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.058e-05/0.4489, allocations: 56.66 kB / 0.5153 GB, free: 24 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005002/0.4494, allocations: 239.2 kB / 0.5155 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004526/0.4498, allocations: 421 kB / 0.5159 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004812/0.4503, allocations: 424.3 kB / 0.5163 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001362/0.4517, allocations: 1.024 MB / 0.5173 GB, free: 15.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4517, allocations: 0.5938 kB / 0.5173 GB, free: 15.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4517, allocations: 0 / 0.5173 GB, free: 15.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.4517, allocations: 0.5938 kB / 0.5173 GB, free: 15.2 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.001953/0.4537, allocations: 1.063 MB / 0.5184 GB, free: 14.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.4537, allocations: 14.14 kB / 0.5184 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/0.4539, allocations: 142.2 kB / 0.5185 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000714/0.4546, allocations: 135.2 kB / 0.5186 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009788/0.4556, allocations: 0.5379 MB / 0.5192 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.507e-05/0.4557, allocations: 62.28 kB / 0.5192 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.4558, allocations: 86.06 kB / 0.5193 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001746/0.4576, allocations: 1.13 MB / 0.5204 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.447e-05/0.4576, allocations: 7.531 kB / 0.5204 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.564e-05/0.4577, allocations: 36.77 kB / 0.5205 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.227e-05/0.4578, allocations: 49.16 kB / 0.5205 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.4592, allocations: 0.8669 MB / 0.5213 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006024/0.4653, allocations: 5.028 MB / 0.5263 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007439/0.466, allocations: 417.6 kB / 0.5267 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003435/0.4664, allocations: 215.8 kB / 0.5269 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.787e-05/0.4665, allocations: 11.5 kB / 0.5269 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.244e-05/0.4665, allocations: 37.02 kB / 0.5269 GB, free: 8.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 2.605e-06/0.4665, allocations: 1.75 kB / 0.5269 GB, free: 8.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.002135/0.4687, allocations: 1.071 MB / 0.528 GB, free: 8.316 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.4687, allocations: 82.12 kB / 0.528 GB, free: 8.223 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005798/0.4693, allocations: 0.4929 MB / 0.5285 GB, free: 7.988 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.4694, allocations: 31.11 kB / 0.5285 GB, free: 7.953 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003142/0.4697, allocations: 454.8 kB / 0.529 GB, free: 7.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.4698, allocations: 158.9 kB / 0.5291 GB, free: 7.473 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002175/0.4701, allocations: 146 kB / 0.5293 GB, free: 7.398 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.4702, allocations: 371.8 kB / 0.5296 GB, free: 7.059 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003716/0.4706, allocations: 244.9 kB / 0.5299 GB, free: 6.988 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006389/0.4713, allocations: 0.621 MB / 0.5305 GB, free: 6.398 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.4724, allocations: 0.9402 MB / 0.5314 GB, free: 5.648 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.4724, allocations: 3.531 kB / 0.5314 GB, free: 5.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001518/0.474, allocations: 0.899 MB / 0.5323 GB, free: 5.293 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.083e-05/0.474, allocations: 12.19 kB / 0.5323 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.539e-05/0.474, allocations: 13.31 kB / 0.5323 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.947e-05/0.4741, allocations: 18.03 kB / 0.5323 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008561/0.4749, allocations: 221 kB / 0.5325 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.756e-05/0.475, allocations: 25.45 kB / 0.5325 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005394/0.4755, allocations: 56.94 kB / 0.5326 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.102e-05/0.4756, allocations: 41.33 kB / 0.5326 GB, free: 5.242 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.0005133/0.4761, allocations: 313.7 kB / 0.5329 GB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.4762, allocations: 53.44 kB / 0.533 GB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001062/0.4773, allocations: 0.5558 MB / 0.5335 GB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.4773, allocations: 5.688 kB / 0.5335 GB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4773, allocations: 1.156 kB / 0.5335 GB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.4774, allocations: 2.625 kB / 0.5335 GB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002208/0.4796, allocations: 1.337 MB / 0.5348 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.4796, allocations: 2.719 kB / 0.5348 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004554/0.4801, allocations: 116.6 kB / 0.535 GB, free: 3.844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.179e-05/0.4801, allocations: 8.25 kB / 0.535 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.405e-05/0.4801, allocations: 13.34 kB / 0.535 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.435e-06/0.4801, allocations: 8.297 kB / 0.535 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.4801, allocations: 5.969 kB / 0.535 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008819/0.481, allocations: 0.6427 MB / 0.5356 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001636/0.4812, allocations: 130.4 kB / 0.5357 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.406e-05/0.4813, allocations: 9.281 kB / 0.5357 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002581/0.4815, allocations: 28.88 kB / 0.5358 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.4816, allocations: 35.42 kB / 0.5358 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.4817, allocations: 20.62 kB / 0.5358 GB, free: 3.211 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003788/0.482, allocations: 328.1 kB / 0.5361 GB, free: 3.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4821, allocations: 0 / 0.5361 GB, free: 3.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008181/0.4829, allocations: 162.2 kB / 0.5363 GB, free: 3 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.001144/0.484, allocations: 1.194 MB / 0.5375 GB, free: 2.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.4851, allocations: 0.6133 MB / 0.5381 GB, free: 1.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.4851, allocations: 0 / 0.5381 GB, free: 1.754 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003402/0.4854, allocations: 239.5 kB / 0.5383 GB, free: 1.652 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007146/0.4861, allocations: 119.4 kB / 0.5384 GB, free: 1.586 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007631/0.4938, allocations: 5.774 MB / 0.544 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007449/0.4946, allocations: 1.001 MB / 0.545 GB, free: 12.47 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006673/0.4953, allocations: 229.3 kB / 0.5452 GB, free: 12.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003936/0.4957, allocations: 258.2 kB / 0.5455 GB, free: 12.15 MB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4957, allocations: 0 / 0.5455 GB, free: 12.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04755/0.5432, allocations: 11.54 MB / 0.5568 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.487/9.031, allocations: 4 kB / 0.5568 GB, free: 0.7422 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches