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.001078/0.001078, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001105/0.001105, allocations: 191 kB / 19.34 MB, free: 3.641 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.416/1.416, allocations: 222.9 MB / 243 MB, free: 15.09 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.2251/0.2251, allocations: 44.18 MB / 337.4 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001276, allocations: 63.84 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1236, allocations: 60.84 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001555/0.1252, allocations: 474.9 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002833/0.128, allocations: 2.189 MB / 473.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.981e-06/0.128, allocations: 0 / 473.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.819e-06/0.1281, allocations: 0 / 473.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.232e-06/0.1281, allocations: 4 kB / 473.4 MB, free: 10.98 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.002005/0.1301, allocations: 0.6075 MB / 474 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.89e-05/0.1301, allocations: 8 kB / 474 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.767e-05/0.1302, allocations: 3.938 kB / 474 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.1303, allocations: 11.98 kB / 474 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.407e-05/0.1303, allocations: 7.984 kB / 474 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-06/0.1304, allocations: 3.938 kB / 474 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009005/0.1313, allocations: 0.6436 MB / 474.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.412e-06/0.1313, allocations: 0 / 474.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.117e-05/0.1313, allocations: 4 kB / 474.7 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005268/0.1318, allocations: 435.3 kB / 475.1 MB, free: 9.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1318, allocations: 0 / 475.1 MB, free: 9.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1319, allocations: 4 kB / 475.1 MB, free: 9.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1319, allocations: 0 / 475.1 MB, free: 9.266 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.0003778/0.1322, allocations: 421.2 kB / 475.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1323, allocations: 8.031 kB / 475.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.194e-05/0.1324, allocations: 84.22 kB / 475.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.836e-05/0.1325, allocations: 239.7 kB / 475.8 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.738e-05/0.1325, allocations: 150.9 kB / 476 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.425e-05/0.1326, allocations: 154.7 kB / 476.1 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.798e-05/0.1326, allocations: 101 kB / 476.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.1327, allocations: 75.28 kB / 476.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.23e-05/0.1327, allocations: 158.6 kB / 476.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.662e-05/0.1328, allocations: 154.5 kB / 476.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.281e-05/0.1328, allocations: 154.6 kB / 476.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000271/0.1331, allocations: 442 kB / 477.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.86e-05/0.1332, allocations: 169.1 kB / 477.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.05e-05/0.1333, allocations: 88.12 kB / 477.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.1333, allocations: 83.22 kB / 477.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.103e-05/0.1334, allocations: 139.5 kB / 477.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.092e-06/0.1334, allocations: 0 / 477.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.724e-05/0.1334, allocations: 29.7 kB / 477.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.1335, allocations: 160.4 kB / 477.8 MB, free: 6.305 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.214e-05/0.1336, allocations: 89.86 kB / 477.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.1336, allocations: 25.7 kB / 478 MB, free: 6.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.019e-05/0.1336, allocations: 84.12 kB / 478 MB, free: 6.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-06/0.1336, allocations: 0 / 478 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.85e-05/0.1337, allocations: 13.72 kB / 478 MB, free: 6.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.1338, allocations: 310.8 kB / 478.4 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.659e-06/0.1338, allocations: 0 / 478.4 MB, free: 5.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.212e-05/0.1338, allocations: 11.98 kB / 478.4 MB, free: 5.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.246e-05/0.1338, allocations: 79.22 kB / 478.4 MB, free: 5.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.61e-05/0.1338, allocations: 79.28 kB / 478.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.169e-05/0.1339, allocations: 33.64 kB / 478.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.1339, allocations: 79.28 kB / 478.6 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.322e-05/0.134, allocations: 75.28 kB / 478.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.937e-05/0.134, allocations: 158.5 kB / 478.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.268e-05/0.1341, allocations: 79.31 kB / 478.9 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.601e-05/0.1341, allocations: 158.4 kB / 479.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.713e-05/0.1342, allocations: 83.2 kB / 479.2 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/0.1342, allocations: 79.28 kB / 479.2 MB, free: 4.848 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.0001141/0.1343, allocations: 260.4 kB / 479.5 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.199e-05/0.1344, allocations: 112.9 kB / 479.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.048e-05/0.1345, allocations: 108.1 kB / 479.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.609e-05/0.1345, allocations: 184.2 kB / 479.9 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.678e-05/0.1346, allocations: 176.3 kB / 480.1 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.417e-05/0.1347, allocations: 184.3 kB / 480.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.1349, allocations: 397.2 kB / 480.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-05/0.1349, allocations: 116.9 kB / 480.8 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.779e-05/0.135, allocations: 108.9 kB / 480.9 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.448e-05/0.135, allocations: 176.3 kB / 481 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.854e-05/0.1351, allocations: 176.3 kB / 481.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.253e-05/0.1351, allocations: 184.2 kB / 481.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.216e-05/0.1352, allocations: 180.3 kB / 481.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/0.1353, allocations: 311.8 kB / 481.9 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.118e-05/0.1354, allocations: 186 kB / 482 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.62e-05/0.1355, allocations: 176.3 kB / 482.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.486e-05/0.1356, allocations: 109 kB / 482.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.773e-05/0.1356, allocations: 184.2 kB / 482.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.1357, allocations: 105 kB / 482.6 MB, free: 1.262 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.162e-05/0.1357, allocations: 75.28 kB / 482.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1357, allocations: 0 / 482.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000456/0.1362, allocations: 136 kB / 482.8 MB, free: 1.055 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.0007628/0.1369, allocations: 411.8 kB / 483.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.631e-05/0.137, allocations: 3.938 kB / 483.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.137, allocations: 0 / 483.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.137, allocations: 0 / 483.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.1374, allocations: 470 kB / 483.7 MB, free: 196 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001314/0.1375, allocations: 152.2 kB / 483.8 MB, free: 16 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.1377, allocations: 0.6729 MB / 484.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.37e-06/0.1378, allocations: 0 / 484.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.091e-05/0.1378, allocations: 7.438 kB / 484.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1378, allocations: 0 / 484.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of Templates: time 0.006721/0.1445, allocations: 3.072 MB / 487.6 MB, free: 12.25 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 -s cvode -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