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.001884/0.001884, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002102/0.002102, allocations: 169.3 kB / 24.28 MB, free: 152 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.573/1.573, allocations: 177.1 MB / 204.6 MB, free: 5.594 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.3655/0.3655, allocations: 32.8 MB / 293.9 MB, free: 1.223 MB / 266.7 MB " [Timeout remaining time 179] 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 1.753e-06/1.753e-06, allocations: 0 / 375.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.647e-05/3.822e-05, allocations: 6.312 kB / 375.2 MB, free: 5.016 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001532/0.00157, allocations: 0.4892 MB / 375.7 MB, free: 4.523 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003951/0.005522, allocations: 2.218 MB / 378 MB, free: 2.285 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.948e-06/0.005525, allocations: 0 / 378 MB, free: 2.285 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.078e-06/0.00553, allocations: 0 / 378 MB, free: 2.285 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.192e-06/0.005531, allocations: 0 / 378 MB, free: 2.285 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.001928/0.007459, allocations: 0.6191 MB / 378.6 MB, free: 1.664 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.413e-05/0.007493, allocations: 4 kB / 378.6 MB, free: 1.66 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.155e-05/0.007515, allocations: 0 / 378.6 MB, free: 1.66 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.007657, allocations: 27.84 kB / 378.6 MB, free: 1.633 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.351e-05/0.007701, allocations: 4 kB / 378.6 MB, free: 1.629 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-06/0.007708, allocations: 0 / 378.6 MB, free: 1.629 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001158/0.008866, allocations: 0.6435 MB / 379.2 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.009e-06/0.008871, allocations: 3.938 kB / 379.3 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.951e-05/0.00889, allocations: 0 / 379.3 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008569/0.009747, allocations: 0.5574 MB / 379.8 MB, free: 432 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.00975, allocations: 0 / 379.8 MB, free: 432 kB / 346.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.009751, allocations: 0 / 379.8 MB, free: 432 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.009755, allocations: 3.938 kB / 379.8 MB, free: 428 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.0005346/0.01029, allocations: 457.2 kB / 380.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.01034, allocations: 12.03 kB / 380.3 MB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.966e-05/0.01044, allocations: 120.1 kB / 380.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.01059, allocations: 227.8 kB / 380.6 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.01072, allocations: 242.8 kB / 380.8 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.01084, allocations: 238.8 kB / 381.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001148/0.01096, allocations: 145.5 kB / 381.2 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.899e-05/0.01104, allocations: 123.1 kB / 381.3 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.01118, allocations: 246.4 kB / 381.6 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001304/0.01131, allocations: 238.4 kB / 381.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001373/0.01145, allocations: 246.3 kB / 382.1 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000423/0.01187, allocations: 0.5681 MB / 382.6 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001828/0.01205, allocations: 261.4 kB / 382.9 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.895e-05/0.01213, allocations: 126.9 kB / 383 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.684e-05/0.01221, allocations: 123.2 kB / 383.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/0.01234, allocations: 190.2 kB / 383.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 5.81e-07/0.01234, allocations: 0 / 383.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 8.784e-05/0.01243, allocations: 29.64 kB / 383.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.01256, allocations: 200.3 kB / 383.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.646e-05/0.01266, allocations: 146.2 kB / 383.7 MB, free: 12.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.01268, allocations: 25.7 kB / 383.7 MB, free: 12.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/0.01294, allocations: 126.9 kB / 383.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.643e-06/0.01294, allocations: 0 / 383.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.978e-05/0.01298, allocations: 19.38 kB / 383.8 MB, free: 12.17 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003087/0.01329, allocations: 0.4884 MB / 384.3 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.042e-06/0.01329, allocations: 0 / 384.3 MB, free: 11.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.459e-05/0.01334, allocations: 25.7 kB / 384.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.833e-05/0.0134, allocations: 119.2 kB / 384.5 MB, free: 11.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.881e-05/0.01347, allocations: 127.2 kB / 384.6 MB, free: 11.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.129e-05/0.01353, allocations: 33.62 kB / 384.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.387e-05/0.01362, allocations: 131.1 kB / 384.8 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.038e-05/0.0137, allocations: 127.2 kB / 384.9 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001669/0.01387, allocations: 246.2 kB / 385.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.654e-05/0.01394, allocations: 119.2 kB / 385.2 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001285/0.01407, allocations: 246.3 kB / 385.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.0142, allocations: 123.2 kB / 385.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.626e-05/0.01427, allocations: 123.2 kB / 385.7 MB, free: 10.26 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.0002542/0.01452, allocations: 398.9 kB / 386.1 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.01463, allocations: 152.8 kB / 386.3 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.591e-05/0.01473, allocations: 147.9 kB / 386.4 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001406/0.01487, allocations: 272 kB / 386.7 MB, free: 9.281 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001391/0.01501, allocations: 268.1 kB / 386.9 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001636/0.01517, allocations: 272.1 kB / 387.2 MB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003405/0.01551, allocations: 495.8 kB / 387.7 MB, free: 8.211 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.098e-05/0.01559, allocations: 145.2 kB / 387.8 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.31e-05/0.01568, allocations: 156.8 kB / 388 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001427/0.01582, allocations: 268.1 kB / 388.2 MB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001534/0.01597, allocations: 268.1 kB / 388.5 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001613/0.01613, allocations: 272 kB / 388.8 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001868/0.01632, allocations: 272 kB / 389 MB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.0166, allocations: 440 kB / 389.5 MB, free: 6.359 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.605e-05/0.01669, allocations: 152.9 kB / 389.6 MB, free: 6.203 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001765/0.01687, allocations: 276 kB / 389.9 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.01698, allocations: 148.9 kB / 390 MB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.01714, allocations: 272 kB / 390.3 MB, free: 5.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-05/0.01724, allocations: 152.9 kB / 390.4 MB, free: 5.344 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.025e-05/0.01731, allocations: 123.2 kB / 390.6 MB, free: 5.223 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01731, allocations: 0 / 390.6 MB, free: 5.223 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005193/0.01783, allocations: 139.6 kB / 390.7 MB, free: 5.086 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.0009882/0.01881, allocations: 490.4 kB / 391.2 MB, free: 4.605 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 5.765e-05/0.01887, allocations: 11.94 kB / 391.2 MB, free: 4.594 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.01887, allocations: 4 kB / 391.2 MB, free: 4.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.312e-06/0.01887, allocations: 0 / 391.2 MB, free: 4.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006719/0.01955, allocations: 0.705 MB / 391.9 MB, free: 3.883 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002409/0.01979, allocations: 201.7 kB / 392.1 MB, free: 3.656 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.899e-05/0.01985, allocations: 59.34 kB / 392.2 MB, free: 3.578 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.442e-06/0.01985, allocations: 0 / 392.2 MB, free: 3.578 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.242e-05/0.01987, allocations: 8.5 kB / 392.2 MB, free: 3.57 MB / 362.7 MB Notification: Performance of SimCode: time 6.12e-07/0.01988, allocations: 4 kB / 392.2 MB, free: 3.566 MB / 362.7 MB Notification: Performance of Templates: time 0.008088/0.02796, allocations: 3.357 MB / 395.5 MB, free: 220 kB / 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 240] 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.056287621962838]