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.00114/0.00114, allocations: 92.55 kB / 17.35 MB, free: 6.371 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.001409/0.001409, allocations: 176.7 kB / 18.25 MB, free: 5.523 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.378/1.378, allocations: 223.3 MB / 242.3 MB, free: 220 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.1848/0.1848, allocations: 44.25 MB / 337.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003808/0.0003808, allocations: 8.531 kB / 410.3 MB, free: 27.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1545, allocations: 61.93 MB / 472.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0006797/0.1552, allocations: 213.2 kB / 472.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003389/0.1586, allocations: 2.265 MB / 474.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.049e-06/0.1586, allocations: 4 kB / 474.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.158e-06/0.1586, allocations: 0 / 474.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.242e-06/0.1586, allocations: 0 / 474.7 MB, free: 10.88 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.001937/0.1606, allocations: 0.5023 MB / 475.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.558e-05/0.1606, allocations: 8 kB / 475.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.407e-05/0.1607, allocations: 3.984 kB / 475.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.018e-05/0.1608, allocations: 15.94 kB / 475.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.813e-05/0.1608, allocations: 4 kB / 475.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.098e-06/0.1608, allocations: 0 / 475.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009594/0.1618, allocations: 0.5969 MB / 475.9 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.625e-06/0.1618, allocations: 0 / 475.9 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.381e-05/0.1619, allocations: 29.69 kB / 475.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006122/0.1625, allocations: 431.3 kB / 476.3 MB, free: 9.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.1625, allocations: 8 kB / 476.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1625, allocations: 0 / 476.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1625, allocations: 3.938 kB / 476.3 MB, free: 9.277 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.0004464/0.163, allocations: 413.3 kB / 476.7 MB, free: 8.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.163, allocations: 8.031 kB / 476.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.241e-05/0.1631, allocations: 76.22 kB / 476.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.1632, allocations: 239.7 kB / 477 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.161e-05/0.1633, allocations: 150.9 kB / 477.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.835e-05/0.1634, allocations: 162.7 kB / 477.3 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.217e-05/0.1635, allocations: 101 kB / 477.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.1635, allocations: 75.28 kB / 477.5 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.1637, allocations: 150.6 kB / 477.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.519e-05/0.1637, allocations: 154.5 kB / 477.8 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.525e-05/0.1638, allocations: 154.6 kB / 478 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003052/0.1641, allocations: 449.9 kB / 478.4 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.1642, allocations: 169.1 kB / 478.6 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.657e-05/0.1643, allocations: 84.08 kB / 478.7 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.556e-05/0.1643, allocations: 83.22 kB / 478.7 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.603e-05/0.1644, allocations: 135.5 kB / 478.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.022e-06/0.1644, allocations: 0 / 478.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.323e-05/0.1645, allocations: 29.7 kB / 478.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.827e-05/0.1646, allocations: 152.4 kB / 479 MB, free: 6.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.367e-05/0.1646, allocations: 89.86 kB / 479.1 MB, free: 6.242 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.1647, allocations: 25.7 kB / 479.2 MB, free: 6.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.226e-05/0.1647, allocations: 88.14 kB / 479.2 MB, free: 6.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-06/0.1647, allocations: 0 / 479.2 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.81e-05/0.1647, allocations: 9.719 kB / 479.3 MB, free: 6.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1649, allocations: 314.8 kB / 479.6 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.578e-06/0.1649, allocations: 0 / 479.6 MB, free: 5.789 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.823e-05/0.1649, allocations: 4 kB / 479.6 MB, free: 5.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.947e-05/0.1649, allocations: 79.22 kB / 479.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.537e-05/0.165, allocations: 75.28 kB / 479.7 MB, free: 5.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.446e-05/0.165, allocations: 29.64 kB / 479.7 MB, free: 5.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.578e-05/0.1651, allocations: 87.31 kB / 479.8 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.827e-05/0.1652, allocations: 79.28 kB / 479.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001193/0.1653, allocations: 154.5 kB / 480.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.306e-05/0.1653, allocations: 75.28 kB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001044/0.1655, allocations: 162.5 kB / 480.3 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.908e-05/0.1655, allocations: 75.33 kB / 480.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.969e-05/0.1656, allocations: 83.44 kB / 480.4 MB, free: 4.891 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.0001333/0.1657, allocations: 260.4 kB / 480.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.522e-05/0.1658, allocations: 120.9 kB / 480.8 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.677e-05/0.1659, allocations: 108.1 kB / 480.9 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-05/0.166, allocations: 184.2 kB / 481.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.557e-05/0.1661, allocations: 188.2 kB / 481.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-05/0.1662, allocations: 176.3 kB / 481.5 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002762/0.1665, allocations: 409.2 kB / 481.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.406e-05/0.1665, allocations: 104.9 kB / 482 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.241e-05/0.1666, allocations: 104.9 kB / 482.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.713e-05/0.1667, allocations: 176.3 kB / 482.2 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.201e-05/0.1667, allocations: 184.3 kB / 482.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.896e-05/0.1668, allocations: 184.1 kB / 482.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.633e-05/0.1669, allocations: 184.2 kB / 482.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001458/0.1671, allocations: 299.8 kB / 483.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.359e-05/0.1671, allocations: 190 kB / 483.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.283e-05/0.1672, allocations: 192.2 kB / 483.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.838e-05/0.1673, allocations: 101 kB / 483.5 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.385e-05/0.1674, allocations: 184.2 kB / 483.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.1675, allocations: 101 kB / 483.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.23e-05/0.1675, allocations: 75.28 kB / 483.9 MB, free: 1.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1675, allocations: 4 kB / 483.9 MB, free: 1.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000533/0.168, allocations: 132 kB / 484 MB, free: 1.082 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.000866/0.1689, allocations: 404 kB / 484.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.228e-05/0.169, allocations: 11.94 kB / 484.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.169, allocations: 3.938 kB / 484.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.964e-06/0.169, allocations: 0 / 484.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/0.1694, allocations: 0.5224 MB / 485 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001867/0.1696, allocations: 150 kB / 485.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.17, allocations: 0.6731 MB / 485.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.285e-06/0.17, allocations: 3.984 kB / 485.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.254e-05/0.17, allocations: 7.438 kB / 485.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.17, allocations: 0 / 485.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of Templates: time 0.007395/0.1774, allocations: 3.067 MB / 488.9 MB, free: 12.21 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