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.001292/0.001292, allocations: 112.8 kB / 17.77 MB, free: 5.359 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.0012/0.0012, allocations: 184.8 kB / 18.7 MB, free: 4.434 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.351/1.351, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2182/0.2182, allocations: 44.18 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 55.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4298/0.4314, allocations: 60.82 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.00219/0.4337, allocations: 493.9 kB / 0.5193 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003804/0.4375, allocations: 2 MB / 0.5213 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.089e-05/0.4375, allocations: 0 / 0.5213 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.331e-05/0.4376, allocations: 3.938 kB / 0.5213 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.821e-05/0.4376, allocations: 3.938 kB / 0.5213 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001397/0.439, allocations: 377.9 kB / 0.5217 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.01e-05/0.4391, allocations: 6.141 kB / 0.5217 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.691e-05/0.4392, allocations: 5.562 kB / 0.5217 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.262e-05/0.4392, allocations: 2.641 kB / 0.5217 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01549/0.4547, allocations: 3.354 MB / 0.5249 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.4547, allocations: 0 / 0.5249 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.4549, allocations: 5.734 kB / 0.525 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.343e-05/0.4549, allocations: 4 kB / 0.525 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.58e-05/0.4549, allocations: 10.17 kB / 0.525 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001772/0.4551, allocations: 13.2 kB / 0.525 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.4551, allocations: 1.469 kB / 0.525 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4551, allocations: 0 / 0.525 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.4551, allocations: 0 / 0.525 GB, free: 0.8438 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.0002934/0.4554, allocations: 323 kB / 0.5253 GB, free: 500 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.4555, allocations: 9.312 kB / 0.5253 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002071/0.4557, allocations: 84.95 kB / 0.5254 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.4558, allocations: 242.2 kB / 0.5256 GB, free: 144 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.81e-05/0.4559, allocations: 150.9 kB / 0.5258 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.639e-05/0.4559, allocations: 155.8 kB / 0.5259 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.06e-05/0.456, allocations: 101.7 kB / 0.526 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.55e-05/0.456, allocations: 76.34 kB / 0.5261 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-05/0.4561, allocations: 155.1 kB / 0.5262 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.394e-05/0.4562, allocations: 151.4 kB / 0.5264 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.429e-05/0.4562, allocations: 162.5 kB / 0.5265 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000293/0.4565, allocations: 441.2 kB / 0.5269 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.241e-05/0.4566, allocations: 171 kB / 0.5271 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.496e-05/0.4567, allocations: 92.88 kB / 0.5272 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.4567, allocations: 75.28 kB / 0.5273 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.939e-05/0.4568, allocations: 111.9 kB / 0.5274 GB, free: 14.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.032e-06/0.4568, allocations: 1.594 kB / 0.5274 GB, free: 14.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.918e-05/0.4569, allocations: 25.7 kB / 0.5274 GB, free: 14.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.457, allocations: 184.4 kB / 0.5276 GB, free: 14.03 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/0.4571, allocations: 93.42 kB / 0.5277 GB, free: 13.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.4571, allocations: 25.7 kB / 0.5277 GB, free: 13.9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.454e-05/0.4572, allocations: 85.08 kB / 0.5278 GB, free: 13.81 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.523e-06/0.4572, allocations: 0 / 0.5278 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.4572, allocations: 12.72 kB / 0.5278 GB, free: 13.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.4573, allocations: 311.5 kB / 0.5281 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.392e-06/0.4573, allocations: 128 / 0.5281 GB, free: 13.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.611e-05/0.4574, allocations: 17.05 kB / 0.5281 GB, free: 13.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.981e-05/0.4574, allocations: 80.5 kB / 0.5282 GB, free: 13.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.403e-05/0.4575, allocations: 79.22 kB / 0.5282 GB, free: 13.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.87e-05/0.4575, allocations: 37.72 kB / 0.5283 GB, free: 13.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.961e-05/0.4576, allocations: 79.78 kB / 0.5284 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-05/0.4576, allocations: 77.94 kB / 0.5284 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.594e-05/0.4577, allocations: 167.1 kB / 0.5286 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.243e-05/0.4577, allocations: 77.94 kB / 0.5287 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.853e-05/0.4578, allocations: 154.5 kB / 0.5288 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.8e-05/0.4579, allocations: 77.8 kB / 0.5289 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.797e-05/0.4579, allocations: 77.38 kB / 0.529 GB, free: 12.58 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.0001323/0.4581, allocations: 258.8 kB / 0.5292 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.572e-05/0.4581, allocations: 119.2 kB / 0.5293 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.494e-05/0.4582, allocations: 107 kB / 0.5294 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.578e-05/0.4583, allocations: 181 kB / 0.5296 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.992e-05/0.4583, allocations: 178.1 kB / 0.5298 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.486e-05/0.4584, allocations: 178 kB / 0.5299 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002295/0.4587, allocations: 413.5 kB / 0.5303 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.813e-05/0.4587, allocations: 103 kB / 0.5304 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.609e-05/0.4587, allocations: 105.6 kB / 0.5305 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.764e-05/0.4588, allocations: 178.4 kB / 0.5307 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.921e-05/0.4589, allocations: 178.5 kB / 0.5309 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.216e-05/0.459, allocations: 180.8 kB / 0.531 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.363e-05/0.459, allocations: 190 kB / 0.5312 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001547/0.4592, allocations: 306.4 kB / 0.5315 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.376e-05/0.4593, allocations: 184.9 kB / 0.5317 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.4594, allocations: 183.2 kB / 0.5319 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.846e-05/0.4595, allocations: 107 kB / 0.532 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.724e-05/0.4596, allocations: 182 kB / 0.5321 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.4596, allocations: 102.3 kB / 0.5322 GB, free: 9.039 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.31e-05/0.4596, allocations: 77.09 kB / 0.5323 GB, free: 8.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4596, allocations: 0 / 0.5323 GB, free: 8.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002764/0.4599, allocations: 1.312 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.0001149/0.46, allocations: 172.5 kB / 0.5325 GB, free: 8.797 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.135e-05/0.4601, allocations: 13.75 kB / 0.5325 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4601, allocations: 0 / 0.5325 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.054e-06/0.4601, allocations: 1.156 kB / 0.5325 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.4605, allocations: 458.7 kB / 0.5329 GB, free: 8.336 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002169/0.4607, allocations: 154.3 kB / 0.5331 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002257/0.461, allocations: 0.6733 MB / 0.5337 GB, free: 7.465 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.26e-05/0.461, allocations: 1.984 kB / 0.5337 GB, free: 7.465 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.065e-05/0.461, allocations: 8.219 kB / 0.5337 GB, free: 7.457 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.461, allocations: 0 / 0.5337 GB, free: 7.457 MB / 398.1 MB Notification: Performance of Templates: time 0.002417/0.4634, allocations: 317.2 kB / 0.534 GB, free: 7.379 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