Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 172.7 kB / 24.91 MB, free: 9.148 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9854/0.9854, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2517/0.2517, allocations: 34.26 MB / 296.1 MB, free: 0.7188 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 325.3 MB, free: 7.688 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.731e-05/1.862e-05, allocations: 3.188 kB / 325.3 MB, free: 7.684 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0009949/0.001014, allocations: 0.5449 MB / 325.8 MB, free: 7.137 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.003446, allocations: 2.242 MB / 328 MB, free: 4.875 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.009e-06/0.003451, allocations: 0 / 328 MB, free: 4.875 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.815e-06/0.003459, allocations: 4 kB / 328 MB, free: 4.871 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 1.343e-06/0.00346, allocations: 0 / 328 MB, free: 4.871 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Nonlinear.mo:8:5-88: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.1.0+maint.om/Math/Nonlinear.mo:90:5-160: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.1.0+maint.om/Math/Nonlinear.mo:162:5-239: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.1.0+maint.om/Math/Nonlinear.mo:241:5-319: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.001181/0.004642, allocations: 0.5684 MB / 328.6 MB, free: 4.301 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.18e-05/0.004683, allocations: 7.938 kB / 328.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.727e-05/0.004711, allocations: 0.625 kB / 328.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.004814, allocations: 19.97 kB / 328.6 MB, free: 4.273 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.637e-05/0.00485, allocations: 4 kB / 328.7 MB, free: 4.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.33e-06/0.004856, allocations: 4 kB / 328.7 MB, free: 4.266 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006845/0.00554, allocations: 0.6825 MB / 329.3 MB, free: 3.582 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.3e-06/0.005546, allocations: 0 / 329.3 MB, free: 3.582 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.355e-05/0.005559, allocations: 4 kB / 329.3 MB, free: 3.578 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004805/0.00604, allocations: 0.5461 MB / 329.9 MB, free: 3.031 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.006042, allocations: 0 / 329.9 MB, free: 3.031 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.006042, allocations: 0 / 329.9 MB, free: 3.031 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.006046, allocations: 0 / 329.9 MB, free: 3.031 MB / 298.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.0003048/0.006351, allocations: 337.6 kB / 330.2 MB, free: 2.672 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.006386, allocations: 12.03 kB / 330.2 MB, free: 2.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.251e-05/0.006429, allocations: 80.16 kB / 330.3 MB, free: 2.582 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.934e-05/0.006498, allocations: 177.1 kB / 330.5 MB, free: 2.383 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.976e-05/0.006538, allocations: 158.9 kB / 330.6 MB, free: 2.227 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.006574, allocations: 150.9 kB / 330.8 MB, free: 2.078 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.006678, allocations: 101.5 kB / 330.9 MB, free: 1.973 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.0067, allocations: 79.22 kB / 331 MB, free: 1.895 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.192e-05/0.006742, allocations: 154.6 kB / 331.1 MB, free: 1.742 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.78e-05/0.00678, allocations: 158.5 kB / 331.3 MB, free: 1.586 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.606e-05/0.006816, allocations: 154.5 kB / 331.4 MB, free: 1.434 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001444/0.006961, allocations: 365.3 kB / 331.8 MB, free: 1.062 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.534e-05/0.007026, allocations: 169.1 kB / 331.9 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.317e-05/0.007049, allocations: 80.14 kB / 332 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.00707, allocations: 79.27 kB / 332.1 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.987e-05/0.00712, allocations: 131.5 kB / 332.2 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of pre-optimization done (n=0): time 8.52e-07/0.007121, allocations: 0 / 332.2 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of matching and sorting (n=0): time 4.877e-05/0.00717, allocations: 33.64 kB / 332.3 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.00722, allocations: 156.3 kB / 332.4 MB, free: 376 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.535e-05/0.007245, allocations: 89.86 kB / 332.5 MB, free: 276 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.536e-06/0.007253, allocations: 25.7 kB / 332.5 MB, free: 244 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.622e-05/0.00728, allocations: 92.12 kB / 332.6 MB, free: 148 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.32e-07/0.007281, allocations: 0 / 332.6 MB, free: 148 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.941e-05/0.0073, allocations: 13.72 kB / 332.6 MB, free: 128 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001978/0.007498, allocations: 310.8 kB / 332.9 MB, free: 15.81 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.695e-06/0.007501, allocations: 0 / 332.9 MB, free: 15.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.359e-05/0.007524, allocations: 33.64 kB / 333 MB, free: 15.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.27e-05/0.007547, allocations: 83.27 kB / 333 MB, free: 15.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-05/0.007564, allocations: 75.28 kB / 333.1 MB, free: 15.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.836e-05/0.007603, allocations: 37.62 kB / 333.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.007627, allocations: 79.28 kB / 333.2 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.728e-05/0.007644, allocations: 75.28 kB / 333.3 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.039e-05/0.007685, allocations: 162.5 kB / 333.5 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.839e-05/0.007703, allocations: 75.28 kB / 333.5 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.314e-05/0.007736, allocations: 154.5 kB / 333.7 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.204e-05/0.007778, allocations: 83.22 kB / 333.8 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.007794, allocations: 75.28 kB / 333.8 MB, free: 14.88 MB / 314.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 7.822e-05/0.007872, allocations: 264.4 kB / 334.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.974e-05/0.007912, allocations: 108.9 kB / 334.2 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.57e-05/0.007947, allocations: 108 kB / 334.3 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.143e-05/0.007999, allocations: 176.3 kB / 334.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.47e-05/0.008043, allocations: 184.2 kB / 334.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.793e-05/0.008091, allocations: 192.2 kB / 334.8 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/0.008226, allocations: 317.6 kB / 335.2 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.708e-05/0.008253, allocations: 105 kB / 335.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.879e-05/0.008281, allocations: 105 kB / 335.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.414e-05/0.008326, allocations: 184.2 kB / 335.5 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.392e-05/0.00838, allocations: 184.2 kB / 335.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.926e-05/0.008429, allocations: 180.2 kB / 335.9 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-05/0.008472, allocations: 176.3 kB / 336.1 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004357/0.008908, allocations: 311.7 kB / 336.4 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.991e-05/0.008938, allocations: 105 kB / 336.5 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.897e-05/0.008997, allocations: 192.2 kB / 336.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.776e-05/0.009045, allocations: 101 kB / 336.8 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.407e-05/0.009099, allocations: 184.2 kB / 336.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.058e-05/0.009129, allocations: 105 kB / 337 MB, free: 11.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.232e-05/0.009142, allocations: 4.859 kB / 337.1 MB, free: 11.49 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009142, allocations: 0 / 337.1 MB, free: 11.49 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002927/0.009434, allocations: 135.6 kB / 337.2 MB, free: 11.36 MB / 314.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.0005785/0.01001, allocations: 447.5 kB / 337.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 4.32e-05/0.01006, allocations: 4 kB / 337.6 MB, free: 10.92 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.01006, allocations: 0 / 337.6 MB, free: 10.92 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.774e-06/0.01006, allocations: 3.938 kB / 337.6 MB, free: 10.92 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001708/0.01023, allocations: 467.7 kB / 338.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001073/0.01034, allocations: 154.5 kB / 338.2 MB, free: 10.28 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.75e-05/0.01037, allocations: 55.36 kB / 338.3 MB, free: 10.21 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.42e-06/0.01037, allocations: 0 / 338.3 MB, free: 10.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.948e-05/0.01041, allocations: 59.38 kB / 338.3 MB, free: 10.15 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01041, allocations: 0 / 338.3 MB, free: 10.15 MB / 314.7 MB Notification: Performance of Templates: time 0.00474/0.01515, allocations: 3.77 MB / 342.1 MB, free: 6.395 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8702852772548795]