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.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.001961/0.001961, allocations: 92.31 kB / 20.96 MB, free: 3.477 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.002554/0.002554, allocations: 165.7 kB / 24.27 MB, free: 168 kB / 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 1.528/1.528, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3375/0.3375, allocations: 32.8 MB / 293.9 MB, free: 1.199 MB / 266.7 MB " [Timeout remaining time 180] 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.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.0.0_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.739e-06/4.739e-06, allocations: 3.984 kB / 375.2 MB, free: 4.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.467e-05/4.941e-05, allocations: 10.25 kB / 375.2 MB, free: 4.98 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001738/0.001787, allocations: 489 kB / 375.7 MB, free: 4.5 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004704/0.006491, allocations: 2.183 MB / 377.9 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.511e-06/0.006497, allocations: 0 / 377.9 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.198e-06/0.006501, allocations: 0 / 377.9 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.163e-06/0.006502, allocations: 0 / 377.9 MB, free: 2.297 MB / 346.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.002489/0.008991, allocations: 0.6191 MB / 378.5 MB, free: 1.676 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.786e-05/0.009039, allocations: 7.984 kB / 378.5 MB, free: 1.668 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.993e-05/0.009069, allocations: 4 kB / 378.5 MB, free: 1.664 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.009224, allocations: 23.86 kB / 378.6 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.457e-05/0.009269, allocations: 4 kB / 378.6 MB, free: 1.637 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.542e-06/0.009275, allocations: 0 / 378.6 MB, free: 1.637 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00123/0.01051, allocations: 0.6435 MB / 379.2 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.633e-06/0.01051, allocations: 0 / 379.2 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.698e-05/0.01054, allocations: 7.984 kB / 379.2 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008603/0.0114, allocations: 0.5573 MB / 379.8 MB, free: 436 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.0114, allocations: 4 kB / 379.8 MB, free: 432 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.01141, allocations: 0 / 379.8 MB, free: 432 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.01141, allocations: 0 / 379.8 MB, free: 432 kB / 346.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.0005224/0.01193, allocations: 355.3 kB / 380.1 MB, free: 40 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.01198, allocations: 8.031 kB / 380.1 MB, free: 32 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.01208, allocations: 80.22 kB / 380.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.01222, allocations: 181.1 kB / 380.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.859e-05/0.01231, allocations: 150.9 kB / 380.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.852e-05/0.0124, allocations: 150.9 kB / 380.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.821e-05/0.0125, allocations: 105.5 kB / 380.8 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.426e-05/0.01255, allocations: 83.2 kB / 380.9 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.402e-05/0.01265, allocations: 150.6 kB / 381 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.821e-05/0.01274, allocations: 158.5 kB / 381.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.553e-05/0.01283, allocations: 154.6 kB / 381.3 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003524/0.01318, allocations: 389.6 kB / 381.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001343/0.01332, allocations: 169.1 kB / 381.9 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.298e-05/0.01337, allocations: 84.14 kB / 381.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.446e-05/0.01343, allocations: 79.22 kB / 382 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001135/0.01354, allocations: 139.5 kB / 382.2 MB, free: 13.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 8.11e-07/0.01354, allocations: 0 / 382.2 MB, free: 13.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 8.943e-05/0.01363, allocations: 29.64 kB / 382.2 MB, free: 13.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.01375, allocations: 156.4 kB / 382.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.793e-05/0.01383, allocations: 89.86 kB / 382.4 MB, free: 13.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.01385, allocations: 29.7 kB / 382.5 MB, free: 13.56 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.58e-05/0.01391, allocations: 80.14 kB / 382.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.134e-06/0.01391, allocations: 0 / 382.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.01394, allocations: 13.72 kB / 382.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.01413, allocations: 314.8 kB / 382.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.929e-06/0.01414, allocations: 0 / 382.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.775e-05/0.01418, allocations: 33.64 kB / 382.9 MB, free: 13.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.835e-05/0.01423, allocations: 79.28 kB / 383 MB, free: 13.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-05/0.01427, allocations: 75.28 kB / 383 MB, free: 12.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.873e-05/0.01434, allocations: 45.66 kB / 383.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.548e-05/0.0144, allocations: 79.28 kB / 383.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.272e-05/0.01444, allocations: 75.28 kB / 383.2 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001121/0.01455, allocations: 162.4 kB / 383.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.976e-05/0.01459, allocations: 75.28 kB / 383.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-05/0.01468, allocations: 158.5 kB / 383.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.01478, allocations: 79.28 kB / 383.7 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.613e-05/0.01483, allocations: 79.28 kB / 383.8 MB, free: 12.2 MB / 362.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 0.0001784/0.01501, allocations: 268.3 kB / 384 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.97e-05/0.01509, allocations: 101 kB / 384.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.394e-05/0.01516, allocations: 108 kB / 384.2 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001038/0.01526, allocations: 184.1 kB / 384.4 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001156/0.01538, allocations: 176.3 kB / 384.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003881/0.01577, allocations: 192.2 kB / 384.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002746/0.01604, allocations: 344.9 kB / 385.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.258e-05/0.0161, allocations: 109 kB / 385.2 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.809e-05/0.01616, allocations: 104.9 kB / 385.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001041/0.01627, allocations: 180.3 kB / 385.5 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/0.01638, allocations: 192.2 kB / 385.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001091/0.01649, allocations: 180.3 kB / 385.9 MB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001036/0.01659, allocations: 180.2 kB / 386 MB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002204/0.01681, allocations: 308.1 kB / 386.3 MB, free: 9.484 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.083e-05/0.01688, allocations: 104.9 kB / 386.4 MB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.017, allocations: 184.3 kB / 386.6 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.0171, allocations: 105 kB / 386.7 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.01722, allocations: 188.1 kB / 386.9 MB, free: 8.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.868e-05/0.01728, allocations: 109 kB / 387 MB, free: 8.773 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.45e-05/0.01733, allocations: 75.28 kB / 387.1 MB, free: 8.699 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01733, allocations: 0 / 387.1 MB, free: 8.699 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005728/0.0179, allocations: 139.6 kB / 387.2 MB, free: 8.562 MB / 362.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.001026/0.01893, allocations: 449.6 kB / 387.7 MB, free: 8.125 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 5.764e-05/0.01899, allocations: 11.94 kB / 387.7 MB, free: 8.113 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01899, allocations: 0 / 387.7 MB, free: 8.113 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.409e-06/0.01899, allocations: 4 kB / 387.7 MB, free: 8.109 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004448/0.01944, allocations: 458 kB / 388.1 MB, free: 7.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002118/0.01965, allocations: 156.1 kB / 388.3 MB, free: 7.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.825e-05/0.01972, allocations: 55.36 kB / 388.3 MB, free: 7.406 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.511e-06/0.01972, allocations: 0 / 388.3 MB, free: 7.406 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.127e-05/0.01974, allocations: 8.5 kB / 388.3 MB, free: 7.398 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01974, allocations: 0 / 388.3 MB, free: 7.398 MB / 362.7 MB Notification: Performance of Templates: time 0.008077/0.02782, allocations: 3.334 MB / 391.7 MB, free: 4.07 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.021417302079499]