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.0008398/0.0008398, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0008368/0.0008368, allocations: 174.3 kB / 23.95 MB, free: 0.6094 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.912/0.912, allocations: 177.1 MB / 204.3 MB, free: 5.73 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 / 293.5 MB, free: 1.211 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: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 439.6 MB, free: 4.285 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.976e-05/2.127e-05, allocations: 4.391 kB / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0009285/0.0009498, allocations: 0.4893 MB / 440.1 MB, free: 3.793 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.003196, allocations: 2.179 MB / 442.2 MB, free: 1.594 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.939e-06/0.003201, allocations: 0 / 442.2 MB, free: 1.594 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.356e-06/0.003204, allocations: 0 / 442.2 MB, free: 1.594 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.102e-06/0.003205, allocations: 0 / 442.2 MB, free: 1.594 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.001334/0.004539, allocations: 0.6331 MB / 442.9 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.054e-05/0.004579, allocations: 11.98 kB / 442.9 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.759e-05/0.004607, allocations: 4 kB / 442.9 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.004726, allocations: 15.98 kB / 442.9 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.474e-05/0.00476, allocations: 7.984 kB / 442.9 MB, free: 0.9258 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.94e-06/0.004765, allocations: 0 / 442.9 MB, free: 0.9258 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006604/0.005426, allocations: 0.6396 MB / 443.5 MB, free: 292 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.909e-06/0.005431, allocations: 0 / 443.5 MB, free: 292 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.728e-05/0.005448, allocations: 4 kB / 443.5 MB, free: 288 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1804/0.1858, allocations: 0.5511 MB / 444.1 MB, free: 43.98 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1858, allocations: 1.625 kB / 444.1 MB, free: 43.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1858, allocations: 0 / 444.1 MB, free: 43.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1858, allocations: 0 / 444.1 MB, free: 43.98 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.0002359/0.1861, allocations: 357.9 kB / 444.4 MB, free: 43.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.1861, allocations: 7.844 kB / 444.5 MB, free: 43.68 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.711e-05/0.1861, allocations: 111.2 kB / 444.6 MB, free: 43.56 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.043e-05/0.1862, allocations: 76.97 kB / 444.6 MB, free: 43.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.583e-05/0.1862, allocations: 181.7 kB / 444.8 MB, free: 43.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.1862, allocations: 150.9 kB / 445 MB, free: 43.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.1862, allocations: 156.4 kB / 445.1 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.196e-05/0.1863, allocations: 105 kB / 445.2 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.1863, allocations: 75.91 kB / 445.3 MB, free: 42.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.1863, allocations: 163.3 kB / 445.5 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.1863, allocations: 154 kB / 445.6 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.334e-05/0.1863, allocations: 151.4 kB / 445.8 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001071/0.1864, allocations: 414.5 kB / 446.2 MB, free: 41.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.664e-05/0.1865, allocations: 169 kB / 446.3 MB, free: 41.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.185e-05/0.1865, allocations: 85.73 kB / 446.4 MB, free: 41.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.216e-06/0.1865, allocations: 75.91 kB / 446.5 MB, free: 41.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.1865, allocations: 138.1 kB / 446.6 MB, free: 41.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 5.41e-07/0.1865, allocations: 2.844 kB / 446.6 MB, free: 41.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 4.817e-05/0.1866, allocations: 35.8 kB / 446.7 MB, free: 41.41 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/0.1866, allocations: 153.3 kB / 446.8 MB, free: 41.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.315e-06/0.1866, allocations: 89.86 kB / 446.9 MB, free: 41.15 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.869e-06/0.1866, allocations: 28.42 kB / 446.9 MB, free: 41.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.935e-06/0.1866, allocations: 80.14 kB / 447 MB, free: 41.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.383e-06/0.1866, allocations: 3 kB / 447 MB, free: 41.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.63e-05/0.1866, allocations: 15.62 kB / 447 MB, free: 41.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.486e-05/0.1866, allocations: 314.8 kB / 447.3 MB, free: 40.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.258e-06/0.1867, allocations: 0 / 447.3 MB, free: 40.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.962e-05/0.1867, allocations: 28.48 kB / 447.3 MB, free: 40.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.458e-06/0.1867, allocations: 82.8 kB / 447.4 MB, free: 40.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.1867, allocations: 75.28 kB / 447.5 MB, free: 40.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 2.574e-05/0.1867, allocations: 31.39 kB / 447.5 MB, free: 40.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.1867, allocations: 84.44 kB / 447.6 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.1867, allocations: 84.52 kB / 447.7 MB, free: 40.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.1868, allocations: 158.5 kB / 447.9 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.901e-06/0.1868, allocations: 81.62 kB / 447.9 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.1868, allocations: 151.2 kB / 448.1 MB, free: 39.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.338e-05/0.1868, allocations: 82.06 kB / 448.2 MB, free: 39.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.1868, allocations: 79.72 kB / 448.2 MB, free: 39.82 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.095e-05/0.1869, allocations: 262.5 kB / 448.5 MB, free: 39.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.935e-05/0.1869, allocations: 110.9 kB / 448.6 MB, free: 39.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.361e-05/0.1869, allocations: 109.7 kB / 448.7 MB, free: 39.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.1869, allocations: 183.7 kB / 448.9 MB, free: 39.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/0.1869, allocations: 180 kB / 449.1 MB, free: 38.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.1869, allocations: 188.1 kB / 449.2 MB, free: 38.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.576e-05/0.187, allocations: 368.8 kB / 449.6 MB, free: 38.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.187, allocations: 107.5 kB / 449.7 MB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.264e-06/0.187, allocations: 104.4 kB / 449.8 MB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.137e-05/0.187, allocations: 182.5 kB / 450 MB, free: 38.01 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.187, allocations: 179.1 kB / 450.2 MB, free: 37.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.525e-05/0.187, allocations: 184.4 kB / 450.3 MB, free: 37.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/0.1871, allocations: 179.8 kB / 450.5 MB, free: 37.46 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.094e-05/0.1871, allocations: 309.5 kB / 450.8 MB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.067e-06/0.1871, allocations: 110.9 kB / 450.9 MB, free: 37.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.1871, allocations: 185.5 kB / 451.1 MB, free: 36.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.986e-05/0.1872, allocations: 108.1 kB / 451.2 MB, free: 36.76 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.77e-05/0.1872, allocations: 181.1 kB / 451.4 MB, free: 36.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.1872, allocations: 104.3 kB / 451.5 MB, free: 36.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.889e-06/0.1872, allocations: 75.28 kB / 451.6 MB, free: 36.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1872, allocations: 0 / 451.6 MB, free: 36.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002924/0.1875, allocations: 142.5 kB / 451.7 MB, free: 36.38 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.0006191/0.1881, allocations: 1.072 MB / 452.8 MB, free: 35.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 3.911e-05/0.1881, allocations: 9.812 kB / 452.8 MB, free: 35.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1881, allocations: 0 / 452.8 MB, free: 35.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.81e-07/0.1881, allocations: 2.25 kB / 452.8 MB, free: 35.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001467/0.1883, allocations: 469.2 kB / 453.3 MB, free: 35.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002367/0.1885, allocations: 237.6 kB / 453.5 MB, free: 34.88 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.03e-05/0.1885, allocations: 56.52 kB / 453.5 MB, free: 34.81 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.949e-06/0.1885, allocations: 0 / 453.5 MB, free: 34.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.286e-05/0.1886, allocations: 11.44 kB / 453.6 MB, free: 34.8 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.1886, allocations: 0 / 453.6 MB, free: 34.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01538/0.2039, allocations: 4.866 MB / 458.4 MB, free: 33.64 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.076/7.28, allocations: 24.88 kB / 458.4 MB, free: 33.62 MB / 410.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.csv","/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: 9.309045518748462]