Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 118.4 kB / 17.78 MB, free: 5.262 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.001083/0.001083, allocations: 183.8 kB / 18.71 MB, free: 4.34 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.46/1.46, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.204/0.204, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 63.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.424/0.4253, allocations: 60.81 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.002066/0.4274, allocations: 0.4928 MB / 0.5194 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003158/0.4306, allocations: 2.004 MB / 0.5213 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.067e-05/0.4306, allocations: 0 / 0.5213 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.992e-05/0.4306, allocations: 3.938 kB / 0.5213 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.416e-05/0.4307, allocations: 1.125 kB / 0.5213 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.432, allocations: 377.3 kB / 0.5217 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.352e-05/0.4321, allocations: 1.797 kB / 0.5217 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.393e-05/0.4321, allocations: 1.922 kB / 0.5217 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.278e-05/0.4321, allocations: 6.328 kB / 0.5217 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0158/0.4479, allocations: 3.353 MB / 0.525 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.797e-05/0.448, allocations: 1.375 kB / 0.525 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.4481, allocations: 3.453 kB / 0.525 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.174e-05/0.4481, allocations: 1.375 kB / 0.525 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.485e-05/0.4481, allocations: 5.375 kB / 0.525 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001562/0.4483, allocations: 14.06 kB / 0.525 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.4483, allocations: 0 / 0.525 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4483, allocations: 1.375 kB / 0.525 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.441e-06/0.4483, allocations: 0 / 0.525 GB, free: 0.8516 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0002892/0.4486, allocations: 322.1 kB / 0.5253 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.4487, allocations: 10.7 kB / 0.5253 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002105/0.4489, allocations: 85.11 kB / 0.5254 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.449, allocations: 236.8 kB / 0.5256 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.449, allocations: 150.9 kB / 0.5258 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.77e-05/0.4491, allocations: 156.9 kB / 0.5259 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.257e-05/0.4492, allocations: 105 kB / 0.526 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.256e-05/0.4492, allocations: 80.59 kB / 0.5261 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.338e-05/0.4493, allocations: 151.7 kB / 0.5262 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-05/0.4494, allocations: 150.6 kB / 0.5264 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.661e-05/0.4495, allocations: 155.9 kB / 0.5265 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003078/0.4498, allocations: 444.8 kB / 0.5269 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.87e-05/0.4499, allocations: 166.5 kB / 0.5271 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.834e-05/0.4499, allocations: 92.81 kB / 0.5272 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.812e-05/0.45, allocations: 79.22 kB / 0.5273 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.667e-05/0.45, allocations: 107.2 kB / 0.5274 GB, free: 14.28 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.092e-06/0.45, allocations: 4 kB / 0.5274 GB, free: 14.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.43e-05/0.4501, allocations: 28.2 kB / 0.5274 GB, free: 14.24 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.587e-05/0.4502, allocations: 180.1 kB / 0.5276 GB, free: 14.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.4503, allocations: 91.84 kB / 0.5277 GB, free: 13.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.4504, allocations: 25.7 kB / 0.5277 GB, free: 13.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/0.4504, allocations: 86.31 kB / 0.5278 GB, free: 13.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.873e-06/0.4504, allocations: 0 / 0.5278 GB, free: 13.83 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.899e-05/0.4504, allocations: 16.59 kB / 0.5278 GB, free: 13.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.4506, allocations: 311.4 kB / 0.5281 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.24e-06/0.4506, allocations: 5.312 kB / 0.5281 GB, free: 13.49 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.918e-05/0.4506, allocations: 11.89 kB / 0.5281 GB, free: 13.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.372e-05/0.4506, allocations: 77.45 kB / 0.5282 GB, free: 13.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.364e-05/0.4507, allocations: 79.22 kB / 0.5282 GB, free: 13.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.482e-05/0.4508, allocations: 33.19 kB / 0.5283 GB, free: 13.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.939e-05/0.4508, allocations: 87.78 kB / 0.5284 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-05/0.4508, allocations: 79.83 kB / 0.5284 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.337e-05/0.4509, allocations: 160.8 kB / 0.5286 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.168e-05/0.4509, allocations: 76.66 kB / 0.5287 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.697e-05/0.451, allocations: 155.1 kB / 0.5288 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.558e-05/0.4511, allocations: 78.55 kB / 0.5289 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/0.4511, allocations: 84.02 kB / 0.529 GB, free: 12.59 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.0001215/0.4513, allocations: 259.8 kB / 0.5292 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.597e-05/0.4513, allocations: 111 kB / 0.5293 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.398e-05/0.4514, allocations: 106.8 kB / 0.5294 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.919e-05/0.4515, allocations: 182.1 kB / 0.5296 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.725e-05/0.4515, allocations: 181 kB / 0.5298 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.934e-05/0.4516, allocations: 182.4 kB / 0.5299 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.4518, allocations: 408.6 kB / 0.5303 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-05/0.4519, allocations: 102.9 kB / 0.5304 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.119e-05/0.4519, allocations: 106.8 kB / 0.5305 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.164e-05/0.452, allocations: 177.1 kB / 0.5307 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.087e-05/0.452, allocations: 186.4 kB / 0.5309 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.982e-05/0.4521, allocations: 178.2 kB / 0.531 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.096e-05/0.4522, allocations: 190.9 kB / 0.5312 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001287/0.4523, allocations: 303.8 kB / 0.5315 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.883e-05/0.4524, allocations: 188.8 kB / 0.5317 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.965e-05/0.4525, allocations: 183.1 kB / 0.5319 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.4526, allocations: 108.4 kB / 0.532 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.958e-05/0.4527, allocations: 177.1 kB / 0.5321 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.981e-05/0.4527, allocations: 107.2 kB / 0.5322 GB, free: 9.047 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.363e-05/0.4528, allocations: 80.59 kB / 0.5323 GB, free: 8.969 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4528, allocations: 4.094 kB / 0.5323 GB, free: 8.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002569/0.453, allocations: 1.375 kB / 0.5323 GB, free: 8.965 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0001235/0.4532, allocations: 172 kB / 0.5325 GB, free: 8.797 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.077e-05/0.4532, allocations: 5.375 kB / 0.5325 GB, free: 8.793 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4532, allocations: 1.375 kB / 0.5325 GB, free: 8.793 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.353e-06/0.4532, allocations: 0 / 0.5325 GB, free: 8.793 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.4536, allocations: 462.9 kB / 0.5329 GB, free: 8.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002192/0.4538, allocations: 150.8 kB / 0.5331 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.454, allocations: 0.6751 MB / 0.5337 GB, free: 7.473 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.37e-05/0.4541, allocations: 0.5625 kB / 0.5337 GB, free: 7.473 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.272e-05/0.4541, allocations: 8.812 kB / 0.5338 GB, free: 7.465 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4541, allocations: 0 / 0.5338 GB, free: 7.465 MB / 398.1 MB Notification: Performance of Templates: time 0.00302/0.4571, allocations: 313.1 kB / 0.5341 GB, free: 7.391 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches