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.001558/0.001558, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001667/0.001667, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 247.1 MB, free: 9.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2394/0.2394, allocations: 46.13 MB / 344.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002223/0.002223, allocations: 75.91 kB / 417.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1234, allocations: 62.45 MB / 480.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001875/0.1253, allocations: 0.5411 MB / 480.8 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003362/0.1287, allocations: 2.292 MB / 483 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.177e-06/0.1287, allocations: 0 / 483 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.707e-06/0.1287, allocations: 0 / 483 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.203e-06/0.1288, allocations: 0 / 483 MB, free: 2.711 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:8:5-88: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:90:5-160: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:162:5-239: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:241:5-319: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.002168/0.1309, allocations: 0.5847 MB / 483.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.149e-05/0.131, allocations: 4 kB / 483.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.764e-05/0.131, allocations: 11.92 kB / 483.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.1312, allocations: 12 kB / 483.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.32e-05/0.1312, allocations: 7.984 kB / 483.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.748e-06/0.1312, allocations: 0 / 483.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009578/0.1322, allocations: 0.6232 MB / 484.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.294e-06/0.1322, allocations: 0 / 484.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.522e-05/0.1322, allocations: 3.984 kB / 484.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004421/0.1327, allocations: 303.5 kB / 484.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.1327, allocations: 4 kB / 484.6 MB, free: 1.168 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1327, allocations: 0 / 484.6 MB, free: 1.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.1327, allocations: 0 / 484.6 MB, free: 1.168 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.0004455/0.1332, allocations: 429.2 kB / 485 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.1332, allocations: 12.03 kB / 485 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.553e-05/0.1333, allocations: 80.16 kB / 485.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.1334, allocations: 243.7 kB / 485.3 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.818e-05/0.1335, allocations: 150.9 kB / 485.5 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.408e-05/0.1336, allocations: 158.7 kB / 485.6 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.076e-05/0.1337, allocations: 101 kB / 485.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.746e-05/0.1337, allocations: 79.28 kB / 485.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.191e-05/0.1338, allocations: 150.6 kB / 486 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.451e-05/0.1339, allocations: 150.6 kB / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.183e-05/0.1339, allocations: 154.5 kB / 486.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003087/0.1342, allocations: 446 kB / 486.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.417e-05/0.1344, allocations: 169.1 kB / 486.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.041e-05/0.1344, allocations: 84.08 kB / 486.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.782e-05/0.1344, allocations: 75.28 kB / 487 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.09e-05/0.1345, allocations: 139.5 kB / 487.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.72e-07/0.1345, allocations: 0 / 487.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.789e-05/0.1346, allocations: 41.7 kB / 487.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.903e-05/0.1347, allocations: 152.4 kB / 487.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.221e-05/0.1348, allocations: 89.86 kB / 487.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.1348, allocations: 25.7 kB / 487.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.443e-05/0.1348, allocations: 84.14 kB / 487.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.754e-06/0.1348, allocations: 0 / 487.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.69e-05/0.1349, allocations: 13.72 kB / 487.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.135, allocations: 310.8 kB / 487.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.58e-06/0.135, allocations: 4 kB / 487.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.632e-05/0.1351, allocations: 3.984 kB / 487.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.832e-05/0.1351, allocations: 83.22 kB / 487.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.037e-05/0.1351, allocations: 79.22 kB / 488 MB, free: 13.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.349e-05/0.1352, allocations: 29.64 kB / 488.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.954e-05/0.1353, allocations: 83.28 kB / 488.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.704e-05/0.1353, allocations: 79.33 kB / 488.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.78e-05/0.1354, allocations: 162.5 kB / 488.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.127e-05/0.1354, allocations: 75.28 kB / 488.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.511e-05/0.1355, allocations: 162.5 kB / 488.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.27e-05/0.1356, allocations: 79.27 kB / 488.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.292e-05/0.1356, allocations: 79.28 kB / 488.8 MB, free: 12.74 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.0001447/0.1358, allocations: 264.4 kB / 489 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.511e-05/0.1359, allocations: 112.9 kB / 489.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.164e-05/0.1359, allocations: 104.1 kB / 489.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-05/0.136, allocations: 188.2 kB / 489.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.523e-05/0.1361, allocations: 180.2 kB / 489.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.172e-05/0.1362, allocations: 176.3 kB / 489.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002544/0.1364, allocations: 409.2 kB / 490.2 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.033e-05/0.1365, allocations: 112.8 kB / 490.3 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.317e-05/0.1365, allocations: 104.9 kB / 490.4 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-05/0.1366, allocations: 176.3 kB / 490.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.108e-05/0.1367, allocations: 180.3 kB / 490.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.926e-05/0.1368, allocations: 180.2 kB / 490.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.368e-05/0.1369, allocations: 188.3 kB / 491.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001598/0.137, allocations: 303.8 kB / 491.4 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.707e-05/0.1371, allocations: 182 kB / 491.6 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.1372, allocations: 188.2 kB / 491.7 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.106e-05/0.1373, allocations: 109 kB / 491.8 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.055e-05/0.1374, allocations: 184.2 kB / 492 MB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.105e-05/0.1375, allocations: 101 kB / 492.1 MB, free: 9.152 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.649e-05/0.1375, allocations: 75.28 kB / 492.2 MB, free: 9.078 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1375, allocations: 0 / 492.2 MB, free: 9.078 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005377/0.1381, allocations: 136 kB / 492.3 MB, free: 8.945 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.0009304/0.139, allocations: 423.5 kB / 492.7 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.138e-05/0.1391, allocations: 0.5156 kB / 492.7 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1391, allocations: 3.938 kB / 492.7 MB, free: 8.527 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.573e-06/0.1391, allocations: 4 kB / 492.7 MB, free: 8.523 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003596/0.1394, allocations: 463.6 kB / 493.2 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001651/0.1396, allocations: 181.9 kB / 493.4 MB, free: 7.855 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.1399, allocations: 0.669 MB / 494 MB, free: 7.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.163e-05/0.1399, allocations: 11.44 kB / 494.1 MB, free: 7.152 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1399, allocations: 0 / 494.1 MB, free: 7.152 MB / 366.1 MB Notification: Performance of Templates: time 0.005221/0.1452, allocations: 2.856 MB / 496.9 MB, free: 4.301 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches