Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007999/0.0007998, allocations: 94.31 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009596/0.0009596, allocations: 201.5 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.7 MB / 246.8 MB, free: 9.758 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1947/0.1947, allocations: 46.19 MB / 345.2 MB, free: 11.24 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003038/0.0003038, allocations: 8 kB / 419.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.135, allocations: 63.56 MB / 483.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0005658/0.1356, allocations: 213.2 kB / 483.3 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003097/0.1387, allocations: 2.344 MB / 485.6 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.718e-06/0.1387, allocations: 3.938 kB / 485.6 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.788e-06/0.1387, allocations: 0 / 485.6 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.383e-06/0.1387, allocations: 0 / 485.6 MB, free: 1.551 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.001793/0.1405, allocations: 0.5179 MB / 486.2 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.541e-05/0.1406, allocations: 15.97 kB / 486.2 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.519e-05/0.1406, allocations: 0 / 486.2 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.1407, allocations: 12 kB / 486.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.668e-05/0.1408, allocations: 7.984 kB / 486.2 MB, free: 1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.769e-06/0.1408, allocations: 7.875 kB / 486.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008787/0.1417, allocations: 0.6125 MB / 486.8 MB, free: 388 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.491e-06/0.1417, allocations: 0 / 486.8 MB, free: 388 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.68e-05/0.1417, allocations: 29.7 kB / 486.8 MB, free: 352 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005645/0.1423, allocations: 435.4 kB / 487.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1423, allocations: 0 / 487.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1423, allocations: 0 / 487.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.1423, allocations: 0 / 487.3 MB, free: 15.92 MB / 366.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.00041/0.1427, allocations: 421.2 kB / 487.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.1428, allocations: 12.88 kB / 487.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.282e-05/0.1429, allocations: 76.22 kB / 487.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.143, allocations: 247.6 kB / 488 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.07e-05/0.1431, allocations: 150.9 kB / 488.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.242e-05/0.1431, allocations: 158.7 kB / 488.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.681e-05/0.1432, allocations: 101 kB / 488.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.489e-05/0.1432, allocations: 79.28 kB / 488.5 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.555e-05/0.1433, allocations: 150.6 kB / 488.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.131e-05/0.1433, allocations: 150.6 kB / 488.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.953e-05/0.1434, allocations: 162.5 kB / 488.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000251/0.1436, allocations: 438 kB / 489.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.156e-05/0.1437, allocations: 173.1 kB / 489.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.008e-05/0.1438, allocations: 84.08 kB / 489.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.048e-05/0.1438, allocations: 83.22 kB / 489.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.087e-05/0.1439, allocations: 135.5 kB / 489.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.082e-06/0.1439, allocations: 0 / 489.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 6.591e-05/0.144, allocations: 33.64 kB / 489.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.414e-05/0.1441, allocations: 152.4 kB / 490 MB, free: 12.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.403e-05/0.1441, allocations: 89.86 kB / 490.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1441, allocations: 29.7 kB / 490.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.554e-05/0.1442, allocations: 80.14 kB / 490.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.322e-06/0.1442, allocations: 0 / 490.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.683e-05/0.1442, allocations: 9.719 kB / 490.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.482e-05/0.1443, allocations: 310.8 kB / 490.5 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.059e-06/0.1443, allocations: 4 kB / 490.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.092e-05/0.1443, allocations: 4 kB / 490.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.428e-05/0.1444, allocations: 79.27 kB / 490.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.227e-05/0.1444, allocations: 79.28 kB / 490.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.37e-05/0.1444, allocations: 37.58 kB / 490.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/0.1445, allocations: 85.72 kB / 490.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.419e-05/0.1445, allocations: 75.33 kB / 490.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.394e-05/0.1446, allocations: 154.7 kB / 491 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.554e-05/0.1446, allocations: 91.27 kB / 491.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.297e-05/0.1447, allocations: 150.6 kB / 491.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.477e-05/0.1448, allocations: 83.2 kB / 491.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.1448, allocations: 75.28 kB / 491.4 MB, free: 11.51 MB / 366.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.000158/0.1449, allocations: 264.4 kB / 491.7 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/0.1451, allocations: 116.9 kB / 491.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.036e-05/0.1452, allocations: 104.1 kB / 491.9 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.479e-05/0.1452, allocations: 176.3 kB / 492.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.668e-05/0.1453, allocations: 188.2 kB / 492.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.506e-05/0.1453, allocations: 184.3 kB / 492.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.1455, allocations: 401.2 kB / 492.8 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.613e-05/0.1456, allocations: 104.9 kB / 492.9 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.168e-05/0.1456, allocations: 105 kB / 493 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-05/0.1457, allocations: 184.2 kB / 493.2 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-05/0.1457, allocations: 176.3 kB / 493.4 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.583e-05/0.1458, allocations: 184.2 kB / 493.6 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-05/0.1459, allocations: 184.3 kB / 493.7 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001201/0.146, allocations: 307.8 kB / 494 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.165e-05/0.1461, allocations: 186 kB / 494.2 MB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.699e-05/0.1461, allocations: 180.2 kB / 494.4 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.907e-05/0.1462, allocations: 109 kB / 494.5 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.656e-05/0.1463, allocations: 180.3 kB / 494.7 MB, free: 8.031 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-05/0.1463, allocations: 104.9 kB / 494.8 MB, free: 7.922 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.853e-05/0.1464, allocations: 79.22 kB / 494.9 MB, free: 7.844 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1464, allocations: 0 / 494.9 MB, free: 7.844 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004693/0.1468, allocations: 136 kB / 495 MB, free: 7.711 MB / 366.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.0007963/0.1476, allocations: 418.4 kB / 495.4 MB, free: 7.301 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.469e-05/0.1477, allocations: 0 / 495.4 MB, free: 7.301 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.1477, allocations: 0 / 495.4 MB, free: 7.301 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.333e-06/0.1477, allocations: 0 / 495.4 MB, free: 7.301 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.1481, allocations: 0.534 MB / 495.9 MB, free: 6.762 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001445/0.1482, allocations: 142 kB / 496.1 MB, free: 6.594 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.1485, allocations: 0.677 MB / 496.7 MB, free: 5.891 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.902e-06/0.1486, allocations: 0 / 496.7 MB, free: 5.891 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.949e-06/0.1486, allocations: 11.44 kB / 496.8 MB, free: 5.883 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1486, allocations: 0 / 496.8 MB, free: 5.883 MB / 366.1 MB Notification: Performance of Templates: time 0.006875/0.1555, allocations: 3.158 MB / 499.9 MB, free: 2.727 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches