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.001381/0.001381, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001669/0.001669, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.3 MB, free: 10.83 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2255/0.2255, allocations: 46.1 MB / 343.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 73.12 kB / 416.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1539, allocations: 62.44 MB / 479.3 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.002374/0.1563, allocations: 0.5371 MB / 479.8 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004392/0.1607, allocations: 2.389 MB / 482.2 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.422e-06/0.1608, allocations: 4 kB / 482.2 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.629e-06/0.1608, allocations: 0 / 482.2 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.873e-06/0.1608, allocations: 0 / 482.2 MB, free: 2.789 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.002337/0.1632, allocations: 0.5217 MB / 482.7 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.499e-05/0.1632, allocations: 4 kB / 482.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.399e-05/0.1632, allocations: 0 / 482.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001506/0.1634, allocations: 19.92 kB / 482.8 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.584e-05/0.1634, allocations: 7.984 kB / 482.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.971e-06/0.1635, allocations: 4 kB / 482.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00114/0.1646, allocations: 0.6086 MB / 483.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.835e-06/0.1646, allocations: 0 / 483.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.056e-05/0.1646, allocations: 4 kB / 483.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001013/0.1657, allocations: 439.3 kB / 483.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.1657, allocations: 0 / 483.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1657, allocations: 0 / 483.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1657, allocations: 0 / 483.8 MB, free: 1.191 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.0006352/0.1663, allocations: 429.2 kB / 484.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.1664, allocations: 8.875 kB / 484.2 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.1665, allocations: 80.22 kB / 484.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.1667, allocations: 235.7 kB / 484.5 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.122e-05/0.1667, allocations: 150.9 kB / 484.7 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.218e-05/0.1668, allocations: 158.7 kB / 484.9 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001187/0.1669, allocations: 105 kB / 485 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.027e-05/0.167, allocations: 75.28 kB / 485 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.071e-05/0.1671, allocations: 162.5 kB / 485.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.862e-05/0.1672, allocations: 150.6 kB / 485.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.876e-05/0.1672, allocations: 150.6 kB / 485.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003365/0.1676, allocations: 442 kB / 485.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.561e-05/0.1677, allocations: 173.1 kB / 486.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.467e-05/0.1677, allocations: 88.08 kB / 486.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.074e-05/0.1678, allocations: 79.22 kB / 486.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.914e-05/0.1679, allocations: 135.5 kB / 486.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 9.72e-07/0.1679, allocations: 0 / 486.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001003/0.168, allocations: 29.69 kB / 486.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.012e-05/0.1681, allocations: 156.4 kB / 486.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.908e-05/0.1681, allocations: 89.86 kB / 486.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.1681, allocations: 29.64 kB / 486.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.18e-05/0.1682, allocations: 80.14 kB / 486.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-06/0.1682, allocations: 0 / 486.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.191e-05/0.1682, allocations: 21.72 kB / 486.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1684, allocations: 310.8 kB / 487.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.272e-06/0.1684, allocations: 0 / 487.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.684e-05/0.1684, allocations: 7.938 kB / 487.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.758e-05/0.1685, allocations: 79.27 kB / 487.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.97e-05/0.1685, allocations: 75.28 kB / 487.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.931e-05/0.1686, allocations: 37.62 kB / 487.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.872e-05/0.1686, allocations: 79.33 kB / 487.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.37e-05/0.1687, allocations: 83.31 kB / 487.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.248e-05/0.1687, allocations: 158.6 kB / 487.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.147e-05/0.1688, allocations: 79.3 kB / 487.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.156e-05/0.1689, allocations: 154.5 kB / 487.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.171e-05/0.169, allocations: 83.27 kB / 487.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.421e-05/0.169, allocations: 79.28 kB / 488 MB, free: 12.77 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.0001867/0.1692, allocations: 264.3 kB / 488.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.393e-05/0.1693, allocations: 108.9 kB / 488.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.446e-05/0.1694, allocations: 104.1 kB / 488.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.176e-05/0.1694, allocations: 184.2 kB / 488.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.052e-05/0.1695, allocations: 180.2 kB / 488.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.943e-05/0.1696, allocations: 188.3 kB / 489 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000255/0.1699, allocations: 397.2 kB / 489.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.23e-05/0.1699, allocations: 104.9 kB / 489.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.716e-05/0.17, allocations: 112.9 kB / 489.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001061/0.1701, allocations: 180.3 kB / 489.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-05/0.1702, allocations: 180.2 kB / 489.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001511/0.1704, allocations: 184.3 kB / 490.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.591e-05/0.1705, allocations: 180.3 kB / 490.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.1707, allocations: 307.8 kB / 490.6 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.967e-05/0.1708, allocations: 186 kB / 490.8 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.084e-05/0.1709, allocations: 180.3 kB / 490.9 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.298e-05/0.171, allocations: 109 kB / 491.1 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.451e-05/0.1711, allocations: 184.1 kB / 491.2 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.1711, allocations: 105 kB / 491.3 MB, free: 9.184 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.933e-05/0.1711, allocations: 79.22 kB / 491.4 MB, free: 9.105 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1711, allocations: 0 / 491.4 MB, free: 9.105 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006299/0.1718, allocations: 136 kB / 491.5 MB, free: 8.973 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.00108/0.1729, allocations: 409.1 kB / 491.9 MB, free: 8.574 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.735e-05/0.1729, allocations: 3.938 kB / 491.9 MB, free: 8.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1729, allocations: 4 kB / 492 MB, free: 8.566 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.176e-06/0.1729, allocations: 4 kB / 492 MB, free: 8.562 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003784/0.1733, allocations: 0.5262 MB / 492.5 MB, free: 8.031 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001672/0.1735, allocations: 149.9 kB / 492.6 MB, free: 7.855 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.1739, allocations: 0.6731 MB / 493.3 MB, free: 7.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.487e-06/0.1739, allocations: 4 kB / 493.3 MB, free: 7.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.46e-05/0.1739, allocations: 11.44 kB / 493.3 MB, free: 7.145 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1739, allocations: 0 / 493.3 MB, free: 7.145 MB / 366.1 MB Notification: Performance of Templates: time 0.009003/0.1829, allocations: 3.16 MB / 496.5 MB, free: 3.984 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