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.001753/0.001753, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002292/0.002292, allocations: 203.3 kB / 20.74 MB, free: 2.316 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.524/1.524, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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.2419/0.2419, allocations: 44.91 MB / 355.1 MB, free: 12.32 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002877/0.002877, allocations: 67.89 kB / 499.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1454, allocations: 65.41 MB / 0.5517 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001579/0.147, allocations: 0.4907 MB / 0.5522 GB, free: 9.672 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003536/0.1505, allocations: 2.302 MB / 0.5545 GB, free: 7.352 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.11e-06/0.1505, allocations: 0 / 0.5545 GB, free: 7.352 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 4.108e-06/0.1505, allocations: 0 / 0.5545 GB, free: 7.352 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.272e-06/0.1505, allocations: 0 / 0.5545 GB, free: 7.352 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.002294/0.1528, allocations: 0.6384 MB / 0.5551 GB, free: 6.715 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.615e-05/0.1529, allocations: 4 kB / 0.5551 GB, free: 6.711 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.328e-05/0.1529, allocations: 3.984 kB / 0.5551 GB, free: 6.707 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001435/0.1531, allocations: 19.92 kB / 0.5551 GB, free: 6.688 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.776e-05/0.1531, allocations: 4 kB / 0.5551 GB, free: 6.684 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.909e-06/0.1531, allocations: 0 / 0.5551 GB, free: 6.684 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.1543, allocations: 0.6723 MB / 0.5558 GB, free: 6.012 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.452e-06/0.1543, allocations: 0 / 0.5558 GB, free: 6.012 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.745e-05/0.1543, allocations: 11.98 kB / 0.5558 GB, free: 6 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006629/0.155, allocations: 439.2 kB / 0.5562 GB, free: 5.57 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.155, allocations: 0 / 0.5562 GB, free: 5.57 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.155, allocations: 0 / 0.5562 GB, free: 5.57 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.155, allocations: 3.938 kB / 0.5562 GB, free: 5.566 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.0005298/0.1555, allocations: 434.5 kB / 0.5566 GB, free: 5.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.1556, allocations: 8.031 kB / 0.5566 GB, free: 5.082 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.274e-05/0.1557, allocations: 118 kB / 0.5567 GB, free: 4.957 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.319e-05/0.1557, allocations: 80.2 kB / 0.5568 GB, free: 4.879 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.1559, allocations: 243.5 kB / 0.557 GB, free: 4.602 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.958e-05/0.156, allocations: 150.9 kB / 0.5572 GB, free: 4.453 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.609e-05/0.1561, allocations: 154.5 kB / 0.5573 GB, free: 4.301 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.1562, allocations: 101 kB / 0.5574 GB, free: 4.195 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.296e-05/0.1562, allocations: 83.28 kB / 0.5575 GB, free: 4.113 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.271e-05/0.1563, allocations: 150.6 kB / 0.5577 GB, free: 3.965 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.994e-05/0.1563, allocations: 150.6 kB / 0.5578 GB, free: 3.816 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.581e-05/0.1564, allocations: 158.6 kB / 0.558 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003208/0.1567, allocations: 445.9 kB / 0.5584 GB, free: 3.176 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001138/0.1568, allocations: 181.1 kB / 0.5585 GB, free: 2.988 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.762e-05/0.1569, allocations: 80.14 kB / 0.5586 GB, free: 2.906 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.641e-05/0.1569, allocations: 79.28 kB / 0.5587 GB, free: 2.828 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.587e-05/0.157, allocations: 131.5 kB / 0.5588 GB, free: 2.684 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 7.21e-07/0.157, allocations: 0 / 0.5588 GB, free: 2.684 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.463e-05/0.1571, allocations: 41.58 kB / 0.5589 GB, free: 2.637 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.823e-05/0.1572, allocations: 152.4 kB / 0.559 GB, free: 2.469 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.323e-05/0.1572, allocations: 89.86 kB / 0.5591 GB, free: 2.371 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.1572, allocations: 25.7 kB / 0.5591 GB, free: 2.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.606e-05/0.1573, allocations: 80.14 kB / 0.5592 GB, free: 2.258 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.563e-06/0.1573, allocations: 0 / 0.5592 GB, free: 2.258 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.098e-05/0.1573, allocations: 17.7 kB / 0.5592 GB, free: 2.234 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1575, allocations: 314.8 kB / 0.5595 GB, free: 1.918 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.372e-06/0.1575, allocations: 8 kB / 0.5595 GB, free: 1.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.093e-05/0.1575, allocations: 0 / 0.5595 GB, free: 1.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.292e-05/0.1575, allocations: 75.28 kB / 0.5596 GB, free: 1.836 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.971e-05/0.1576, allocations: 75.28 kB / 0.5597 GB, free: 1.762 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.101e-05/0.1576, allocations: 37.58 kB / 0.5597 GB, free: 1.719 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.153e-05/0.1577, allocations: 79.28 kB / 0.5598 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.251e-05/0.1577, allocations: 79.28 kB / 0.5599 GB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.674e-05/0.1578, allocations: 158.6 kB / 0.56 GB, free: 1.406 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.372e-05/0.1578, allocations: 83.22 kB / 0.5601 GB, free: 1.324 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.795e-05/0.1579, allocations: 150.6 kB / 0.5602 GB, free: 1.176 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.309e-05/0.158, allocations: 83.22 kB / 0.5603 GB, free: 1.094 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.138e-05/0.158, allocations: 79.28 kB / 0.5604 GB, free: 1.016 MB / 414.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.0001706/0.1582, allocations: 266.6 kB / 0.5606 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.1583, allocations: 104.9 kB / 0.5607 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.285e-05/0.1584, allocations: 115.8 kB / 0.5608 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.511e-05/0.1585, allocations: 176.3 kB / 0.561 GB, free: 348 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-05/0.1585, allocations: 184.2 kB / 0.5612 GB, free: 156 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001432/0.1587, allocations: 184.3 kB / 0.5614 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003134/0.159, allocations: 409.1 kB / 0.5618 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001065/0.1591, allocations: 105 kB / 0.5619 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.593e-05/0.1591, allocations: 104.9 kB / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001105/0.1593, allocations: 180.2 kB / 0.5621 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/0.1594, allocations: 180.3 kB / 0.5623 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.613e-05/0.1595, allocations: 188.2 kB / 0.5625 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001747/0.1597, allocations: 180.3 kB / 0.5627 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002813/0.16, allocations: 307.7 kB / 0.5629 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.074e-05/0.16, allocations: 182.1 kB / 0.5631 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001714/0.1602, allocations: 184.2 kB / 0.5633 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.1604, allocations: 108.9 kB / 0.5634 GB, free: 13.72 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.658e-05/0.1604, allocations: 176.3 kB / 0.5636 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/0.1606, allocations: 108.9 kB / 0.5637 GB, free: 13.43 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.86e-05/0.1606, allocations: 75.28 kB / 0.5637 GB, free: 13.35 MB / 430.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1606, allocations: 0 / 0.5637 GB, free: 13.35 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000652/0.1613, allocations: 139.7 kB / 0.5639 GB, free: 13.21 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.001214/0.1625, allocations: 1.046 MB / 0.5649 GB, free: 12.15 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 5.426e-05/0.1625, allocations: 3.938 kB / 0.5649 GB, free: 12.14 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1625, allocations: 0 / 0.5649 GB, free: 12.14 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.403e-06/0.1625, allocations: 4 kB / 0.5649 GB, free: 12.14 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/0.1629, allocations: 459.7 kB / 0.5653 GB, free: 11.69 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004558/0.1634, allocations: 245.6 kB / 0.5656 GB, free: 11.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.1638, allocations: 0.669 MB / 0.5662 GB, free: 10.71 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.592e-06/0.1638, allocations: 0 / 0.5662 GB, free: 10.71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.329e-05/0.1638, allocations: 7.438 kB / 0.5662 GB, free: 10.7 MB / 430.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1638, allocations: 4 kB / 0.5662 GB, free: 10.7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02919/0.193, allocations: 4.184 MB / 0.5703 GB, free: 6.582 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.335/8.528, allocations: 17.7 kB / 0.5703 GB, free: 6.57 MB / 430.1 MB " [Timeout remaining time 651] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/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: 11.571663836017251]