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.00173/0.00173, allocations: 120.4 kB / 17.79 MB, free: 5.285 MB / 14.72 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.00215/0.00215, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 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 1.503/1.503, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.2364/0.2364, allocations: 46.91 MB / 357.1 MB, free: 10.34 MB / 286.1 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: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 71.89 kB / 0.4909 GB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1417, allocations: 65.99 MB / 0.5553 GB, free: 5.891 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001938/0.1436, allocations: 497 kB / 0.5558 GB, free: 5.402 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004001/0.1476, allocations: 2.31 MB / 0.5581 GB, free: 3.074 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.084e-06/0.1477, allocations: 0 / 0.5581 GB, free: 3.074 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.927e-06/0.1477, allocations: 0 / 0.5581 GB, free: 3.074 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.062e-06/0.1477, allocations: 0 / 0.5581 GB, free: 3.074 MB / 414.1 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.002646/0.1503, allocations: 0.627 MB / 0.5587 GB, free: 2.449 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.311e-05/0.1504, allocations: 11.98 kB / 0.5587 GB, free: 2.438 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.992e-05/0.1504, allocations: 0 / 0.5587 GB, free: 2.438 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.1505, allocations: 15.94 kB / 0.5587 GB, free: 2.422 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.889e-05/0.1506, allocations: 7.984 kB / 0.5587 GB, free: 2.414 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.12e-06/0.1506, allocations: 0 / 0.5587 GB, free: 2.414 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001221/0.1518, allocations: 0.6711 MB / 0.5594 GB, free: 1.742 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.315e-06/0.1518, allocations: 0 / 0.5594 GB, free: 1.742 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.588e-05/0.1518, allocations: 4 kB / 0.5594 GB, free: 1.738 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009154/0.1527, allocations: 447 kB / 0.5598 GB, free: 1.301 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1527, allocations: 0 / 0.5598 GB, free: 1.301 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1528, allocations: 4 kB / 0.5598 GB, free: 1.297 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1528, allocations: 0 / 0.5598 GB, free: 1.297 MB / 414.1 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.0006622/0.1534, allocations: 436.4 kB / 0.5602 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.1535, allocations: 8.031 kB / 0.5602 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.021e-05/0.1535, allocations: 106 kB / 0.5603 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.061e-05/0.1536, allocations: 84.22 kB / 0.5604 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.1538, allocations: 235.7 kB / 0.5606 GB, free: 352 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.885e-05/0.1538, allocations: 158.9 kB / 0.5608 GB, free: 192 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.574e-05/0.1539, allocations: 154.5 kB / 0.5609 GB, free: 36 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.154, allocations: 105 kB / 0.561 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.602e-05/0.154, allocations: 75.28 kB / 0.5611 GB, free: 15.85 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.406e-05/0.1541, allocations: 154.5 kB / 0.5613 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.958e-05/0.1542, allocations: 154.6 kB / 0.5614 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.721e-05/0.1543, allocations: 158.6 kB / 0.5616 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003417/0.1546, allocations: 445.9 kB / 0.562 GB, free: 14.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.1547, allocations: 169.1 kB / 0.5621 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.529e-05/0.1548, allocations: 84.14 kB / 0.5622 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.959e-05/0.1548, allocations: 83.22 kB / 0.5623 GB, free: 14.56 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001007/0.1549, allocations: 139.5 kB / 0.5624 GB, free: 14.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 1.283e-06/0.1549, allocations: 3.938 kB / 0.5624 GB, free: 14.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 9.744e-05/0.155, allocations: 29.64 kB / 0.5625 GB, free: 14.37 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.1551, allocations: 160.4 kB / 0.5626 GB, free: 14.2 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.072e-05/0.1552, allocations: 89.86 kB / 0.5627 GB, free: 14.1 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.1552, allocations: 25.7 kB / 0.5627 GB, free: 14.07 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.734e-05/0.1552, allocations: 84.14 kB / 0.5628 GB, free: 13.98 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.415e-06/0.1552, allocations: 0 / 0.5628 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/0.1553, allocations: 13.72 kB / 0.5628 GB, free: 13.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1554, allocations: 310.8 kB / 0.5631 GB, free: 13.65 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.5e-06/0.1554, allocations: 0 / 0.5631 GB, free: 13.65 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.473e-05/0.1555, allocations: 4 kB / 0.5631 GB, free: 13.64 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.439e-05/0.1555, allocations: 75.28 kB / 0.5632 GB, free: 13.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-05/0.1555, allocations: 75.28 kB / 0.5633 GB, free: 13.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.49e-05/0.1556, allocations: 45.64 kB / 0.5633 GB, free: 13.45 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.029e-05/0.1557, allocations: 89.09 kB / 0.5634 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-05/0.1557, allocations: 75.28 kB / 0.5635 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.175e-05/0.1558, allocations: 154.6 kB / 0.5636 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.232e-05/0.1558, allocations: 79.22 kB / 0.5637 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.246e-05/0.1559, allocations: 150.6 kB / 0.5638 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.032e-05/0.156, allocations: 83.22 kB / 0.5639 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.254e-05/0.156, allocations: 79.28 kB / 0.564 GB, free: 12.75 MB / 430.1 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.0001649/0.1562, allocations: 266.6 kB / 0.5642 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.997e-05/0.1563, allocations: 108.9 kB / 0.5644 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.635e-05/0.1563, allocations: 111.8 kB / 0.5645 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.806e-05/0.1564, allocations: 176.3 kB / 0.5646 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.131e-05/0.1565, allocations: 188.2 kB / 0.5648 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.982e-05/0.1566, allocations: 184.2 kB / 0.565 GB, free: 11.69 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002834/0.1569, allocations: 401.2 kB / 0.5654 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-05/0.1569, allocations: 104.9 kB / 0.5655 GB, free: 11.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.635e-05/0.157, allocations: 105 kB / 0.5656 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.987e-05/0.1571, allocations: 188.2 kB / 0.5657 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.511e-05/0.1571, allocations: 176.3 kB / 0.5659 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.33e-05/0.1572, allocations: 176.3 kB / 0.5661 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.676e-05/0.1573, allocations: 188.2 kB / 0.5663 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001737/0.1575, allocations: 315.6 kB / 0.5666 GB, free: 9.949 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.739e-05/0.1576, allocations: 178.1 kB / 0.5667 GB, free: 9.75 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.249e-05/0.1577, allocations: 180.3 kB / 0.5669 GB, free: 9.566 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.113e-05/0.1578, allocations: 108.9 kB / 0.567 GB, free: 9.453 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.174e-05/0.1578, allocations: 180.2 kB / 0.5672 GB, free: 9.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.775e-05/0.1579, allocations: 104.9 kB / 0.5673 GB, free: 9.16 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.63e-05/0.1579, allocations: 79.28 kB / 0.5674 GB, free: 9.082 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1579, allocations: 0 / 0.5674 GB, free: 9.082 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006147/0.1585, allocations: 143.5 kB / 0.5675 GB, free: 8.941 MB / 430.1 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.001532/0.1601, allocations: 1.038 MB / 0.5685 GB, free: 7.879 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 6.931e-05/0.1601, allocations: 11.92 kB / 0.5685 GB, free: 7.867 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1601, allocations: 0 / 0.5685 GB, free: 7.867 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 2.094e-06/0.1601, allocations: 0 / 0.5685 GB, free: 7.867 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/0.1606, allocations: 461.8 kB / 0.569 GB, free: 7.414 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005246/0.1611, allocations: 245.7 kB / 0.5692 GB, free: 7.133 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.1614, allocations: 0.6729 MB / 0.5698 GB, free: 6.434 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.526e-06/0.1614, allocations: 0 / 0.5698 GB, free: 6.434 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.942e-05/0.1614, allocations: 11.44 kB / 0.5699 GB, free: 6.422 MB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1614, allocations: 0 / 0.5699 GB, free: 6.422 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02814/0.1896, allocations: 4.183 MB / 0.5739 GB, free: 2.305 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.094/8.284, allocations: 3.75 kB / 0.5739 GB, free: 2.305 MB / 430.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 11.336088736003148]