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.0008922/0.0008922, allocations: 80.34 kB / 20.67 MB, free: 3.891 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.0009728/0.0009728, allocations: 156.9 kB / 23.94 MB, free: 0.6172 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 0.8695/0.8695, allocations: 177 MB / 204.1 MB, free: 5.746 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.2404/0.2404, allocations: 34.23 MB / 294.8 MB, free: 0.6914 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: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 442.1 MB, free: 1.586 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.213e-05/4.369e-05, allocations: 4.391 kB / 442.1 MB, free: 1.582 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001145/0.001189, allocations: 0.4892 MB / 442.6 MB, free: 1.094 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1501/0.1513, allocations: 2.178 MB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.528e-06/0.1513, allocations: 0 / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.527e-06/0.1513, allocations: 1.625 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.232e-06/0.1513, allocations: 0 / 444.8 MB, free: 43.12 MB / 410.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.001261/0.1526, allocations: 0.6369 MB / 445.4 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 3.53e-05/0.1526, allocations: 6.906 kB / 445.4 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.554e-05/0.1526, allocations: 6.156 kB / 445.4 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.1528, allocations: 16.77 kB / 445.5 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.077e-05/0.1528, allocations: 2.969 kB / 445.5 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.689e-06/0.1528, allocations: 0 / 445.5 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005433/0.1533, allocations: 0.6422 MB / 446.1 MB, free: 42.92 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.751e-06/0.1533, allocations: 2.906 kB / 446.1 MB, free: 42.92 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.595e-05/0.1534, allocations: 4.781 kB / 446.1 MB, free: 42.92 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003888/0.1537, allocations: 0.5468 MB / 446.7 MB, free: 42.83 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1537, allocations: 0 / 446.7 MB, free: 42.83 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1537, allocations: 0 / 446.7 MB, free: 42.83 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.1538, allocations: 4.688 kB / 446.7 MB, free: 42.82 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.0002056/0.154, allocations: 363.4 kB / 447 MB, free: 42.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.154, allocations: 8.656 kB / 447 MB, free: 42.48 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.325e-05/0.154, allocations: 108.7 kB / 447.1 MB, free: 42.37 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.127e-05/0.154, allocations: 79.56 kB / 447.2 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 2.895e-05/0.1541, allocations: 187.9 kB / 447.4 MB, free: 42.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.1541, allocations: 154.3 kB / 447.5 MB, free: 41.94 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.1541, allocations: 157.4 kB / 447.7 MB, free: 41.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.223e-05/0.1541, allocations: 107.8 kB / 447.8 MB, free: 41.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.1541, allocations: 75.28 kB / 447.9 MB, free: 41.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.1541, allocations: 150.6 kB / 448 MB, free: 41.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.1542, allocations: 153.1 kB / 448.2 MB, free: 41.31 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.206e-05/0.1542, allocations: 154.5 kB / 448.3 MB, free: 41.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001024/0.1543, allocations: 419.5 kB / 448.7 MB, free: 40.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.165e-05/0.1543, allocations: 168 kB / 448.9 MB, free: 40.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.01e-05/0.1543, allocations: 80.14 kB / 449 MB, free: 40.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.354e-06/0.1543, allocations: 75.28 kB / 449.1 MB, free: 40.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.1543, allocations: 145.7 kB / 449.2 MB, free: 40.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 9.02e-07/0.1543, allocations: 0 / 449.2 MB, free: 40.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 4.844e-05/0.1544, allocations: 32.52 kB / 449.2 MB, free: 40.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.53e-05/0.1544, allocations: 156.4 kB / 449.4 MB, free: 40.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.504e-06/0.1544, allocations: 89.86 kB / 449.5 MB, free: 39.92 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.03e-06/0.1544, allocations: 28.55 kB / 449.5 MB, free: 39.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.184e-06/0.1544, allocations: 84.14 kB / 449.6 MB, free: 39.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.493e-06/0.1544, allocations: 0 / 449.6 MB, free: 39.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.692e-05/0.1545, allocations: 14.88 kB / 449.6 MB, free: 39.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.066e-05/0.1545, allocations: 314.1 kB / 449.9 MB, free: 39.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.578e-06/0.1545, allocations: 0 / 449.9 MB, free: 39.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.049e-05/0.1545, allocations: 29.23 kB / 449.9 MB, free: 39.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.695e-06/0.1545, allocations: 75.28 kB / 450 MB, free: 39.37 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.1545, allocations: 75.28 kB / 450.1 MB, free: 39.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 2.66e-05/0.1545, allocations: 32.23 kB / 450.1 MB, free: 39.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.1546, allocations: 86.69 kB / 450.2 MB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.1546, allocations: 78.03 kB / 450.3 MB, free: 39.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1546, allocations: 169.9 kB / 450.4 MB, free: 38.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.37e-06/0.1546, allocations: 78.06 kB / 450.5 MB, free: 38.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.1546, allocations: 150.6 kB / 450.7 MB, free: 38.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.328e-05/0.1546, allocations: 86.48 kB / 450.7 MB, free: 38.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-06/0.1546, allocations: 77.62 kB / 450.8 MB, free: 38.57 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 3.536e-05/0.1547, allocations: 259.2 kB / 451.1 MB, free: 38.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.902e-05/0.1547, allocations: 119 kB / 451.2 MB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.333e-05/0.1547, allocations: 107.9 kB / 451.3 MB, free: 38.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.1547, allocations: 179.6 kB / 451.5 MB, free: 37.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.1547, allocations: 183.2 kB / 451.6 MB, free: 37.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.1547, allocations: 183.3 kB / 451.8 MB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.042e-05/0.1548, allocations: 375.1 kB / 452.2 MB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/0.1548, allocations: 104.2 kB / 452.3 MB, free: 37.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.432e-06/0.1548, allocations: 104.9 kB / 452.4 MB, free: 36.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-05/0.1548, allocations: 180 kB / 452.6 MB, free: 36.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.1548, allocations: 180.2 kB / 452.7 MB, free: 36.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.024e-05/0.1549, allocations: 183.1 kB / 452.9 MB, free: 36.35 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-05/0.1549, allocations: 187.5 kB / 453.1 MB, free: 36.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.973e-05/0.1549, allocations: 301.6 kB / 453.4 MB, free: 35.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.756e-06/0.1549, allocations: 106.8 kB / 453.5 MB, free: 35.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.1549, allocations: 191.1 kB / 453.7 MB, free: 35.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.014e-05/0.155, allocations: 111.5 kB / 453.8 MB, free: 35.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.511e-05/0.155, allocations: 183.1 kB / 454 MB, free: 35.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.155, allocations: 105.2 kB / 454.1 MB, free: 35.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.788e-06/0.155, allocations: 75.28 kB / 454.2 MB, free: 35.08 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.155, allocations: 0 / 454.2 MB, free: 35.08 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002988/0.1553, allocations: 133.9 kB / 454.3 MB, free: 35.05 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.0005768/0.1559, allocations: 1.081 MB / 455.4 MB, free: 34.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 3.87e-05/0.1559, allocations: 2.812 kB / 455.4 MB, free: 34.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1559, allocations: 0 / 455.4 MB, free: 34.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.02e-07/0.1559, allocations: 0 / 455.4 MB, free: 34.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001502/0.1561, allocations: 460.1 kB / 455.8 MB, free: 33.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002355/0.1563, allocations: 237.2 kB / 456.1 MB, free: 33.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.004e-05/0.1563, allocations: 54.11 kB / 456.1 MB, free: 33.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.581e-06/0.1563, allocations: 0 / 456.1 MB, free: 33.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.24e-05/0.1563, allocations: 15.19 kB / 456.1 MB, free: 33.44 MB / 410.7 MB Notification: Performance of SimCode: time 2.81e-07/0.1563, allocations: 3.938 kB / 456.1 MB, free: 33.44 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.1727, allocations: 4.87 MB / 461 MB, free: 32.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.277/7.45, allocations: 6.688 kB / 461 MB, free: 32.24 MB / 410.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.386087354272604]