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.001355/0.001355, 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.001478/0.001478, 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.379/1.379, allocations: 222.9 MB / 242.4 MB, free: 15.03 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.2202/0.2202, allocations: 44.19 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 63.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4664/0.4677, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.00164/0.4693, allocations: 0.496 MB / 0.5194 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003098/0.4724, allocations: 2.181 MB / 0.5215 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.803e-06/0.4725, allocations: 5.156 kB / 0.5215 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.188e-06/0.4725, allocations: 3.938 kB / 0.5215 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.282e-06/0.4725, allocations: 0 / 0.5215 GB, free: 1.758 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.002289/0.4748, allocations: 0.6081 MB / 0.5221 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.683e-05/0.4748, allocations: 5.203 kB / 0.5221 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.667e-05/0.4749, allocations: 1.906 kB / 0.5221 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.433e-05/0.475, allocations: 14.86 kB / 0.5221 GB, free: 1.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.674e-05/0.475, allocations: 4.25 kB / 0.5221 GB, free: 1.484 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.298e-06/0.475, allocations: 4 kB / 0.5221 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001057/0.4761, allocations: 0.6384 MB / 0.5228 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.276e-06/0.4761, allocations: 0.75 kB / 0.5228 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.287e-05/0.4761, allocations: 2.219 kB / 0.5228 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009005/0.477, allocations: 431.2 kB / 0.5232 GB, free: 1.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.4771, allocations: 1.5 kB / 0.5232 GB, free: 1.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4771, allocations: 0 / 0.5232 GB, free: 1.168 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.4771, allocations: 0 / 0.5232 GB, free: 1.168 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.0004208/0.4775, allocations: 429.2 kB / 0.5236 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.4776, allocations: 9 kB / 0.5236 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.408e-05/0.4776, allocations: 78.06 kB / 0.5237 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.681e-05/0.4777, allocations: 237.5 kB / 0.5239 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.4777, allocations: 154.9 kB / 0.524 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/0.4778, allocations: 154.7 kB / 0.5242 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.666e-05/0.4779, allocations: 106.8 kB / 0.5243 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.527e-05/0.4779, allocations: 80.2 kB / 0.5244 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.822e-05/0.478, allocations: 152.3 kB / 0.5245 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.917e-05/0.478, allocations: 154.6 kB / 0.5247 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.314e-05/0.4781, allocations: 154.5 kB / 0.5248 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002892/0.4784, allocations: 449.2 kB / 0.5252 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.805e-05/0.4785, allocations: 167 kB / 0.5254 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.773e-05/0.4785, allocations: 88.88 kB / 0.5255 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.4786, allocations: 75.28 kB / 0.5255 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.733e-05/0.4786, allocations: 138.3 kB / 0.5257 GB, free: 14.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.172e-06/0.4786, allocations: 0 / 0.5257 GB, free: 14.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 9.234e-05/0.4787, allocations: 31.42 kB / 0.5257 GB, free: 14.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.931e-05/0.4788, allocations: 153 kB / 0.5259 GB, free: 14.28 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.897e-05/0.4789, allocations: 93.8 kB / 0.5259 GB, free: 14.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.4789, allocations: 27.48 kB / 0.526 GB, free: 14.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.482e-05/0.4789, allocations: 80.8 kB / 0.526 GB, free: 14.06 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.094e-06/0.4789, allocations: 0 / 0.526 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.741e-05/0.479, allocations: 19.84 kB / 0.5261 GB, free: 14.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4791, allocations: 315.6 kB / 0.5264 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.63e-06/0.4791, allocations: 0 / 0.5264 GB, free: 13.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.7e-05/0.4791, allocations: 2.391 kB / 0.5264 GB, free: 13.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.647e-05/0.4792, allocations: 77.12 kB / 0.5264 GB, free: 13.65 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-05/0.4792, allocations: 75.28 kB / 0.5265 GB, free: 13.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.985e-05/0.4792, allocations: 40.48 kB / 0.5266 GB, free: 13.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.431e-05/0.4793, allocations: 85.16 kB / 0.5266 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.934e-05/0.4793, allocations: 79.31 kB / 0.5267 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.763e-05/0.4794, allocations: 157 kB / 0.5269 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.853e-05/0.4794, allocations: 83.84 kB / 0.5269 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-05/0.4795, allocations: 152.9 kB / 0.5271 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.393e-05/0.4796, allocations: 85.12 kB / 0.5272 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.335e-05/0.4796, allocations: 75.28 kB / 0.5272 GB, free: 12.84 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.0001211/0.4797, allocations: 263.8 kB / 0.5275 GB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.918e-05/0.4798, allocations: 108.8 kB / 0.5276 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.683e-05/0.4799, allocations: 108.6 kB / 0.5277 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.089e-05/0.4799, allocations: 178.8 kB / 0.5279 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.487e-05/0.48, allocations: 186 kB / 0.528 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.254e-05/0.4801, allocations: 182.2 kB / 0.5282 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/0.4803, allocations: 400.5 kB / 0.5286 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.812e-05/0.4804, allocations: 110.8 kB / 0.5287 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.803e-05/0.4804, allocations: 101.5 kB / 0.5288 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.746e-05/0.4805, allocations: 182.2 kB / 0.529 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.421e-05/0.4806, allocations: 182 kB / 0.5291 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.049e-05/0.4806, allocations: 182.4 kB / 0.5293 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.281e-05/0.4807, allocations: 186.1 kB / 0.5295 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/0.4809, allocations: 307.2 kB / 0.5298 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.607e-05/0.4809, allocations: 182.7 kB / 0.53 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.153e-05/0.481, allocations: 188.3 kB / 0.5301 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.789e-05/0.4811, allocations: 101.8 kB / 0.5302 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.769e-05/0.4812, allocations: 178.6 kB / 0.5304 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.841e-05/0.4812, allocations: 105.5 kB / 0.5305 GB, free: 9.301 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.929e-05/0.4813, allocations: 77.25 kB / 0.5306 GB, free: 9.227 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4813, allocations: 0 / 0.5306 GB, free: 9.227 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005924/0.4819, allocations: 128.8 kB / 0.5307 GB, free: 9.203 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.000924/0.4828, allocations: 419.4 kB / 0.5311 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.756e-05/0.4829, allocations: 1.312 kB / 0.5311 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.4829, allocations: 4 kB / 0.5311 GB, free: 8.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.016e-06/0.4829, allocations: 1.234 kB / 0.5311 GB, free: 8.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.4833, allocations: 470.5 kB / 0.5316 GB, free: 8.523 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001894/0.4835, allocations: 149 kB / 0.5317 GB, free: 8.355 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.4837, allocations: 0.675 MB / 0.5324 GB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.342e-06/0.4837, allocations: 0 / 0.5324 GB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.512e-05/0.4838, allocations: 14 kB / 0.5324 GB, free: 7.645 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4838, allocations: 0 / 0.5324 GB, free: 7.645 MB / 398.1 MB Notification: Performance of Templates: time 0.007915/0.4917, allocations: 3.06 MB / 0.5354 GB, free: 6.258 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