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.001717/0.001718, allocations: 105.2 kB / 17.78 MB, free: 5.246 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.00181/0.001811, allocations: 188.9 kB / 18.71 MB, free: 4.32 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.439/1.439, 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.2285/0.2285, allocations: 44.18 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 67.88 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4809/0.4822, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.00161/0.4838, allocations: 496.2 kB / 0.5194 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00396/0.4878, allocations: 2.188 MB / 0.5215 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.019e-05/0.4879, allocations: 1.094 kB / 0.5215 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 6.843e-06/0.4879, allocations: 0 / 0.5215 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.114e-06/0.4879, allocations: 0 / 0.5215 GB, free: 1.77 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.002473/0.4904, allocations: 0.6192 MB / 0.5221 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.651e-05/0.4905, allocations: 6.047 kB / 0.5221 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.076e-05/0.4905, allocations: 1.734 kB / 0.5221 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.4906, allocations: 10.77 kB / 0.5221 GB, free: 1.488 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.284e-05/0.4907, allocations: 5.172 kB / 0.5221 GB, free: 1.488 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.276e-06/0.4907, allocations: 0 / 0.5221 GB, free: 1.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001533/0.4922, allocations: 0.6419 MB / 0.5228 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.048e-05/0.4923, allocations: 4 kB / 0.5228 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.55e-05/0.4923, allocations: 2.906 kB / 0.5228 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007831/0.4931, allocations: 438.9 kB / 0.5232 GB, free: 1.164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.4931, allocations: 1.531 kB / 0.5232 GB, free: 1.164 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4931, allocations: 0 / 0.5232 GB, free: 1.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.4931, allocations: 0 / 0.5232 GB, free: 1.164 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.0003868/0.4935, allocations: 419.6 kB / 0.5236 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.4936, allocations: 9.312 kB / 0.5236 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.592e-05/0.4936, allocations: 82.97 kB / 0.5237 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.891e-05/0.4937, allocations: 240.4 kB / 0.5239 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.227e-05/0.4937, allocations: 150.9 kB / 0.524 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.184e-05/0.4938, allocations: 157.3 kB / 0.5242 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.753e-05/0.4939, allocations: 108.9 kB / 0.5243 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.77e-05/0.4939, allocations: 75.98 kB / 0.5244 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.501e-05/0.494, allocations: 156.6 kB / 0.5245 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.169e-05/0.4941, allocations: 154.6 kB / 0.5247 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.947e-05/0.4941, allocations: 150.6 kB / 0.5248 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003206/0.4944, allocations: 441.9 kB / 0.5252 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001086/0.4946, allocations: 175 kB / 0.5254 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.199e-05/0.4946, allocations: 88.08 kB / 0.5255 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.146e-05/0.4947, allocations: 76.08 kB / 0.5255 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.439e-05/0.4947, allocations: 133.3 kB / 0.5257 GB, free: 14.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.152e-06/0.4947, allocations: 0 / 0.5257 GB, free: 14.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 9.45e-05/0.4948, allocations: 28.28 kB / 0.5257 GB, free: 14.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.129e-05/0.4949, allocations: 157.1 kB / 0.5259 GB, free: 14.28 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.862e-05/0.495, allocations: 89.86 kB / 0.5259 GB, free: 14.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.495, allocations: 31.75 kB / 0.526 GB, free: 14.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.146e-05/0.4951, allocations: 80.14 kB / 0.526 GB, free: 14.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.825e-06/0.4951, allocations: 1.625 kB / 0.526 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.4951, allocations: 13.75 kB / 0.5261 GB, free: 14.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.4953, allocations: 316.8 kB / 0.5264 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.322e-06/0.4953, allocations: 0 / 0.5264 GB, free: 13.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.906e-05/0.4953, allocations: 2.312 kB / 0.5264 GB, free: 13.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.282e-05/0.4954, allocations: 80.16 kB / 0.5264 GB, free: 13.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.22e-05/0.4954, allocations: 80.84 kB / 0.5265 GB, free: 13.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.91e-05/0.4955, allocations: 31.48 kB / 0.5265 GB, free: 13.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.09e-05/0.4955, allocations: 80.78 kB / 0.5266 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.275e-05/0.4956, allocations: 81.84 kB / 0.5267 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.557e-05/0.4957, allocations: 155.2 kB / 0.5269 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.543e-05/0.4957, allocations: 81.34 kB / 0.5269 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-05/0.4958, allocations: 160.1 kB / 0.5271 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.596e-05/0.4959, allocations: 81.55 kB / 0.5272 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.568e-05/0.496, allocations: 79.22 kB / 0.5272 GB, free: 12.85 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.0001552/0.4961, allocations: 260.7 kB / 0.5275 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.679e-05/0.4962, allocations: 107.2 kB / 0.5276 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.548e-05/0.4963, allocations: 118.3 kB / 0.5277 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.507e-05/0.4964, allocations: 177 kB / 0.5279 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001058/0.4965, allocations: 182.3 kB / 0.528 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.599e-05/0.4966, allocations: 186.3 kB / 0.5282 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003214/0.4969, allocations: 396.8 kB / 0.5286 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.645e-05/0.497, allocations: 115 kB / 0.5287 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.579e-05/0.497, allocations: 102.2 kB / 0.5288 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001028/0.4971, allocations: 178.2 kB / 0.529 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.4973, allocations: 186.3 kB / 0.5292 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.462e-05/0.4974, allocations: 176.9 kB / 0.5293 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001013/0.4975, allocations: 189.8 kB / 0.5295 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001837/0.4977, allocations: 306.1 kB / 0.5298 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.52e-05/0.4978, allocations: 188.4 kB / 0.53 GB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.4979, allocations: 178.3 kB / 0.5301 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.432e-05/0.498, allocations: 108.7 kB / 0.5302 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.172e-05/0.4981, allocations: 181.5 kB / 0.5304 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.477e-05/0.4981, allocations: 103.4 kB / 0.5305 GB, free: 9.301 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.457e-05/0.4981, allocations: 75.28 kB / 0.5306 GB, free: 9.227 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.903e-06/0.4982, allocations: 0 / 0.5306 GB, free: 9.227 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006213/0.4988, allocations: 133.6 kB / 0.5307 GB, free: 9.199 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.0009891/0.4998, allocations: 413.8 kB / 0.5311 GB, free: 8.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.429e-05/0.4998, allocations: 1.375 kB / 0.5311 GB, free: 8.988 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4999, allocations: 1.375 kB / 0.5311 GB, free: 8.988 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.957e-06/0.4999, allocations: 0 / 0.5311 GB, free: 8.988 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003985/0.5003, allocations: 472.2 kB / 0.5316 GB, free: 8.527 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002125/0.5005, allocations: 145.1 kB / 0.5317 GB, free: 8.363 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.5008, allocations: 0.6735 MB / 0.5324 GB, free: 7.664 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.172e-05/0.5008, allocations: 1.891 kB / 0.5324 GB, free: 7.664 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.879e-05/0.5009, allocations: 8.812 kB / 0.5324 GB, free: 7.656 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.5009, allocations: 3.938 kB / 0.5324 GB, free: 7.652 MB / 398.1 MB Notification: Performance of Templates: time 0.009421/0.5103, allocations: 3.067 MB / 0.5354 GB, free: 6.297 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