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.001927/0.001927, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002516/0.002516, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.3 MB, free: 9.141 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2236/0.2236, allocations: 46.11 MB / 343.6 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 75.89 kB / 416.8 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1166, allocations: 62.45 MB / 479.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001825/0.1185, allocations: 0.5448 MB / 479.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003262/0.1217, allocations: 2.374 MB / 482.2 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.178e-06/0.1218, allocations: 0 / 482.2 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.166e-06/0.1218, allocations: 0 / 482.2 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.373e-06/0.1218, allocations: 0 / 482.2 MB, free: 2.746 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.001846/0.1237, allocations: 0.5222 MB / 482.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.319e-05/0.1237, allocations: 11.98 kB / 482.7 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.497e-05/0.1237, allocations: 0 / 482.7 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.1239, allocations: 8 kB / 482.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.073e-05/0.1239, allocations: 4 kB / 482.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.184e-06/0.1239, allocations: 0 / 482.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009858/0.1249, allocations: 0.6164 MB / 483.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.328e-06/0.1249, allocations: 8 kB / 483.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.112e-05/0.125, allocations: 0 / 483.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000625/0.1256, allocations: 431.4 kB / 483.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1256, allocations: 4 kB / 483.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1256, allocations: 3.938 kB / 483.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.1256, allocations: 0 / 483.8 MB, free: 1.148 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.0004641/0.1261, allocations: 421.3 kB / 484.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.1261, allocations: 12.88 kB / 484.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.302e-05/0.1262, allocations: 84.16 kB / 484.3 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.1264, allocations: 235.7 kB / 484.5 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.438e-05/0.1264, allocations: 154.9 kB / 484.7 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.305e-05/0.1265, allocations: 162.6 kB / 484.9 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.103e-05/0.1266, allocations: 101 kB / 485 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.862e-05/0.1266, allocations: 79.28 kB / 485 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.259e-05/0.1267, allocations: 154.6 kB / 485.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.713e-05/0.1267, allocations: 150.6 kB / 485.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.585e-05/0.1268, allocations: 150.6 kB / 485.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002667/0.1271, allocations: 445.9 kB / 485.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.277e-05/0.1272, allocations: 177.1 kB / 486.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.318e-05/0.1272, allocations: 84.08 kB / 486.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.1272, allocations: 75.28 kB / 486.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.866e-05/0.1273, allocations: 131.5 kB / 486.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 2.354e-06/0.1273, allocations: 0 / 486.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.411e-05/0.1274, allocations: 37.58 kB / 486.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.88e-05/0.1275, allocations: 160.4 kB / 486.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.235e-05/0.1275, allocations: 89.86 kB / 486.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.1276, allocations: 25.7 kB / 486.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.267e-05/0.1276, allocations: 84.12 kB / 486.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.024e-06/0.1276, allocations: 0 / 486.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.1276, allocations: 17.7 kB / 486.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.1278, allocations: 314.8 kB / 487.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.888e-06/0.1278, allocations: 0 / 487.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.965e-05/0.1278, allocations: 4 kB / 487.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.762e-05/0.1278, allocations: 75.28 kB / 487.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.937e-05/0.1279, allocations: 75.28 kB / 487.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.216e-05/0.1279, allocations: 33.64 kB / 487.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.836e-05/0.128, allocations: 81.67 kB / 487.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-05/0.128, allocations: 91.2 kB / 487.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.651e-05/0.1281, allocations: 154.7 kB / 487.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.389e-05/0.1281, allocations: 87.27 kB / 487.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-05/0.1282, allocations: 150.6 kB / 487.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.697e-05/0.1282, allocations: 79.28 kB / 487.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.109e-05/0.1283, allocations: 79.22 kB / 488 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.0001192/0.1284, allocations: 260.4 kB / 488.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.385e-05/0.1285, allocations: 116.9 kB / 488.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.043e-05/0.1285, allocations: 108 kB / 488.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.845e-05/0.1286, allocations: 176.3 kB / 488.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.301e-05/0.1286, allocations: 188.2 kB / 488.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-05/0.1287, allocations: 176.3 kB / 489 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000222/0.1289, allocations: 401.2 kB / 489.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-05/0.129, allocations: 120.8 kB / 489.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.618e-05/0.129, allocations: 101 kB / 489.6 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.619e-05/0.1291, allocations: 180.2 kB / 489.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.06e-05/0.1292, allocations: 180.2 kB / 489.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.871e-05/0.1293, allocations: 184.3 kB / 490.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.066e-05/0.1294, allocations: 184.2 kB / 490.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000167/0.1295, allocations: 303.8 kB / 490.6 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.785e-05/0.1296, allocations: 186 kB / 490.8 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.063e-05/0.1297, allocations: 184.3 kB / 491 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.492e-05/0.1298, allocations: 108.9 kB / 491.1 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.324e-05/0.1299, allocations: 180.3 kB / 491.2 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.916e-05/0.13, allocations: 112.9 kB / 491.4 MB, free: 9.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.6e-05/0.13, allocations: 75.28 kB / 491.4 MB, free: 9.055 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.13, allocations: 0 / 491.4 MB, free: 9.055 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000591/0.1306, allocations: 128 kB / 491.5 MB, free: 8.93 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.0009522/0.1316, allocations: 422.8 kB / 492 MB, free: 8.512 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.261e-05/0.1316, allocations: 4 kB / 492 MB, free: 8.508 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1316, allocations: 0 / 492 MB, free: 8.508 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.633e-06/0.1317, allocations: 0 / 492 MB, free: 8.508 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004274/0.1321, allocations: 0.5337 MB / 492.5 MB, free: 7.973 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001626/0.1323, allocations: 153.9 kB / 492.6 MB, free: 7.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.1325, allocations: 0.6692 MB / 493.3 MB, free: 7.098 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.785e-06/0.1325, allocations: 0 / 493.3 MB, free: 7.098 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.112e-05/0.1325, allocations: 7.438 kB / 493.3 MB, free: 7.094 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1325, allocations: 0 / 493.3 MB, free: 7.094 MB / 366.1 MB Notification: Performance of Templates: time 0.006975/0.1395, allocations: 3.153 MB / 496.5 MB, free: 3.941 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