Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009736/0.0009736, allocations: 79.69 kB / 21.7 MB, free: 2.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009641/0.0009641, allocations: 166.7 kB / 24.99 MB, free: 8.246 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.086/1.086, allocations: 177 MB / 205.2 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2809/0.2809, allocations: 34.87 MB / 296.6 MB, free: 0.5547 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 378.7 MB, free: 2.465 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.548e-05/2.721e-05, allocations: 2.312 kB / 378.7 MB, free: 2.461 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001054/0.001081, allocations: 0.5071 MB / 379.2 MB, free: 1.953 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002654/0.003735, allocations: 2.241 MB / 381.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.749e-06/0.003739, allocations: 0 / 381.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 9.517e-06/0.003749, allocations: 0 / 381.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 1.984e-06/0.003751, allocations: 0 / 381.5 MB, free: 15.69 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.001387/0.005138, allocations: 0.6114 MB / 382.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.385e-05/0.005182, allocations: 11.92 kB / 382.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.556e-05/0.005207, allocations: 0 / 382.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.005343, allocations: 19.94 kB / 382.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.227e-05/0.005396, allocations: 7.984 kB / 382.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.634e-06/0.005403, allocations: 0 / 382.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007428/0.006146, allocations: 0.6435 MB / 382.8 MB, free: 14.39 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.14e-06/0.006151, allocations: 0 / 382.8 MB, free: 14.39 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.691e-05/0.006168, allocations: 0 / 382.8 MB, free: 14.39 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005173/0.006685, allocations: 0.5573 MB / 383.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.006688, allocations: 0 / 383.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.006689, allocations: 4 kB / 383.3 MB, free: 13.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.006693, allocations: 0 / 383.3 MB, free: 13.83 MB / 362.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.0003116/0.007005, allocations: 453.2 kB / 383.8 MB, free: 13.35 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.007043, allocations: 12.03 kB / 383.8 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.373e-05/0.007107, allocations: 132.1 kB / 383.9 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.968e-05/0.007197, allocations: 223.8 kB / 384.1 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.746e-05/0.007264, allocations: 246.7 kB / 384.4 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.522e-05/0.007329, allocations: 238.8 kB / 384.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.998e-05/0.007409, allocations: 145.5 kB / 384.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.53e-05/0.007445, allocations: 123.1 kB / 384.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.155e-05/0.007506, allocations: 242.4 kB / 385.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.536e-05/0.007562, allocations: 242.4 kB / 385.3 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.489e-05/0.007616, allocations: 238.4 kB / 385.6 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002327/0.007849, allocations: 0.5719 MB / 386.1 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.614e-05/0.007935, allocations: 261.4 kB / 386.4 MB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.716e-05/0.007972, allocations: 126.9 kB / 386.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.008007, allocations: 127.2 kB / 386.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.438e-05/0.008071, allocations: 182.3 kB / 386.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 9.22e-07/0.008072, allocations: 0 / 386.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 6.286e-05/0.008135, allocations: 33.58 kB / 386.9 MB, free: 10.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.405e-05/0.008199, allocations: 200.3 kB / 387 MB, free: 9.926 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.764e-05/0.008236, allocations: 146.2 kB / 387.2 MB, free: 9.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.135e-06/0.008245, allocations: 25.7 kB / 387.2 MB, free: 9.738 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.171e-05/0.008276, allocations: 126.9 kB / 387.3 MB, free: 9.609 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.034e-06/0.008278, allocations: 0 / 387.3 MB, free: 9.609 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.056e-05/0.008299, allocations: 19.38 kB / 387.4 MB, free: 9.582 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.00841, allocations: 0.4884 MB / 387.8 MB, free: 9.082 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.727e-06/0.008413, allocations: 0 / 387.8 MB, free: 9.082 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.665e-05/0.00844, allocations: 25.7 kB / 387.9 MB, free: 9.051 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.127e-05/0.008471, allocations: 127.1 kB / 388 MB, free: 8.926 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.571e-05/0.008497, allocations: 119.2 kB / 388.1 MB, free: 8.809 MB / 362.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.552e-05/0.008533, allocations: 29.69 kB / 388.1 MB, free: 8.773 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.023e-05/0.008573, allocations: 135.2 kB / 388.3 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-05/0.008606, allocations: 123.2 kB / 388.4 MB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.045e-05/0.008666, allocations: 242.3 kB / 388.6 MB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.815e-05/0.008694, allocations: 127.1 kB / 388.8 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.389e-05/0.008748, allocations: 242.4 kB / 389 MB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.457e-05/0.008803, allocations: 123.1 kB / 389.1 MB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/0.008831, allocations: 123.2 kB / 389.2 MB, free: 7.676 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.0001135/0.008944, allocations: 395 kB / 389.6 MB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.929e-05/0.008994, allocations: 148.9 kB / 389.8 MB, free: 7.125 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.686e-05/0.009031, allocations: 151.8 kB / 389.9 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.055e-05/0.009091, allocations: 280 kB / 390.2 MB, free: 6.691 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.606e-05/0.009147, allocations: 268 kB / 390.4 MB, free: 6.422 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.367e-05/0.009201, allocations: 264.1 kB / 390.7 MB, free: 6.156 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.009353, allocations: 499.8 kB / 391.2 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-05/0.009384, allocations: 149.1 kB / 391.3 MB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.339e-05/0.009418, allocations: 152.9 kB / 391.5 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.236e-05/0.00947, allocations: 268 kB / 391.7 MB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.853e-05/0.009529, allocations: 264.1 kB / 392 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.963e-05/0.009588, allocations: 272 kB / 392.3 MB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-05/0.009644, allocations: 272 kB / 392.5 MB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001203/0.009765, allocations: 452 kB / 393 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.224e-05/0.009797, allocations: 148.9 kB / 393.1 MB, free: 3.613 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.126e-05/0.009858, allocations: 272 kB / 393.4 MB, free: 3.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.404e-05/0.009912, allocations: 156.9 kB / 393.5 MB, free: 3.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.226e-05/0.009975, allocations: 272 kB / 393.8 MB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.01, allocations: 148.8 kB / 394 MB, free: 2.754 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.57e-05/0.01004, allocations: 123.2 kB / 394.1 MB, free: 2.633 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01004, allocations: 0 / 394.1 MB, free: 2.633 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003143/0.01035, allocations: 135.6 kB / 394.2 MB, free: 2.5 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.0005894/0.01094, allocations: 491.3 kB / 394.7 MB, free: 2.016 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 4.719e-05/0.01099, allocations: 7.984 kB / 394.7 MB, free: 2.008 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.01099, allocations: 0 / 394.7 MB, free: 2.008 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.042e-06/0.01099, allocations: 0 / 394.7 MB, free: 2.008 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.01126, allocations: 0.71 MB / 395.4 MB, free: 1.293 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001387/0.0114, allocations: 202 kB / 395.6 MB, free: 1.066 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.174e-05/0.01143, allocations: 55.36 kB / 395.7 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.071e-06/0.01143, allocations: 4 kB / 395.7 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.482e-05/0.01145, allocations: 8.5 kB / 395.7 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01145, allocations: 0 / 395.7 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of Templates: time 0.004808/0.01626, allocations: 3.356 MB / 399 MB, free: 13.63 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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: 3.1998009651433676]