Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.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.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001009/0.001009, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.335/1.335, 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.1979/0.1979, allocations: 44.18 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 59.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.364, allocations: 60.82 MB / 0.5189 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001459/0.3655, allocations: 0.4888 MB / 0.5194 GB, free: 3.559 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002745/0.3683, allocations: 2.185 MB / 0.5215 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.478e-06/0.3683, allocations: 0 / 0.5215 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.966e-06/0.3683, allocations: 0 / 0.5215 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.54e-06/0.3684, allocations: 1.188 kB / 0.5215 GB, free: 2.027 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Nonlinear.mo:8:5-85:27:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.quadratureLobatto1' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Nonlinear.mo:87:5-157:27:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.quadratureLobatto2' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Nonlinear.mo:159:5-233:33:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.solveNonlinearEquations1' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Nonlinear.mo:235:5-313:33:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.solveNonlinearEquations2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002177/0.3705, allocations: 0.6124 MB / 0.5221 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.976e-05/0.3706, allocations: 8.672 kB / 0.5221 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.443e-05/0.3706, allocations: 1.891 kB / 0.5221 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.27e-05/0.3707, allocations: 19.61 kB / 0.5221 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.284e-05/0.3708, allocations: 4.594 kB / 0.5221 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.681e-06/0.3708, allocations: 0 / 0.5221 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001203/0.372, allocations: 0.6337 MB / 0.5227 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.423e-05/0.372, allocations: 4.547 kB / 0.5227 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.114e-05/0.3721, allocations: 2.5 kB / 0.5228 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008117/0.3729, allocations: 435.5 kB / 0.5232 GB, free: 1.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3729, allocations: 4 kB / 0.5232 GB, free: 1.418 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3729, allocations: 1.156 kB / 0.5232 GB, free: 1.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.3729, allocations: 0 / 0.5232 GB, free: 1.418 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.0003273/0.3732, allocations: 423.3 kB / 0.5236 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.3733, allocations: 10.34 kB / 0.5236 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.177e-05/0.3733, allocations: 76.22 kB / 0.5237 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.085e-05/0.3734, allocations: 242.2 kB / 0.5239 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.3734, allocations: 155.5 kB / 0.524 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.254e-05/0.3735, allocations: 154.7 kB / 0.5242 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.639e-05/0.3735, allocations: 107.2 kB / 0.5243 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.3735, allocations: 75.28 kB / 0.5244 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.086e-05/0.3736, allocations: 156 kB / 0.5245 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.172e-05/0.3737, allocations: 150.6 kB / 0.5247 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.819e-05/0.3737, allocations: 156.4 kB / 0.5248 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002746/0.374, allocations: 444.6 kB / 0.5252 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.959e-05/0.3741, allocations: 169.1 kB / 0.5254 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.26e-05/0.3741, allocations: 90 kB / 0.5255 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.3742, allocations: 79.28 kB / 0.5255 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.266e-05/0.3743, allocations: 137.3 kB / 0.5257 GB, free: 14.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 8.12e-07/0.3743, allocations: 0 / 0.5257 GB, free: 14.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.489e-05/0.3743, allocations: 31.69 kB / 0.5257 GB, free: 14.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.511e-05/0.3744, allocations: 159 kB / 0.5259 GB, free: 14.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.274e-05/0.3745, allocations: 89.86 kB / 0.5259 GB, free: 14.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.3745, allocations: 26.5 kB / 0.526 GB, free: 14.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.325e-05/0.3745, allocations: 85.23 kB / 0.5261 GB, free: 14.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.054e-06/0.3745, allocations: 0 / 0.5261 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.519e-05/0.3746, allocations: 14.08 kB / 0.5261 GB, free: 14.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.3747, allocations: 313.2 kB / 0.5264 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.368e-06/0.3747, allocations: 0 / 0.5264 GB, free: 13.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.376e-05/0.3747, allocations: 2.547 kB / 0.5264 GB, free: 13.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.689e-05/0.3748, allocations: 75.28 kB / 0.5264 GB, free: 13.91 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.267e-05/0.3748, allocations: 80.34 kB / 0.5265 GB, free: 13.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.375e-05/0.3749, allocations: 37.03 kB / 0.5266 GB, free: 13.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/0.3749, allocations: 80.91 kB / 0.5266 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-05/0.3749, allocations: 86.16 kB / 0.5267 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.687e-05/0.375, allocations: 155.5 kB / 0.5269 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.495e-05/0.375, allocations: 85.17 kB / 0.5269 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.253e-05/0.3751, allocations: 151.1 kB / 0.5271 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.379e-05/0.3752, allocations: 77.88 kB / 0.5272 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.563e-05/0.3752, allocations: 83.22 kB / 0.5272 GB, free: 13.09 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.0001188/0.3753, allocations: 265.3 kB / 0.5275 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.84e-05/0.3754, allocations: 107.6 kB / 0.5276 GB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.067e-05/0.3754, allocations: 108.7 kB / 0.5277 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.347e-05/0.3755, allocations: 179 kB / 0.5279 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.676e-05/0.3756, allocations: 181.4 kB / 0.528 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-05/0.3756, allocations: 182.1 kB / 0.5282 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002066/0.3758, allocations: 401.3 kB / 0.5286 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.93e-05/0.3759, allocations: 113.5 kB / 0.5287 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.186e-05/0.3759, allocations: 104 kB / 0.5288 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.919e-05/0.376, allocations: 180.8 kB / 0.529 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.802e-05/0.3761, allocations: 182.9 kB / 0.5292 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.98e-05/0.3761, allocations: 180.9 kB / 0.5293 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.084e-05/0.3762, allocations: 190.8 kB / 0.5295 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001431/0.3764, allocations: 301.7 kB / 0.5298 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.39e-05/0.3764, allocations: 187.3 kB / 0.53 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.421e-05/0.3765, allocations: 182.8 kB / 0.5301 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-05/0.3766, allocations: 106.9 kB / 0.5302 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.603e-05/0.3767, allocations: 179 kB / 0.5304 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-05/0.3767, allocations: 103.4 kB / 0.5305 GB, free: 9.551 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.674e-05/0.3767, allocations: 79.22 kB / 0.5306 GB, free: 9.473 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3767, allocations: 4 kB / 0.5306 GB, free: 9.469 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006064/0.3773, allocations: 133.4 kB / 0.5307 GB, free: 9.441 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.0008428/0.3782, allocations: 422.2 kB / 0.5311 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.971e-05/0.3783, allocations: 2.453 kB / 0.5311 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3783, allocations: 0 / 0.5311 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.643e-06/0.3783, allocations: 0 / 0.5311 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/0.3787, allocations: 460.2 kB / 0.5316 GB, free: 8.773 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001307/0.3788, allocations: 144.4 kB / 0.5317 GB, free: 8.609 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.379, allocations: 0.685 MB / 0.5324 GB, free: 7.898 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.131e-06/0.379, allocations: 0 / 0.5324 GB, free: 7.898 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.046e-05/0.3791, allocations: 9.438 kB / 0.5324 GB, free: 7.891 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3791, allocations: 0 / 0.5324 GB, free: 7.891 MB / 398.1 MB Notification: Performance of Templates: time 0.007135/0.3862, allocations: 3.068 MB / 0.5354 GB, free: 6.477 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches