Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009336/0.0009337, allocations: 173.7 kB / 17.4 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.649/1.649, allocations: 225.7 MB / 243.9 MB, free: 8.461 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000874/0.0008739, allocations: 96.14 kB / 295 MB, free: 9.492 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3807/0.3807, allocations: 44.32 MB / 390.5 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000348/0.0003479, allocations: 12 kB / 463.1 MB, free: 488 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3907/0.3911, allocations: 61.9 MB / 0.5127 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0006529/0.3918, allocations: 219.6 kB / 0.5129 GB, free: 37.72 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003097/0.3949, allocations: 3.281 MB / 0.5161 GB, free: 34.9 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.609e-06/0.3949, allocations: 0 / 0.5161 GB, free: 34.9 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.928e-06/0.3949, allocations: 0 / 0.5161 GB, free: 34.9 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.263e-06/0.3949, allocations: 0 / 0.5161 GB, free: 34.9 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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‘. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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‘. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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‘. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.001932/0.3969, allocations: 0.5038 MB / 0.5166 GB, free: 34.66 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.908e-05/0.3969, allocations: 13.06 kB / 0.5167 GB, free: 34.66 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.722e-05/0.3969, allocations: 0 / 0.5167 GB, free: 34.66 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.384e-05/0.397, allocations: 13.8 kB / 0.5167 GB, free: 34.65 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.291e-05/0.3971, allocations: 9.906 kB / 0.5167 GB, free: 34.64 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.1e-06/0.3971, allocations: 0 / 0.5167 GB, free: 34.64 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007428/0.3978, allocations: 0.5622 MB / 0.5172 GB, free: 34.49 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.694e-06/0.3979, allocations: 3.375 kB / 0.5172 GB, free: 34.49 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.792e-05/0.3979, allocations: 25.7 kB / 0.5173 GB, free: 34.46 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006667/0.3986, allocations: 427.1 kB / 0.5177 GB, free: 34.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3986, allocations: 0 / 0.5177 GB, free: 34.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3986, allocations: 4 kB / 0.5177 GB, free: 34.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.3986, allocations: 0 / 0.5177 GB, free: 34.34 MB / 378.7 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.0003079/0.3989, allocations: 415.7 kB / 0.5181 GB, free: 33.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.399, allocations: 10.25 kB / 0.5181 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.885e-05/0.399, allocations: 78.11 kB / 0.5181 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.038e-05/0.3991, allocations: 244.7 kB / 0.5184 GB, free: 33.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/0.3991, allocations: 150.9 kB / 0.5185 GB, free: 33.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.371e-05/0.3991, allocations: 159.7 kB / 0.5187 GB, free: 33.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.956e-05/0.3992, allocations: 108.3 kB / 0.5188 GB, free: 33.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.3992, allocations: 75.28 kB / 0.5188 GB, free: 33.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.889e-05/0.3993, allocations: 155.6 kB / 0.519 GB, free: 32.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.569e-05/0.3993, allocations: 150.6 kB / 0.5191 GB, free: 32.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.687e-05/0.3993, allocations: 151.7 kB / 0.5193 GB, free: 32.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001745/0.3995, allocations: 443 kB / 0.5197 GB, free: 32.15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.795e-05/0.3996, allocations: 176.8 kB / 0.5199 GB, free: 31.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.945e-05/0.3996, allocations: 85.08 kB / 0.52 GB, free: 31.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.143e-05/0.3996, allocations: 83.16 kB / 0.52 GB, free: 31.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.3996, allocations: 136.6 kB / 0.5202 GB, free: 31.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 9.01e-07/0.3996, allocations: 0 / 0.5202 GB, free: 31.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 6.082e-05/0.3997, allocations: 28.39 kB / 0.5202 GB, free: 31.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.3998, allocations: 152.4 kB / 0.5203 GB, free: 31.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.632e-05/0.3998, allocations: 92.39 kB / 0.5204 GB, free: 31.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.154e-06/0.3998, allocations: 27.11 kB / 0.5205 GB, free: 31.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.752e-05/0.3998, allocations: 85.27 kB / 0.5205 GB, free: 31.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-06/0.3998, allocations: 7.984 kB / 0.5205 GB, free: 31.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1e-07/0.3998, allocations: 0 / 0.5205 GB, free: 31.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.605e-05/0.3999, allocations: 311.9 kB / 0.5208 GB, free: 30.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.657e-06/0.3999, allocations: 0 / 0.5208 GB, free: 30.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.107e-05/0.3999, allocations: 6.125 kB / 0.5208 GB, free: 30.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.352e-05/0.3999, allocations: 75.28 kB / 0.5209 GB, free: 30.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.296e-05/0.4, allocations: 76.47 kB / 0.521 GB, free: 30.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.325e-05/0.4, allocations: 34.55 kB / 0.521 GB, free: 30.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.4, allocations: 79.75 kB / 0.5211 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.4, allocations: 80.38 kB / 0.5212 GB, free: 30.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.864e-05/0.4001, allocations: 155.7 kB / 0.5213 GB, free: 30.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.679e-06/0.4001, allocations: 76.31 kB / 0.5214 GB, free: 30.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.362e-05/0.4001, allocations: 158.8 kB / 0.5215 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.852e-05/0.4002, allocations: 80.41 kB / 0.5216 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.4002, allocations: 76.56 kB / 0.5217 GB, free: 30.05 MB / 378.7 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 6.556e-05/0.4003, allocations: 263.4 kB / 0.5219 GB, free: 29.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.712e-05/0.4003, allocations: 111 kB / 0.5221 GB, free: 29.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.478e-05/0.4003, allocations: 108.8 kB / 0.5222 GB, free: 29.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.187e-05/0.4004, allocations: 184.2 kB / 0.5223 GB, free: 29.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.303e-05/0.4004, allocations: 177.6 kB / 0.5225 GB, free: 29.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-05/0.4004, allocations: 181.4 kB / 0.5227 GB, free: 29.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.4006, allocations: 405.9 kB / 0.5231 GB, free: 28.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/0.4006, allocations: 110.6 kB / 0.5232 GB, free: 28.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.876e-05/0.4006, allocations: 113.8 kB / 0.5233 GB, free: 28.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.561e-05/0.4006, allocations: 181.3 kB / 0.5234 GB, free: 28.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.808e-05/0.4007, allocations: 184.2 kB / 0.5236 GB, free: 27.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.487e-05/0.4007, allocations: 181.2 kB / 0.5238 GB, free: 27.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.392e-05/0.4007, allocations: 177.5 kB / 0.524 GB, free: 27.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.491e-05/0.4008, allocations: 311.4 kB / 0.5243 GB, free: 27.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.217e-05/0.4008, allocations: 186 kB / 0.5244 GB, free: 27.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.4009, allocations: 182.8 kB / 0.5246 GB, free: 26.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.065e-05/0.401, allocations: 105 kB / 0.5247 GB, free: 26.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.095e-05/0.401, allocations: 182.2 kB / 0.5249 GB, free: 26.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.401, allocations: 105 kB / 0.525 GB, free: 26.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.411e-05/0.401, allocations: 76.41 kB / 0.5251 GB, free: 26.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.401, allocations: 0 / 0.5251 GB, free: 26.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005352/0.4016, allocations: 131.8 kB / 0.5252 GB, free: 26.39 MB / 378.7 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.000778/0.4024, allocations: 429.6 kB / 0.5256 GB, free: 26.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 4.315e-05/0.4024, allocations: 4.938 kB / 0.5256 GB, free: 26.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4024, allocations: 5.094 kB / 0.5256 GB, free: 26.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.004e-06/0.4024, allocations: 0.6562 kB / 0.5256 GB, free: 26.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.4027, allocations: 0.5264 MB / 0.5261 GB, free: 25.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000108/0.4028, allocations: 148.5 kB / 0.5263 GB, free: 25.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.43e-05/0.4029, allocations: 0.6738 MB / 0.5269 GB, free: 24.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.561e-06/0.4029, allocations: 5.094 kB / 0.5269 GB, free: 24.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.035e-06/0.4029, allocations: 8.5 kB / 0.5269 GB, free: 24.76 MB / 378.7 MB Notification: Performance of SimCode: time 1.81e-07/0.4029, allocations: 0 / 0.5269 GB, free: 24.76 MB / 378.7 MB Notification: Performance of Templates: time 0.006181/0.4091, allocations: 3.056 MB / 0.5299 GB, free: 24.45 MB / 378.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches