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.0008441/0.0008441, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.004799/0.004799, allocations: 160.2 kB / 24.7 MB, free: 9.426 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.879/0.879, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.2384/0.2384, allocations: 32.79 MB / 294.2 MB, free: 1.191 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 2.054e-06/2.054e-06, allocations: 0 / 440.8 MB, free: 3.785 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.043e-05/3.248e-05, allocations: 4.953 kB / 440.8 MB, free: 3.781 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001074/0.001106, allocations: 0.4892 MB / 441.3 MB, free: 3.293 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002512/0.003618, allocations: 2.19 MB / 443.5 MB, free: 1.082 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.43e-06/0.003623, allocations: 0 / 443.5 MB, free: 1.082 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 7.324e-06/0.003631, allocations: 0 / 443.5 MB, free: 1.082 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.373e-06/0.003632, allocations: 0 / 443.5 MB, free: 1.082 MB / 410.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.001568/0.0052, allocations: 0.6357 MB / 444.1 MB, free: 460 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.92e-05/0.005249, allocations: 8 kB / 444.1 MB, free: 452 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.337e-05/0.005283, allocations: 8 kB / 444.2 MB, free: 444 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.005422, allocations: 15.97 kB / 444.2 MB, free: 428 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.561e-05/0.005458, allocations: 4 kB / 444.2 MB, free: 424 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.759e-06/0.005462, allocations: 0 / 444.2 MB, free: 424 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.185/0.1905, allocations: 0.6363 MB / 444.8 MB, free: 44.16 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.105e-05/0.1905, allocations: 2.875 kB / 444.8 MB, free: 44.16 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.573e-05/0.1905, allocations: 0 / 444.8 MB, free: 44.16 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006816/0.1912, allocations: 0.5608 MB / 445.4 MB, free: 44.16 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1912, allocations: 0.5312 kB / 445.4 MB, free: 44.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1912, allocations: 1.625 kB / 445.4 MB, free: 44.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.1912, allocations: 3.844 kB / 445.4 MB, free: 44.16 MB / 410.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.0002442/0.1915, allocations: 356.2 kB / 445.7 MB, free: 43.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.1915, allocations: 8.812 kB / 445.7 MB, free: 43.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.48e-05/0.1916, allocations: 76.94 kB / 445.8 MB, free: 43.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.636e-05/0.1916, allocations: 180.3 kB / 446 MB, free: 43.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.1916, allocations: 151.5 kB / 446.1 MB, free: 43.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.377e-05/0.1916, allocations: 150.9 kB / 446.3 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.714e-05/0.1917, allocations: 109.1 kB / 446.4 MB, free: 43.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1917, allocations: 76.72 kB / 446.5 MB, free: 43.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.1917, allocations: 158.1 kB / 446.6 MB, free: 42.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.1917, allocations: 153.8 kB / 446.8 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.588e-05/0.1917, allocations: 152 kB / 446.9 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001045/0.1918, allocations: 397.8 kB / 447.3 MB, free: 42.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.806e-05/0.1919, allocations: 173.4 kB / 447.5 MB, free: 42.06 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.148e-05/0.1919, allocations: 80.14 kB / 447.5 MB, free: 41.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.122e-05/0.1919, allocations: 79.27 kB / 447.6 MB, free: 41.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.1919, allocations: 134.3 kB / 447.8 MB, free: 41.76 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 8.31e-07/0.1919, allocations: 0 / 447.8 MB, free: 41.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 5.28e-05/0.192, allocations: 27.55 kB / 447.8 MB, free: 41.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.192, allocations: 162 kB / 447.9 MB, free: 41.56 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.07e-05/0.192, allocations: 89.86 kB / 448 MB, free: 41.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.911e-06/0.192, allocations: 25.7 kB / 448.1 MB, free: 41.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.157e-05/0.192, allocations: 83.42 kB / 448.1 MB, free: 41.35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.914e-06/0.192, allocations: 4.812 kB / 448.1 MB, free: 41.35 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.725e-05/0.192, allocations: 15.5 kB / 448.2 MB, free: 41.33 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.911e-05/0.1921, allocations: 313.5 kB / 448.5 MB, free: 41.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.47e-06/0.1921, allocations: 1.531 kB / 448.5 MB, free: 41.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.402e-05/0.1921, allocations: 25.7 kB / 448.5 MB, free: 40.99 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.084e-05/0.1921, allocations: 84.78 kB / 448.6 MB, free: 40.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.1921, allocations: 75.28 kB / 448.6 MB, free: 40.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 2.989e-05/0.1922, allocations: 34.83 kB / 448.7 MB, free: 40.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.1922, allocations: 80.94 kB / 448.8 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.1922, allocations: 78.38 kB / 448.8 MB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.485e-05/0.1922, allocations: 159.5 kB / 449 MB, free: 40.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.835e-06/0.1922, allocations: 78.28 kB / 449.1 MB, free: 40.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.1922, allocations: 154.5 kB / 449.2 MB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.801e-05/0.1923, allocations: 84.95 kB / 449.3 MB, free: 40.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-06/0.1923, allocations: 75.28 kB / 449.4 MB, free: 40.14 MB / 410.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.606e-05/0.1923, allocations: 268.4 kB / 449.6 MB, free: 39.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.962e-05/0.1923, allocations: 104.2 kB / 449.7 MB, free: 39.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.561e-05/0.1924, allocations: 108.8 kB / 449.8 MB, free: 39.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.667e-05/0.1924, allocations: 182.7 kB / 450 MB, free: 39.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/0.1924, allocations: 183.3 kB / 450.2 MB, free: 39.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.1924, allocations: 182.6 kB / 450.4 MB, free: 39.12 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.761e-05/0.1925, allocations: 358.2 kB / 450.7 MB, free: 38.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.1925, allocations: 105.9 kB / 450.8 MB, free: 38.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.556e-06/0.1925, allocations: 104 kB / 450.9 MB, free: 38.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.395e-05/0.1925, allocations: 179.4 kB / 451.1 MB, free: 38.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.1925, allocations: 182.4 kB / 451.3 MB, free: 38.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.296e-05/0.1925, allocations: 186.6 kB / 451.5 MB, free: 37.99 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.278e-05/0.1925, allocations: 178.4 kB / 451.6 MB, free: 37.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.542e-05/0.1926, allocations: 311 kB / 452 MB, free: 37.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.168e-05/0.1926, allocations: 110.9 kB / 452.1 MB, free: 37.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.1926, allocations: 179.5 kB / 452.2 MB, free: 37.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.315e-05/0.1927, allocations: 104.5 kB / 452.3 MB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.792e-05/0.1927, allocations: 182.6 kB / 452.5 MB, free: 36.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.268e-06/0.1927, allocations: 108.1 kB / 452.6 MB, free: 36.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.04e-05/0.1927, allocations: 79.11 kB / 452.7 MB, free: 36.74 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1927, allocations: 0 / 452.7 MB, free: 36.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000303/0.193, allocations: 140.3 kB / 452.8 MB, free: 36.72 MB / 410.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.0006037/0.1936, allocations: 447.9 kB / 453.3 MB, free: 36.53 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 4.793e-05/0.1936, allocations: 8.516 kB / 453.3 MB, free: 36.53 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1936, allocations: 0 / 453.3 MB, free: 36.53 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.12e-07/0.1936, allocations: 0 / 453.3 MB, free: 36.53 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000154/0.1938, allocations: 464.8 kB / 453.7 MB, free: 36.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001042/0.1939, allocations: 170.6 kB / 453.9 MB, free: 35.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.268e-05/0.1939, allocations: 59.3 kB / 454 MB, free: 35.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.146e-05/0.1939, allocations: 11.16 kB / 454 MB, free: 35.81 MB / 410.7 MB Notification: Performance of SimCode: time 3.41e-07/0.1939, allocations: 0 / 454 MB, free: 35.81 MB / 410.7 MB Notification: Performance of Templates: time 0.003078/0.197, allocations: 2.886 MB / 456.9 MB, free: 35.54 MB / 410.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.878994050435722]