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.001492/0.001492, allocations: 108 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001879/0.001879, allocations: 209.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2242/0.2242, allocations: 46.09 MB / 343.8 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 74.16 kB / 417 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1428, allocations: 62.43 MB / 479.5 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.002157/0.145, allocations: 0.5449 MB / 480 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004297/0.1493, allocations: 2.276 MB / 482.3 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.831e-06/0.1493, allocations: 0 / 482.3 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.16e-06/0.1494, allocations: 0 / 482.3 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.953e-06/0.1494, allocations: 0 / 482.3 MB, free: 2.824 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.003199/0.1526, allocations: 0.5691 MB / 482.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.275e-05/0.1527, allocations: 15.97 kB / 482.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.225e-05/0.1528, allocations: 3.938 kB / 482.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.1529, allocations: 12 kB / 482.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.761e-05/0.153, allocations: 7.938 kB / 482.9 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.61e-06/0.153, allocations: 0 / 482.9 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001233/0.1542, allocations: 0.6232 MB / 483.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.214e-05/0.1543, allocations: 4 kB / 483.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.752e-05/0.1543, allocations: 4 kB / 483.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.1553, allocations: 427.4 kB / 483.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1553, allocations: 0 / 483.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1553, allocations: 0 / 483.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1553, allocations: 0 / 483.9 MB, free: 1.172 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.000554/0.1559, allocations: 433.2 kB / 484.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.1559, allocations: 8.031 kB / 484.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.417e-05/0.156, allocations: 80.22 kB / 484.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.1562, allocations: 239.7 kB / 484.7 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.753e-05/0.1563, allocations: 154.9 kB / 484.8 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.833e-05/0.1564, allocations: 162.7 kB / 485 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.921e-05/0.1565, allocations: 101 kB / 485.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.532e-05/0.1565, allocations: 75.28 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-05/0.1566, allocations: 158.6 kB / 485.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.834e-05/0.1567, allocations: 150.6 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.15e-05/0.1568, allocations: 150.6 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003404/0.1571, allocations: 449.9 kB / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.1572, allocations: 169.1 kB / 486.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.813e-05/0.1573, allocations: 88.08 kB / 486.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.358e-05/0.1573, allocations: 75.28 kB / 486.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.779e-05/0.1574, allocations: 131.5 kB / 486.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.71e-07/0.1574, allocations: 0 / 486.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 8.941e-05/0.1575, allocations: 33.64 kB / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.1576, allocations: 156.4 kB / 486.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.763e-05/0.1577, allocations: 97.86 kB / 486.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/0.1577, allocations: 25.7 kB / 486.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.148e-05/0.1577, allocations: 84.12 kB / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.104e-06/0.1578, allocations: 0 / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/0.1578, allocations: 17.7 kB / 486.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.1579, allocations: 310.8 kB / 487.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.745e-06/0.158, allocations: 4 kB / 487.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.746e-05/0.158, allocations: 4 kB / 487.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.3e-05/0.158, allocations: 83.25 kB / 487.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.094e-05/0.1581, allocations: 75.28 kB / 487.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.234e-05/0.1581, allocations: 37.58 kB / 487.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.763e-05/0.1582, allocations: 82.25 kB / 487.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.752e-05/0.1582, allocations: 75.33 kB / 487.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.295e-05/0.1583, allocations: 166.5 kB / 487.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.531e-05/0.1584, allocations: 83.16 kB / 487.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.961e-05/0.1585, allocations: 154.6 kB / 488 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.426e-05/0.1585, allocations: 79.22 kB / 488 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.353e-05/0.1586, allocations: 79.28 kB / 488.1 MB, free: 12.73 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.0001524/0.1587, allocations: 256.4 kB / 488.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.023e-05/0.1588, allocations: 112.9 kB / 488.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.551e-05/0.1589, allocations: 116 kB / 488.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.43e-05/0.159, allocations: 176.3 kB / 488.8 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.648e-05/0.1591, allocations: 180.2 kB / 488.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.362e-05/0.1592, allocations: 180.3 kB / 489.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002511/0.1594, allocations: 401.2 kB / 489.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.955e-05/0.1595, allocations: 112.9 kB / 489.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.091e-05/0.1596, allocations: 105 kB / 489.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.233e-05/0.1597, allocations: 180.2 kB / 489.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.208e-05/0.1597, allocations: 176.3 kB / 490.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.708e-05/0.1598, allocations: 180.2 kB / 490.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.987e-05/0.1599, allocations: 188.2 kB / 490.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001658/0.1601, allocations: 307.8 kB / 490.7 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.665e-05/0.1602, allocations: 186 kB / 490.9 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.495e-05/0.1603, allocations: 176.3 kB / 491.1 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.25e-05/0.1604, allocations: 112.9 kB / 491.2 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.317e-05/0.1604, allocations: 180.3 kB / 491.4 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.219e-05/0.1605, allocations: 104.9 kB / 491.5 MB, free: 9.156 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.295e-05/0.1605, allocations: 75.28 kB / 491.5 MB, free: 9.082 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1605, allocations: 0 / 491.5 MB, free: 9.082 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006041/0.1611, allocations: 136 kB / 491.7 MB, free: 8.949 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.001075/0.1622, allocations: 436.3 kB / 492.1 MB, free: 8.523 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.452e-05/0.1623, allocations: 4.5 kB / 492.1 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.1623, allocations: 0 / 492.1 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.514e-06/0.1623, allocations: 0 / 492.1 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003403/0.1627, allocations: 463.6 kB / 492.6 MB, free: 8.062 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001495/0.1628, allocations: 152.2 kB / 492.7 MB, free: 7.887 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.1631, allocations: 0.669 MB / 493.4 MB, free: 7.191 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.856e-06/0.1631, allocations: 0 / 493.4 MB, free: 7.191 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.629e-05/0.1631, allocations: 11.44 kB / 493.4 MB, free: 7.184 MB / 366.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1631, allocations: 0 / 493.4 MB, free: 7.184 MB / 366.1 MB Notification: Performance of Templates: time 0.008386/0.1715, allocations: 3.155 MB / 496.5 MB, free: 4.027 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