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.001094/0.001094, allocations: 108.1 kB / 17.21 MB, free: 6.289 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.00129/0.00129, allocations: 194 kB / 18.12 MB, free: 5.383 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.363/1.363, allocations: 222.9 MB / 241.8 MB, free: 15.51 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.2038/0.2038, allocations: 44.17 MB / 336.1 MB, free: 3.031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 61.27 kB / 407.7 MB, free: 27.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1526, allocations: 60.83 MB / 468.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001853/0.1545, allocations: 0.5409 MB / 469.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003354/0.1579, allocations: 2.295 MB / 471.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.41e-06/0.1579, allocations: 7.938 kB / 471.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.467e-06/0.1579, allocations: 0 / 471.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.282e-06/0.1579, allocations: 0 / 471.4 MB, free: 12.02 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.00184/0.1598, allocations: 0.5012 MB / 471.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.257e-05/0.1598, allocations: 8 kB / 471.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.001e-05/0.1598, allocations: 0 / 471.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.576e-05/0.1599, allocations: 15.94 kB / 471.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.839e-05/0.16, allocations: 7.984 kB / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.901e-06/0.16, allocations: 0 / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009166/0.1609, allocations: 0.5969 MB / 472.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.444e-06/0.1609, allocations: 0 / 472.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.368e-05/0.161, allocations: 4 kB / 472.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006135/0.1616, allocations: 427.3 kB / 472.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1616, allocations: 4 kB / 472.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1616, allocations: 0 / 472.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1616, allocations: 0 / 472.9 MB, free: 10.46 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.0005321/0.1621, allocations: 421.3 kB / 473.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.843e-05/0.1622, allocations: 8.031 kB / 473.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.034e-05/0.1623, allocations: 88.16 kB / 473.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.1625, allocations: 235.7 kB / 473.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.259e-05/0.1625, allocations: 154.9 kB / 473.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.143e-05/0.1626, allocations: 158.7 kB / 474 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.28e-05/0.1627, allocations: 105 kB / 474.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.283e-05/0.1627, allocations: 75.28 kB / 474.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-05/0.1628, allocations: 150.6 kB / 474.3 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.686e-05/0.1629, allocations: 154.5 kB / 474.4 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.706e-05/0.1629, allocations: 158.5 kB / 474.6 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002963/0.1633, allocations: 446 kB / 475 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.844e-05/0.1634, allocations: 165.1 kB / 475.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.537e-05/0.1634, allocations: 84.08 kB / 475.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.1634, allocations: 79.28 kB / 475.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.99e-05/0.1635, allocations: 143.5 kB / 475.5 MB, free: 7.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 7.61e-07/0.1635, allocations: 0 / 475.5 MB, free: 7.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.002e-05/0.1636, allocations: 29.69 kB / 475.5 MB, free: 7.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.914e-05/0.1637, allocations: 152.4 kB / 475.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.766e-05/0.1638, allocations: 89.86 kB / 475.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.1638, allocations: 25.7 kB / 475.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.575e-05/0.1639, allocations: 88.14 kB / 475.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-06/0.1639, allocations: 0 / 475.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.468e-05/0.1639, allocations: 13.72 kB / 475.9 MB, free: 7.266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.164, allocations: 310.8 kB / 476.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.139e-06/0.1641, allocations: 0 / 476.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.464e-05/0.1641, allocations: 0 / 476.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.791e-05/0.1641, allocations: 79.28 kB / 476.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.453e-05/0.1642, allocations: 79.22 kB / 476.3 MB, free: 6.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.79e-05/0.1642, allocations: 33.62 kB / 476.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.1643, allocations: 91.31 kB / 476.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.563e-05/0.1643, allocations: 75.28 kB / 476.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.961e-05/0.1644, allocations: 154.5 kB / 476.7 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.219e-05/0.1644, allocations: 75.28 kB / 476.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.058e-05/0.1645, allocations: 158.5 kB / 476.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.016e-05/0.1646, allocations: 79.33 kB / 477 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.474e-05/0.1646, allocations: 83.42 kB / 477.1 MB, free: 6.051 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.0001269/0.1648, allocations: 264.4 kB / 477.3 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.203e-05/0.1648, allocations: 112.9 kB / 477.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.74e-05/0.1649, allocations: 108.1 kB / 477.5 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.439e-05/0.165, allocations: 180.2 kB / 477.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.336e-05/0.165, allocations: 184.2 kB / 477.9 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.946e-05/0.1651, allocations: 176.3 kB / 478.1 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.1654, allocations: 405.2 kB / 478.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.224e-05/0.1654, allocations: 108.9 kB / 478.6 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.276e-05/0.1655, allocations: 108.9 kB / 478.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.848e-05/0.1655, allocations: 180.2 kB / 478.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.262e-05/0.1656, allocations: 184.3 kB / 479 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.471e-05/0.1657, allocations: 180.2 kB / 479.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.571e-05/0.1658, allocations: 184.3 kB / 479.4 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001406/0.1659, allocations: 303.8 kB / 479.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.981e-05/0.166, allocations: 194 kB / 479.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.34e-05/0.1661, allocations: 188.2 kB / 480.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.379e-05/0.1662, allocations: 101 kB / 480.2 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.194e-05/0.1663, allocations: 188.2 kB / 480.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-05/0.1663, allocations: 101 kB / 480.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.023e-05/0.1664, allocations: 75.28 kB / 480.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1664, allocations: 4 kB / 480.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004856/0.1669, allocations: 128 kB / 480.6 MB, free: 2.246 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.000816/0.1677, allocations: 417 kB / 481 MB, free: 1.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.073e-05/0.1678, allocations: 7.938 kB / 481.1 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1678, allocations: 0 / 481.1 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.102e-06/0.1678, allocations: 0 / 481.1 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.1682, allocations: 0.5262 MB / 481.6 MB, free: 1.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001852/0.1684, allocations: 154 kB / 481.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.1687, allocations: 0.6692 MB / 482.4 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.456e-06/0.1688, allocations: 0 / 482.4 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.403e-05/0.1688, allocations: 7.438 kB / 482.4 MB, free: 436 kB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1688, allocations: 0 / 482.4 MB, free: 436 kB / 350.1 MB Notification: Performance of Templates: time 0.006854/0.1756, allocations: 3.07 MB / 485.5 MB, free: 13.36 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