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.001112/0.001112, allocations: 92.72 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001699/0.001699, allocations: 198.8 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2128/0.2128, allocations: 45.91 MB / 344 MB, free: 12.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003628/0.0003628, allocations: 15.98 kB / 417.9 MB, free: 20.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1416, allocations: 63.47 MB / 481.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0005198/0.1422, allocations: 209.2 kB / 481.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00291/0.1451, allocations: 2.095 MB / 483.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.529e-06/0.1451, allocations: 4 kB / 483.7 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.759e-06/0.1451, allocations: 0 / 483.7 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.773e-06/0.1452, allocations: 0 / 483.7 MB, free: 3.09 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.00162/0.1468, allocations: 0.4979 MB / 484.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.989e-05/0.1468, allocations: 8 kB / 484.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.887e-05/0.1469, allocations: 3.984 kB / 484.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.674e-05/0.147, allocations: 15.98 kB / 484.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.74e-05/0.147, allocations: 4 kB / 484.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.457e-06/0.147, allocations: 0 / 484.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007304/0.1478, allocations: 0.5266 MB / 484.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.573e-06/0.1478, allocations: 7.984 kB / 484.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.725e-05/0.1478, allocations: 25.7 kB / 484.8 MB, free: 2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00042/0.1482, allocations: 295.5 kB / 485.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.923e-06/0.1482, allocations: 4 kB / 485.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1482, allocations: 0 / 485.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.1483, allocations: 0 / 485.1 MB, free: 1.707 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.0003495/0.1486, allocations: 421 kB / 485.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.1487, allocations: 12.03 kB / 485.5 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.372e-05/0.1487, allocations: 79.28 kB / 485.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001311/0.1489, allocations: 238.3 kB / 485.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.635e-05/0.1489, allocations: 154.6 kB / 486 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.131e-05/0.149, allocations: 150.6 kB / 486.1 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.219e-05/0.1491, allocations: 105 kB / 486.2 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.726e-05/0.1491, allocations: 91.16 kB / 486.3 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.236e-05/0.1492, allocations: 154.5 kB / 486.4 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.524e-05/0.1493, allocations: 150.6 kB / 486.6 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.745e-05/0.1493, allocations: 150.6 kB / 486.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002739/0.1496, allocations: 449.9 kB / 487.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.239e-05/0.1497, allocations: 169.1 kB / 487.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.1498, allocations: 83.2 kB / 487.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.483e-05/0.1498, allocations: 131.5 kB / 487.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.92e-07/0.1498, allocations: 0 / 487.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 8.306e-05/0.1499, allocations: 25.7 kB / 487.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.773e-05/0.15, allocations: 164.4 kB / 487.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.45e-05/0.1501, allocations: 93.86 kB / 487.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.1501, allocations: 25.7 kB / 487.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.737e-05/0.1501, allocations: 80.14 kB / 487.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.844e-06/0.1501, allocations: 0 / 487.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.3e-07/0.1502, allocations: 0 / 487.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1503, allocations: 314.8 kB / 488.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.826e-06/0.1503, allocations: 0 / 488.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.315e-05/0.1503, allocations: 7.938 kB / 488.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.414e-05/0.1504, allocations: 75.28 kB / 488.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-05/0.1504, allocations: 75.28 kB / 488.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.169e-05/0.1505, allocations: 33.66 kB / 488.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.68e-05/0.1505, allocations: 79.28 kB / 488.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.623e-05/0.1505, allocations: 79.28 kB / 488.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.06e-05/0.1506, allocations: 158.5 kB / 488.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.878e-05/0.1506, allocations: 83.42 kB / 488.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.494e-05/0.1507, allocations: 158.5 kB / 489 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.664e-05/0.1508, allocations: 79.28 kB / 489 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.1508, allocations: 75.28 kB / 489.1 MB, free: 13.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000124/0.151, allocations: 264.3 kB / 489.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.788e-05/0.151, allocations: 104.9 kB / 489.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.532e-05/0.1511, allocations: 116.1 kB / 489.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.117e-05/0.1511, allocations: 180.2 kB / 489.8 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.77e-05/0.1512, allocations: 184.3 kB / 490 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-05/0.1513, allocations: 180.2 kB / 490.1 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/0.1515, allocations: 401.2 kB / 490.5 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.457e-05/0.1516, allocations: 116.9 kB / 490.6 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.073e-05/0.1516, allocations: 104.9 kB / 490.7 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.191e-05/0.1517, allocations: 180.2 kB / 490.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.631e-05/0.1518, allocations: 180.2 kB / 491.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.566e-05/0.1519, allocations: 184.2 kB / 491.3 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-05/0.1519, allocations: 180.2 kB / 491.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001583/0.1521, allocations: 307.8 kB / 491.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.787e-05/0.1522, allocations: 186 kB / 491.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.386e-05/0.1523, allocations: 184.2 kB / 492.1 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.1524, allocations: 101 kB / 492.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.405e-05/0.1525, allocations: 188.2 kB / 492.4 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.1525, allocations: 105 kB / 492.5 MB, free: 9.805 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.897e-05/0.1526, allocations: 79.28 kB / 492.6 MB, free: 9.727 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1526, allocations: 0 / 492.6 MB, free: 9.727 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005419/0.1531, allocations: 132 kB / 492.7 MB, free: 9.598 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007721/0.1539, allocations: 420.8 kB / 493.1 MB, free: 9.184 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.569e-05/0.1539, allocations: 15.94 kB / 493.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1539, allocations: 0 / 493.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.396e-06/0.154, allocations: 0 / 493.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.1542, allocations: 0.5224 MB / 493.6 MB, free: 8.641 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001232/0.1543, allocations: 146.3 kB / 493.8 MB, free: 8.469 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.1546, allocations: 0.677 MB / 494.5 MB, free: 7.766 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.471e-06/0.1546, allocations: 0 / 494.5 MB, free: 7.766 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.046e-05/0.1546, allocations: 7.438 kB / 494.5 MB, free: 7.758 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1546, allocations: 0 / 494.5 MB, free: 7.758 MB / 366.1 MB Notification: Performance of Templates: time 0.007158/0.1618, allocations: 3.17 MB / 497.6 MB, free: 4.586 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","../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches