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.001494/0.001494, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001873/0.001874, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2229/0.2229, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 81.61 kB / 417.6 MB, free: 19.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1444, allocations: 62.44 MB / 480 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.00178/0.1463, allocations: 490.4 kB / 480.5 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00364/0.1499, allocations: 2.276 MB / 482.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.023e-06/0.1499, allocations: 0 / 482.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.639e-06/0.1499, allocations: 0 / 482.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.683e-06/0.15, allocations: 0 / 482.8 MB, free: 2.547 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.00221/0.1522, allocations: 0.6228 MB / 483.4 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.062e-05/0.1522, allocations: 11.94 kB / 483.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.731e-05/0.1523, allocations: 11.94 kB / 483.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.1524, allocations: 23.91 kB / 483.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.13e-05/0.1525, allocations: 4 kB / 483.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.53e-06/0.1525, allocations: 0 / 483.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008913/0.1534, allocations: 0.6086 MB / 484 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.165e-06/0.1534, allocations: 3.984 kB / 484 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.551e-05/0.1534, allocations: 0 / 484 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006044/0.154, allocations: 427.4 kB / 484.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.1541, allocations: 8 kB / 484.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1541, allocations: 0 / 484.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.1541, allocations: 0 / 484.5 MB, free: 0.8398 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.0005131/0.1546, allocations: 433.2 kB / 484.9 MB, free: 372 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.1546, allocations: 12.03 kB / 484.9 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.101e-05/0.1547, allocations: 76.22 kB / 485 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.1549, allocations: 235.7 kB / 485.2 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001048/0.155, allocations: 158.9 kB / 485.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.06e-05/0.1551, allocations: 158.7 kB / 485.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.1552, allocations: 105 kB / 485.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.851e-05/0.1552, allocations: 79.28 kB / 485.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.064e-05/0.1553, allocations: 150.6 kB / 485.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.176e-05/0.1554, allocations: 154.5 kB / 486 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.088e-05/0.1555, allocations: 154.6 kB / 486.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003238/0.1558, allocations: 445.9 kB / 486.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.1559, allocations: 169.1 kB / 486.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.742e-05/0.156, allocations: 84.08 kB / 486.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.443e-05/0.156, allocations: 79.28 kB / 486.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.578e-05/0.1561, allocations: 131.5 kB / 487 MB, free: 14.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.142e-06/0.1561, allocations: 0 / 487 MB, free: 14.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 9.2e-05/0.1562, allocations: 33.64 kB / 487.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.347e-05/0.1563, allocations: 156.4 kB / 487.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.749e-05/0.1564, allocations: 93.86 kB / 487.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.1564, allocations: 25.7 kB / 487.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.023e-05/0.1564, allocations: 84.14 kB / 487.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.204e-06/0.1564, allocations: 0 / 487.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.34e-05/0.1565, allocations: 13.72 kB / 487.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1566, allocations: 314.8 kB / 487.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.015e-06/0.1566, allocations: 0 / 487.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.776e-05/0.1567, allocations: 3.938 kB / 487.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.582e-05/0.1567, allocations: 75.28 kB / 487.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.494e-05/0.1567, allocations: 75.28 kB / 487.9 MB, free: 13.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.163e-05/0.1568, allocations: 41.66 kB / 487.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.98e-05/0.1568, allocations: 83.22 kB / 488 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-05/0.1569, allocations: 83.22 kB / 488.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.889e-05/0.157, allocations: 150.6 kB / 488.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.05e-05/0.157, allocations: 83.22 kB / 488.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.013e-05/0.1571, allocations: 150.6 kB / 488.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.666e-05/0.1571, allocations: 87.22 kB / 488.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.955e-05/0.1572, allocations: 75.28 kB / 488.6 MB, free: 12.42 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.0001145/0.1573, allocations: 264.4 kB / 488.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.493e-05/0.1573, allocations: 105 kB / 489 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.169e-05/0.1574, allocations: 116 kB / 489.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.705e-05/0.1575, allocations: 176.3 kB / 489.3 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.832e-05/0.1575, allocations: 188.2 kB / 489.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.276e-05/0.1576, allocations: 180.2 kB / 489.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002198/0.1578, allocations: 393.2 kB / 490 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.657e-05/0.1579, allocations: 116.9 kB / 490.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.479e-05/0.158, allocations: 101 kB / 490.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.204e-05/0.158, allocations: 188.2 kB / 490.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.408e-05/0.1581, allocations: 180.3 kB / 490.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.325e-05/0.1582, allocations: 180.3 kB / 490.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.937e-05/0.1582, allocations: 180.2 kB / 490.9 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001406/0.1584, allocations: 311.8 kB / 491.3 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.361e-05/0.1584, allocations: 182 kB / 491.4 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.911e-05/0.1585, allocations: 180.3 kB / 491.6 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.63e-05/0.1586, allocations: 108.9 kB / 491.7 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.952e-05/0.1587, allocations: 184.2 kB / 491.9 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.421e-05/0.1587, allocations: 112.9 kB / 492 MB, free: 8.824 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.222e-05/0.1588, allocations: 79.28 kB / 492.1 MB, free: 8.746 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1588, allocations: 0 / 492.1 MB, free: 8.746 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005024/0.1593, allocations: 128 kB / 492.2 MB, free: 8.621 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.0008475/0.1601, allocations: 425.6 kB / 492.6 MB, free: 8.203 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.681e-05/0.1602, allocations: 4 kB / 492.6 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1602, allocations: 0 / 492.6 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.432e-06/0.1602, allocations: 0 / 492.6 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.1605, allocations: 459.6 kB / 493.1 MB, free: 7.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001457/0.1607, allocations: 156.2 kB / 493.2 MB, free: 7.566 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.1609, allocations: 0.669 MB / 493.9 MB, free: 6.871 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.037e-06/0.161, allocations: 4 kB / 493.9 MB, free: 6.867 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.169e-05/0.161, allocations: 7.438 kB / 493.9 MB, free: 6.863 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.161, allocations: 4 kB / 493.9 MB, free: 6.859 MB / 366.1 MB Notification: Performance of Templates: time 0.007133/0.1681, allocations: 3.16 MB / 497.1 MB, free: 3.699 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