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.001319/0.001319, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.000958/0.000958, allocations: 167.6 kB / 25.61 MB, free: 8.902 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.908/0.908, allocations: 177.1 MB / 206 MB, free: 4.492 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.1365/0.1365, allocations: 34.26 MB / 296.8 MB, free: 13.93 MB / 282.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.132e-06/1.132e-06, allocations: 0 / 379.3 MB, free: 23.45 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.305e-05/1.419e-05, allocations: 5.547 kB / 379.3 MB, free: 23.45 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0008333/0.0008475, allocations: 497 kB / 379.8 MB, free: 22.96 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001855/0.002702, allocations: 2.214 MB / 382 MB, free: 20.72 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.117e-06/0.002706, allocations: 0 / 382 MB, free: 20.72 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 6.673e-06/0.002713, allocations: 0 / 382 MB, free: 20.72 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 1.342e-06/0.002714, allocations: 0 / 382 MB, free: 20.72 MB / 314.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.001128/0.003842, allocations: 0.6191 MB / 382.6 MB, free: 20.1 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 3.415e-05/0.003877, allocations: 8 kB / 382.6 MB, free: 20.09 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.534e-05/0.003902, allocations: 3.984 kB / 382.6 MB, free: 20.09 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.533e-05/0.003997, allocations: 15.92 kB / 382.6 MB, free: 20.07 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.23e-05/0.00403, allocations: 8 kB / 382.6 MB, free: 20.07 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.638e-06/0.004034, allocations: 0 / 382.6 MB, free: 20.07 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005214/0.004556, allocations: 0.6423 MB / 383.3 MB, free: 19.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.071e-06/0.004562, allocations: 0 / 383.3 MB, free: 19.43 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.395e-05/0.004576, allocations: 0 / 383.3 MB, free: 19.43 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003929/0.004969, allocations: 0.5496 MB / 383.8 MB, free: 18.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.00497, allocations: 0 / 383.8 MB, free: 18.88 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.004971, allocations: 0 / 383.8 MB, free: 18.88 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.004975, allocations: 7.938 kB / 383.8 MB, free: 18.87 MB / 314.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.000199/0.005174, allocations: 457.2 kB / 384.3 MB, free: 18.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.861e-05/0.005203, allocations: 8.031 kB / 384.3 MB, free: 18.37 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.205e-05/0.005235, allocations: 124.1 kB / 384.4 MB, free: 18.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.017e-05/0.005275, allocations: 231.8 kB / 384.6 MB, free: 18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.005295, allocations: 242.7 kB / 384.9 MB, free: 17.76 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.005311, allocations: 238.8 kB / 385.1 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.404e-05/0.005345, allocations: 145.5 kB / 385.2 MB, free: 17.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.005357, allocations: 127.1 kB / 385.4 MB, free: 17.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.005379, allocations: 238.4 kB / 385.6 MB, free: 17.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.005397, allocations: 242.4 kB / 385.8 MB, free: 16.78 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.72e-05/0.005415, allocations: 242.3 kB / 386.1 MB, free: 16.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001112/0.005526, allocations: 0.553 MB / 386.6 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.989e-05/0.005566, allocations: 269.4 kB / 386.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.14e-05/0.005577, allocations: 130.9 kB / 387 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.767e-06/0.005586, allocations: 119.2 kB / 387.1 MB, free: 15.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.005613, allocations: 182.2 kB / 387.3 MB, free: 15.24 MB / 314.7 MB Notification: Performance of pre-optimization done (n=0): time 5.21e-07/0.005614, allocations: 0 / 387.3 MB, free: 15.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=0): time 4.022e-05/0.005654, allocations: 29.7 kB / 387.3 MB, free: 15.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.873e-05/0.005682, allocations: 200.2 kB / 387.5 MB, free: 14.99 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.564e-05/0.005698, allocations: 146.2 kB / 387.7 MB, free: 14.83 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.98e-06/0.005703, allocations: 25.7 kB / 387.7 MB, free: 14.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.235e-05/0.005715, allocations: 130.9 kB / 387.8 MB, free: 14.67 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.41e-07/0.005716, allocations: 0 / 387.8 MB, free: 14.67 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.649e-05/0.005733, allocations: 27.36 kB / 387.9 MB, free: 14.63 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.553e-05/0.005768, allocations: 492.1 kB / 388.3 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.194e-06/0.00577, allocations: 0 / 388.3 MB, free: 14.14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.685e-05/0.005787, allocations: 29.7 kB / 388.4 MB, free: 14.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.085e-05/0.005798, allocations: 119.2 kB / 388.5 MB, free: 13.99 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/0.005807, allocations: 119.2 kB / 388.6 MB, free: 13.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.015e-05/0.005837, allocations: 37.69 kB / 388.6 MB, free: 13.83 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.005854, allocations: 127.2 kB / 388.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.005864, allocations: 119.2 kB / 388.9 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.005887, allocations: 254.3 kB / 389.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.996e-06/0.005896, allocations: 119.2 kB / 389.2 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.818e-05/0.005915, allocations: 250.3 kB / 389.5 MB, free: 12.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.27e-05/0.005947, allocations: 123.2 kB / 389.6 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.005957, allocations: 119.2 kB / 389.7 MB, free: 12.73 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 4.641e-05/0.006003, allocations: 395 kB / 390.1 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.488e-05/0.006028, allocations: 148.8 kB / 390.2 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.666e-05/0.006045, allocations: 155.9 kB / 390.4 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.829e-05/0.006063, allocations: 272 kB / 390.7 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/0.006082, allocations: 272 kB / 390.9 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.866e-05/0.0061, allocations: 264.1 kB / 391.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.92e-05/0.00618, allocations: 484.5 kB / 391.7 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/0.006191, allocations: 149.2 kB / 391.8 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.176e-05/0.006203, allocations: 152.8 kB / 392 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.948e-05/0.006222, allocations: 272.1 kB / 392.2 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.006242, allocations: 264.1 kB / 392.5 MB, free: 9.859 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.982e-05/0.006261, allocations: 272 kB / 392.7 MB, free: 9.586 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.075e-05/0.006282, allocations: 268.1 kB / 393 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.902e-05/0.006341, allocations: 443.9 kB / 393.4 MB, free: 8.855 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.413e-05/0.006355, allocations: 148.9 kB / 393.6 MB, free: 8.703 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/0.006382, allocations: 280 kB / 393.9 MB, free: 8.422 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.842e-05/0.006421, allocations: 152.9 kB / 394 MB, free: 8.266 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.387e-05/0.006445, allocations: 272 kB / 394.3 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.006459, allocations: 152.8 kB / 394.4 MB, free: 7.836 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.679e-05/0.006475, allocations: 119.2 kB / 394.5 MB, free: 7.719 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006475, allocations: 0 / 394.5 MB, free: 7.719 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002833/0.006759, allocations: 139.5 kB / 394.7 MB, free: 7.582 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.0004709/0.00723, allocations: 481.9 kB / 395.1 MB, free: 7.105 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 3.714e-05/0.007267, allocations: 15.92 kB / 395.2 MB, free: 7.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.007268, allocations: 0 / 395.2 MB, free: 7.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.71e-07/0.007269, allocations: 0 / 395.2 MB, free: 7.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001752/0.007444, allocations: 0.71 MB / 395.9 MB, free: 6.375 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 8.128e-05/0.007525, allocations: 196 kB / 396.1 MB, free: 6.156 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.871e-05/0.007544, allocations: 59.22 kB / 396.1 MB, free: 6.078 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.64e-06/0.00755, allocations: 0 / 396.1 MB, free: 6.078 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.225e-05/0.007582, allocations: 78.19 kB / 396.2 MB, free: 6 MB / 314.7 MB Notification: Performance of SimCode: time 3.61e-07/0.007582, allocations: 0 / 396.2 MB, free: 6 MB / 314.7 MB Notification: Performance of Templates: time 0.004352/0.01193, allocations: 3.791 MB / 400 MB, free: 2.219 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 -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: 3.0968373883515596]