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.001074/0.001074, allocations: 97.47 kB / 17 MB, free: 6.418 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.00125/0.001251, allocations: 189.2 kB / 17.89 MB, free: 5.945 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.626/1.626, allocations: 223.3 MB / 241.9 MB, free: 252 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3001/0.3001, allocations: 44.25 MB / 337.3 MB, free: 2.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.000317, allocations: 8 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1299, allocations: 61.93 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0006695/0.1306, allocations: 201.2 kB / 471.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003135/0.1338, allocations: 2.095 MB / 473.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.711e-06/0.1338, allocations: 0 / 473.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.947e-06/0.1338, allocations: 0 / 473.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.132e-06/0.1338, allocations: 0 / 473.9 MB, free: 11.41 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.001785/0.1356, allocations: 0.5141 MB / 474.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.272e-05/0.1356, allocations: 4 kB / 474.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.128e-05/0.1357, allocations: 0 / 474.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.589e-05/0.1358, allocations: 7.938 kB / 474.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.786e-05/0.1358, allocations: 11.97 kB / 474.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.51e-06/0.1358, allocations: 4 kB / 474.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008992/0.1367, allocations: 0.5579 MB / 475 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.152e-06/0.1368, allocations: 0 / 475 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.735e-05/0.1368, allocations: 29.69 kB / 475 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004018/0.1372, allocations: 291.5 kB / 475.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1372, allocations: 0 / 475.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1372, allocations: 0 / 475.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.1372, allocations: 4 kB / 475.3 MB, free: 9.984 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.0003846/0.1376, allocations: 417.1 kB / 475.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.1377, allocations: 8.031 kB / 475.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.396e-05/0.1377, allocations: 87.22 kB / 475.8 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.1379, allocations: 238.3 kB / 476 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.702e-05/0.1379, allocations: 150.6 kB / 476.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.043e-05/0.138, allocations: 150.6 kB / 476.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.469e-05/0.138, allocations: 108.9 kB / 476.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.1381, allocations: 75.28 kB / 476.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.512e-05/0.1381, allocations: 158.6 kB / 476.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-05/0.1382, allocations: 150.6 kB / 476.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.685e-05/0.1383, allocations: 154.6 kB / 477 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002693/0.1385, allocations: 441.9 kB / 477.4 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.367e-05/0.1386, allocations: 173.1 kB / 477.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.942e-05/0.1387, allocations: 84.14 kB / 477.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/0.1387, allocations: 75.28 kB / 477.7 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.657e-05/0.1388, allocations: 143.5 kB / 477.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.51e-07/0.1388, allocations: 0 / 477.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.891e-05/0.1389, allocations: 25.7 kB / 477.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/0.1389, allocations: 160.4 kB / 478 MB, free: 7.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.412e-05/0.139, allocations: 89.86 kB / 478.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.139, allocations: 25.7 kB / 478.2 MB, free: 6.902 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.238e-05/0.139, allocations: 80.14 kB / 478.2 MB, free: 6.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.693e-06/0.1391, allocations: 3.938 kB / 478.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.11e-07/0.1391, allocations: 0 / 478.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1392, allocations: 314.8 kB / 478.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.807e-06/0.1392, allocations: 0 / 478.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.306e-05/0.1392, allocations: 8 kB / 478.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.331e-05/0.1393, allocations: 75.28 kB / 478.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.942e-05/0.1393, allocations: 75.28 kB / 478.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.195e-05/0.1394, allocations: 33.7 kB / 478.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.39e-05/0.1394, allocations: 79.28 kB / 478.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/0.1394, allocations: 79.22 kB / 478.9 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.97e-05/0.1395, allocations: 158.5 kB / 479 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.089e-05/0.1396, allocations: 79.31 kB / 479.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-05/0.1396, allocations: 158.5 kB / 479.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.182e-05/0.1397, allocations: 75.33 kB / 479.3 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.344e-05/0.1398, allocations: 87.38 kB / 479.4 MB, free: 5.598 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.1399, allocations: 260.9 kB / 479.7 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.509e-05/0.14, allocations: 109 kB / 479.8 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.427e-05/0.1401, allocations: 116 kB / 479.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.514e-05/0.1401, allocations: 184.2 kB / 480.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.184e-05/0.1402, allocations: 176.3 kB / 480.3 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.542e-05/0.1403, allocations: 184.2 kB / 480.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002313/0.1405, allocations: 397.2 kB / 480.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.111e-05/0.1406, allocations: 120.8 kB / 480.9 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.977e-05/0.1406, allocations: 105 kB / 481 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.806e-05/0.1407, allocations: 176.3 kB / 481.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.857e-05/0.1408, allocations: 180.2 kB / 481.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.796e-05/0.1409, allocations: 180.3 kB / 481.6 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.703e-05/0.141, allocations: 192.1 kB / 481.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.1411, allocations: 299.8 kB / 482 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.767e-05/0.1412, allocations: 186 kB / 482.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.562e-05/0.1413, allocations: 184.2 kB / 482.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.721e-05/0.1414, allocations: 108.9 kB / 482.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.369e-05/0.1415, allocations: 180.3 kB / 482.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.571e-05/0.1415, allocations: 104.9 kB / 482.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.444e-05/0.1415, allocations: 75.28 kB / 482.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.764e-06/0.1415, allocations: 0 / 482.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004697/0.142, allocations: 135.9 kB / 483 MB, free: 1.797 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008012/0.1428, allocations: 417.6 kB / 483.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.049e-05/0.1429, allocations: 3.938 kB / 483.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1429, allocations: 0 / 483.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.322e-06/0.1429, allocations: 0 / 483.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003789/0.1433, allocations: 0.5293 MB / 483.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001528/0.1435, allocations: 146 kB / 484.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.1437, allocations: 0.6731 MB / 484.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.43e-06/0.1437, allocations: 0 / 484.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.623e-05/0.1437, allocations: 11.44 kB / 484.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1437, allocations: 3.938 kB / 484.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of Templates: time 0.006982/0.1507, allocations: 3.062 MB / 487.8 MB, free: 12.92 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches