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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 222.9 MB / 241.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 99.45 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3398/0.3398, allocations: 44.12 MB / 386.1 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 51.92 kB / 457.7 MB, free: 2.316 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2778, allocations: 60.8 MB / 0.5064 GB, free: 38.37 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001664/0.2795, allocations: 0.5568 MB / 0.5069 GB, free: 38.04 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002622/0.2822, allocations: 2.288 MB / 0.5092 GB, free: 36.46 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.787e-06/0.2822, allocations: 0 / 0.5092 GB, free: 36.46 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.116e-06/0.2822, allocations: 0 / 0.5092 GB, free: 36.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.382e-06/0.2822, allocations: 0 / 0.5092 GB, free: 36.46 MB / 378.7 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.001706/0.2839, allocations: 0.5145 MB / 0.5097 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.839e-05/0.284, allocations: 2.875 kB / 0.5097 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.597e-05/0.284, allocations: 10.66 kB / 0.5097 GB, free: 36.21 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.611e-05/0.2841, allocations: 5.625 kB / 0.5097 GB, free: 36.21 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.311e-05/0.2841, allocations: 10.86 kB / 0.5097 GB, free: 36.21 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.919e-06/0.2841, allocations: 0 / 0.5097 GB, free: 36.21 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007233/0.2848, allocations: 0.5972 MB / 0.5103 GB, free: 36.03 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.38e-06/0.2849, allocations: 0 / 0.5103 GB, free: 36.03 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.915e-05/0.2849, allocations: 2.906 kB / 0.5103 GB, free: 36.03 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004464/0.2853, allocations: 427.6 kB / 0.5107 GB, free: 35.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2854, allocations: 0 / 0.5107 GB, free: 35.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2854, allocations: 0 / 0.5107 GB, free: 35.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.2854, allocations: 4 kB / 0.5107 GB, free: 35.91 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.000275/0.2856, allocations: 421.7 kB / 0.5111 GB, free: 35.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.2857, allocations: 8.719 kB / 0.5111 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.801e-05/0.2857, allocations: 79 kB / 0.5112 GB, free: 35.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.626e-05/0.2858, allocations: 238.9 kB / 0.5114 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.2858, allocations: 150.9 kB / 0.5115 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.2859, allocations: 162.7 kB / 0.5117 GB, free: 34.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.541e-05/0.2859, allocations: 107.7 kB / 0.5118 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.2859, allocations: 75.28 kB / 0.5119 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.286, allocations: 150.6 kB / 0.512 GB, free: 34.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.286, allocations: 150.6 kB / 0.5122 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.57e-05/0.286, allocations: 150.6 kB / 0.5123 GB, free: 34.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001484/0.2862, allocations: 453 kB / 0.5127 GB, free: 33.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.056e-05/0.2862, allocations: 176.4 kB / 0.5129 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.598e-05/0.2862, allocations: 84.08 kB / 0.513 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.2863, allocations: 82.31 kB / 0.5131 GB, free: 33.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.2863, allocations: 135.5 kB / 0.5132 GB, free: 33.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 8.72e-07/0.2863, allocations: 0 / 0.5132 GB, free: 33.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 5.86e-05/0.2864, allocations: 25.7 kB / 0.5132 GB, free: 33.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.288e-05/0.2864, allocations: 159.3 kB / 0.5134 GB, free: 33.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.354e-05/0.2864, allocations: 89.86 kB / 0.5135 GB, free: 32.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.402e-06/0.2864, allocations: 25.7 kB / 0.5135 GB, free: 32.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.688e-05/0.2865, allocations: 80.14 kB / 0.5136 GB, free: 32.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.794e-06/0.2865, allocations: 2.906 kB / 0.5136 GB, free: 32.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.132e-05/0.2865, allocations: 23.95 kB / 0.5136 GB, free: 32.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.088e-05/0.2865, allocations: 310.8 kB / 0.5139 GB, free: 32.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.057e-06/0.2866, allocations: 0 / 0.5139 GB, free: 32.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.008e-05/0.2866, allocations: 2.906 kB / 0.5139 GB, free: 32.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.098e-05/0.2866, allocations: 75.28 kB / 0.514 GB, free: 32.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.2866, allocations: 75.28 kB / 0.514 GB, free: 32.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.344e-05/0.2867, allocations: 32.55 kB / 0.5141 GB, free: 32.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.2867, allocations: 88.23 kB / 0.5141 GB, free: 32.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.2867, allocations: 79.22 kB / 0.5142 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.066e-05/0.2867, allocations: 157.5 kB / 0.5144 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.167e-06/0.2867, allocations: 75.28 kB / 0.5144 GB, free: 31.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.82e-05/0.2868, allocations: 154.5 kB / 0.5146 GB, free: 31.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.095e-05/0.2868, allocations: 78.22 kB / 0.5147 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.2868, allocations: 79.22 kB / 0.5147 GB, free: 31.6 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 5.243e-05/0.2869, allocations: 266.6 kB / 0.515 GB, free: 31.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.481e-05/0.2869, allocations: 111.8 kB / 0.5151 GB, free: 31.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.971e-05/0.287, allocations: 104.1 kB / 0.5152 GB, free: 31.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.246e-05/0.287, allocations: 180.2 kB / 0.5154 GB, free: 30.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-05/0.287, allocations: 182.4 kB / 0.5155 GB, free: 30.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.277e-05/0.287, allocations: 192.5 kB / 0.5157 GB, free: 30.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.2872, allocations: 400.1 kB / 0.5161 GB, free: 30.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.2872, allocations: 108.3 kB / 0.5162 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.177e-05/0.2872, allocations: 108.9 kB / 0.5163 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.05e-05/0.2872, allocations: 179 kB / 0.5165 GB, free: 29.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.2873, allocations: 184.2 kB / 0.5167 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.91e-05/0.2873, allocations: 176.3 kB / 0.5168 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.12e-05/0.2873, allocations: 186.4 kB / 0.517 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001613/0.2875, allocations: 0.8488 MB / 0.5178 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.403e-05/0.2875, allocations: 182.1 kB / 0.518 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.946e-05/0.2875, allocations: 186.5 kB / 0.5182 GB, free: 27.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.236e-05/0.2876, allocations: 105 kB / 0.5183 GB, free: 27.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.559e-05/0.2876, allocations: 187 kB / 0.5185 GB, free: 27.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.2876, allocations: 101 kB / 0.5186 GB, free: 27.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.326e-05/0.2877, allocations: 79.28 kB / 0.5186 GB, free: 27.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2877, allocations: 0 / 0.5186 GB, free: 27.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000504/0.2882, allocations: 136.8 kB / 0.5188 GB, free: 27.36 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.0006256/0.2888, allocations: 418 kB / 0.5192 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 3.779e-05/0.2888, allocations: 2.906 kB / 0.5192 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2889, allocations: 0 / 0.5192 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.813e-06/0.2889, allocations: 3.938 kB / 0.5192 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002132/0.2891, allocations: 0.5251 MB / 0.5197 GB, free: 26.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 9.491e-05/0.2892, allocations: 148.9 kB / 0.5198 GB, free: 26.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.973e-05/0.2893, allocations: 0.672 MB / 0.5205 GB, free: 25.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.292e-06/0.2893, allocations: 0 / 0.5205 GB, free: 25.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.404e-06/0.2893, allocations: 7.438 kB / 0.5205 GB, free: 25.75 MB / 378.7 MB Notification: Performance of SimCode: time 1.8e-07/0.2893, allocations: 0 / 0.5205 GB, free: 25.75 MB / 378.7 MB Notification: Performance of Templates: time 0.00557/0.2949, allocations: 3.065 MB / 0.5235 GB, free: 25.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@2/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