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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001439/0.00144, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2074/0.2074, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 56.22 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1261, allocations: 60.83 MB / 469.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001773/0.1279, allocations: 491.7 kB / 469.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003167/0.1311, allocations: 2.189 MB / 472 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.514e-06/0.1311, allocations: 0 / 472 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.731e-06/0.1311, allocations: 0 / 472 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.388e-06/0.1311, allocations: 0 / 472 MB, free: 11.6 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Nonlinear.mo:8:5-85: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.0.0+maint.om/Math/Nonlinear.mo:87:5-157: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.0.0+maint.om/Math/Nonlinear.mo:159:5-233: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.0.0+maint.om/Math/Nonlinear.mo:235:5-313: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.002151/0.1333, allocations: 0.6174 MB / 472.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.035e-05/0.1333, allocations: 7.984 kB / 472.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.308e-05/0.1334, allocations: 4 kB / 472.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.022e-05/0.1334, allocations: 7.938 kB / 472.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.811e-05/0.1335, allocations: 7.984 kB / 472.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.151e-06/0.1335, allocations: 0 / 472.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009552/0.1345, allocations: 0.593 MB / 473.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.145e-05/0.1345, allocations: 15.92 kB / 473.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.82e-05/0.1345, allocations: 0 / 473.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005476/0.1351, allocations: 423.4 kB / 473.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1351, allocations: 4 kB / 473.7 MB, free: 9.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1351, allocations: 0 / 473.7 MB, free: 9.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1351, allocations: 0 / 473.7 MB, free: 9.93 MB / 350.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.0004063/0.1355, allocations: 421.2 kB / 474.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1355, allocations: 12.03 kB / 474.1 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001112/0.1357, allocations: 110 kB / 474.2 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.811e-05/0.1357, allocations: 76.22 kB / 474.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.1359, allocations: 235.7 kB / 474.5 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001141/0.136, allocations: 154.9 kB / 474.7 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.667e-05/0.1361, allocations: 154.5 kB / 474.8 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.431e-05/0.1362, allocations: 109 kB / 474.9 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.1362, allocations: 79.28 kB / 475 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.386e-05/0.1363, allocations: 154.5 kB / 475.2 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001312/0.1364, allocations: 150.6 kB / 475.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.752e-05/0.1365, allocations: 154.5 kB / 475.5 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003335/0.1368, allocations: 445.9 kB / 475.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.137, allocations: 181 kB / 476.1 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.348e-05/0.137, allocations: 84.19 kB / 476.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.409e-05/0.1371, allocations: 75.28 kB / 476.2 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.966e-05/0.1372, allocations: 131.5 kB / 476.4 MB, free: 7.066 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.132e-06/0.1372, allocations: 0 / 476.4 MB, free: 7.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 9.849e-05/0.1373, allocations: 45.62 kB / 476.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.781e-05/0.1374, allocations: 152.4 kB / 476.5 MB, free: 6.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.259e-05/0.1374, allocations: 93.84 kB / 476.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.1374, allocations: 25.7 kB / 476.7 MB, free: 6.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.144e-05/0.1375, allocations: 88.14 kB / 476.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-06/0.1375, allocations: 0 / 476.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.449e-05/0.1375, allocations: 13.72 kB / 476.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1377, allocations: 310.8 kB / 477.1 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.141e-06/0.1377, allocations: 4 kB / 477.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.36e-05/0.1377, allocations: 0 / 477.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.989e-05/0.1377, allocations: 75.28 kB / 477.1 MB, free: 6.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-05/0.1378, allocations: 79.28 kB / 477.2 MB, free: 6.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.278e-05/0.1379, allocations: 37.56 kB / 477.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.343e-05/0.1379, allocations: 83.28 kB / 477.3 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-05/0.138, allocations: 75.28 kB / 477.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.951e-05/0.138, allocations: 154.6 kB / 477.6 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.515e-05/0.1381, allocations: 79.22 kB / 477.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.596e-05/0.1381, allocations: 154.6 kB / 477.8 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.251e-05/0.1382, allocations: 83.22 kB / 477.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.482e-05/0.1382, allocations: 79.28 kB / 477.9 MB, free: 5.395 MB / 350.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.0001226/0.1384, allocations: 268.4 kB / 478.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.274e-05/0.1384, allocations: 104.9 kB / 478.3 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.006e-05/0.1385, allocations: 112 kB / 478.4 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.395e-05/0.1386, allocations: 180.3 kB / 478.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.635e-05/0.1386, allocations: 180.2 kB / 478.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-05/0.1387, allocations: 180.2 kB / 479 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002288/0.1389, allocations: 405.2 kB / 479.3 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.152e-05/0.139, allocations: 112.9 kB / 479.5 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.27e-05/0.139, allocations: 105 kB / 479.6 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.649e-05/0.1391, allocations: 184.2 kB / 479.7 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.978e-05/0.1392, allocations: 180.3 kB / 479.9 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.479e-05/0.1393, allocations: 176.3 kB / 480.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.754e-05/0.1393, allocations: 184.2 kB / 480.3 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001352/0.1395, allocations: 311.7 kB / 480.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.523e-05/0.1395, allocations: 178.1 kB / 480.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.98e-05/0.1396, allocations: 184.2 kB / 480.9 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.865e-05/0.1397, allocations: 105 kB / 481 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.252e-05/0.1398, allocations: 184.2 kB / 481.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.863e-05/0.1398, allocations: 112.9 kB / 481.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.134e-05/0.1399, allocations: 75.28 kB / 481.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1399, allocations: 0 / 481.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005381/0.1404, allocations: 124 kB / 481.5 MB, free: 1.602 MB / 350.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.00112/0.1415, allocations: 1.038 MB / 482.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 4.433e-05/0.1416, allocations: 7.938 kB / 482.6 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1416, allocations: 4 kB / 482.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.283e-06/0.1416, allocations: 0 / 482.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.142, allocations: 463.7 kB / 483 MB, free: 88 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004184/0.1424, allocations: 233.8 kB / 483.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.1426, allocations: 0.6768 MB / 483.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.592e-06/0.1427, allocations: 0 / 483.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.642e-05/0.1427, allocations: 7.438 kB / 483.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1427, allocations: 0 / 483.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02154/0.1642, allocations: 3.933 MB / 487.9 MB, free: 11.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.783/7.947, allocations: 8.047 kB / 487.9 MB, free: 11.21 MB / 366.1 MB (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) 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) Reference file matches