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: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001657/0.001657, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001987/0.001987, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.365/1.365, allocations: 222.9 MB / 242.9 MB, free: 15.15 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.2048/0.2048, allocations: 44.18 MB / 337.3 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 60.28 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1177, allocations: 60.82 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001702/0.1195, allocations: 483.9 kB / 470.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00308/0.1226, allocations: 2.193 MB / 472.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.16e-06/0.1226, allocations: 0 / 472.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.607e-06/0.1226, allocations: 0 / 472.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.583e-06/0.1226, allocations: 0 / 472.6 MB, free: 11.7 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.002041/0.1247, allocations: 0.6118 MB / 473.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.805e-05/0.1247, allocations: 8 kB / 473.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.904e-05/0.1248, allocations: 0 / 473.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.757e-05/0.1249, allocations: 11.92 kB / 473.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.453e-05/0.1249, allocations: 7.984 kB / 473.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.452e-06/0.1249, allocations: 7.938 kB / 473.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009199/0.1258, allocations: 0.593 MB / 473.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.1259, allocations: 4 kB / 473.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.922e-05/0.1259, allocations: 0 / 473.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005652/0.1264, allocations: 435.3 kB / 474.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1265, allocations: 4 kB / 474.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1265, allocations: 0 / 474.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1265, allocations: 0 / 474.3 MB, free: 10.02 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.0004093/0.1269, allocations: 413.3 kB / 474.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.1269, allocations: 12.03 kB / 474.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.094e-05/0.127, allocations: 80.22 kB / 474.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.1271, allocations: 235.7 kB / 475 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.145e-05/0.1272, allocations: 154.9 kB / 475.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.888e-05/0.1273, allocations: 154.7 kB / 475.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.827e-05/0.1273, allocations: 105 kB / 475.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.1274, allocations: 75.28 kB / 475.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.426e-05/0.1274, allocations: 154.6 kB / 475.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.268e-05/0.1275, allocations: 154.6 kB / 475.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.065e-05/0.1276, allocations: 154.5 kB / 475.9 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002779/0.1279, allocations: 445.9 kB / 476.3 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.604e-05/0.1279, allocations: 169.1 kB / 476.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.434e-05/0.128, allocations: 88.08 kB / 476.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.681e-05/0.128, allocations: 75.33 kB / 476.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.566e-05/0.1281, allocations: 143.5 kB / 476.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.042e-06/0.1281, allocations: 0 / 476.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.995e-05/0.1282, allocations: 37.69 kB / 476.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.1283, allocations: 152.4 kB / 477 MB, free: 7.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.795e-05/0.1284, allocations: 89.86 kB / 477.1 MB, free: 6.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.1284, allocations: 29.7 kB / 477.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.57e-05/0.1285, allocations: 84.12 kB / 477.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.094e-06/0.1285, allocations: 0 / 477.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/0.1285, allocations: 13.72 kB / 477.2 MB, free: 6.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1286, allocations: 314.8 kB / 477.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.45e-06/0.1286, allocations: 0 / 477.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.345e-05/0.1287, allocations: 0 / 477.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.926e-05/0.1287, allocations: 75.28 kB / 477.6 MB, free: 6.441 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.909e-05/0.1288, allocations: 87.23 kB / 477.7 MB, free: 6.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.325e-05/0.1288, allocations: 33.64 kB / 477.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.426e-05/0.1289, allocations: 83.28 kB / 477.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.558e-05/0.1289, allocations: 75.28 kB / 477.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.801e-05/0.129, allocations: 162.5 kB / 478 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.472e-05/0.129, allocations: 75.28 kB / 478.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.286e-05/0.1291, allocations: 158.4 kB / 478.3 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.039e-05/0.1292, allocations: 83.28 kB / 478.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.512e-05/0.1292, allocations: 79.27 kB / 478.4 MB, free: 5.609 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.0001777/0.1294, allocations: 260.4 kB / 478.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.1295, allocations: 112.9 kB / 478.8 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.778e-05/0.1296, allocations: 104.1 kB / 478.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001332/0.1297, allocations: 184.2 kB / 479.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.866e-05/0.1298, allocations: 184.2 kB / 479.2 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-05/0.1298, allocations: 176.3 kB / 479.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002372/0.1301, allocations: 401.2 kB / 479.8 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.553e-05/0.1301, allocations: 116.9 kB / 479.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.467e-05/0.1302, allocations: 108.9 kB / 480 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.507e-05/0.1302, allocations: 180.3 kB / 480.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.661e-05/0.1303, allocations: 180.2 kB / 480.4 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.54e-05/0.1304, allocations: 184.2 kB / 480.6 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.578e-05/0.1305, allocations: 180.3 kB / 480.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.1306, allocations: 307.8 kB / 481 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.309e-05/0.1307, allocations: 186 kB / 481.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.394e-05/0.1308, allocations: 184.2 kB / 481.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.842e-05/0.1309, allocations: 101 kB / 481.5 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.279e-05/0.1309, allocations: 184.2 kB / 481.7 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.131, allocations: 101 kB / 481.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.19e-05/0.131, allocations: 83.28 kB / 481.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.131, allocations: 0 / 481.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005385/0.1316, allocations: 128 kB / 482 MB, free: 1.816 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.0008973/0.1325, allocations: 422.2 kB / 482.4 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.626e-05/0.1325, allocations: 0.5156 kB / 482.4 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1326, allocations: 3.938 kB / 482.4 MB, free: 1.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.356e-06/0.1326, allocations: 4 kB / 482.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000378/0.1329, allocations: 455.6 kB / 482.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001842/0.1331, allocations: 185.9 kB / 483 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.1334, allocations: 0.669 MB / 483.7 MB, free: 48 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.604e-05/0.1334, allocations: 7.438 kB / 483.7 MB, free: 40 kB / 350.1 MB Notification: Performance of SimCode: time 2.224e-06/0.1334, allocations: 0 / 483.7 MB, free: 40 kB / 350.1 MB Notification: Performance of Templates: time 0.005611/0.139, allocations: 2.717 MB / 486.4 MB, free: 13.32 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat","/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