Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001074, allocations: 95.3 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 183.8 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 223.2 MB / 241.8 MB, free: 14.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2253/0.2253, allocations: 44.22 MB / 337.1 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003695/0.0003697, allocations: 12 kB / 409.5 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1249, allocations: 61.91 MB / 471.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0004865/0.1254, allocations: 217.2 kB / 471.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002458/0.1279, allocations: 2.017 MB / 473.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.897e-06/0.1279, allocations: 0 / 473.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.326e-06/0.1279, allocations: 0 / 473.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.272e-06/0.1279, allocations: 0 / 473.7 MB, free: 11.49 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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.001676/0.1296, allocations: 0.5019 MB / 474.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.142e-05/0.1296, allocations: 7.984 kB / 474.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.047e-05/0.1297, allocations: 7.984 kB / 474.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.185e-05/0.1297, allocations: 4 kB / 474.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.842e-05/0.1298, allocations: 8 kB / 474.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.737e-06/0.1298, allocations: 0 / 474.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007251/0.1305, allocations: 0.5188 MB / 474.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.629e-06/0.1305, allocations: 0 / 474.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.574e-05/0.1306, allocations: 25.7 kB / 474.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003848/0.131, allocations: 291.5 kB / 475 MB, free: 10.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.131, allocations: 0 / 475 MB, free: 10.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.131, allocations: 4 kB / 475 MB, free: 10.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.131, allocations: 0 / 475 MB, free: 10.12 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.0003272/0.1313, allocations: 417.1 kB / 475.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.1313, allocations: 8.031 kB / 475.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.619e-05/0.1314, allocations: 75.28 kB / 475.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.774e-05/0.1315, allocations: 238.3 kB / 475.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.313e-05/0.1316, allocations: 154.6 kB / 475.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.735e-05/0.1316, allocations: 154.6 kB / 476.1 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.229e-05/0.1317, allocations: 112.9 kB / 476.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/0.1317, allocations: 75.28 kB / 476.2 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.025e-05/0.1318, allocations: 154.6 kB / 476.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.003e-05/0.1318, allocations: 150.6 kB / 476.5 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.285e-05/0.1319, allocations: 150.6 kB / 476.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002337/0.1321, allocations: 446 kB / 477.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.771e-05/0.1322, allocations: 177.1 kB / 477.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.1322, allocations: 75.28 kB / 477.4 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.763e-05/0.1323, allocations: 139.5 kB / 477.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.42e-07/0.1323, allocations: 4 kB / 477.5 MB, free: 7.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.745e-05/0.1324, allocations: 33.64 kB / 477.5 MB, free: 7.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.175e-05/0.1324, allocations: 152.4 kB / 477.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.488e-05/0.1325, allocations: 89.86 kB / 477.8 MB, free: 7.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.1325, allocations: 25.7 kB / 477.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.019e-05/0.1325, allocations: 84.14 kB / 477.9 MB, free: 7.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.794e-06/0.1325, allocations: 0 / 477.9 MB, free: 7.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.1e-07/0.1325, allocations: 0 / 477.9 MB, free: 7.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.1327, allocations: 322.8 kB / 478.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.791e-06/0.1327, allocations: 3.938 kB / 478.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.034e-05/0.1327, allocations: 0 / 478.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.266e-05/0.1327, allocations: 79.28 kB / 478.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.586e-05/0.1328, allocations: 75.28 kB / 478.4 MB, free: 6.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.678e-05/0.1328, allocations: 29.69 kB / 478.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.312e-05/0.1329, allocations: 83.28 kB / 478.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.931e-05/0.1329, allocations: 83.2 kB / 478.5 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.632e-05/0.133, allocations: 158.5 kB / 478.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.964e-05/0.133, allocations: 75.28 kB / 478.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.368e-05/0.1331, allocations: 158.5 kB / 478.9 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.143e-05/0.1331, allocations: 75.28 kB / 479 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.1332, allocations: 83.38 kB / 479.1 MB, free: 5.816 MB / 350.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.0001147/0.1333, allocations: 264.9 kB / 479.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.094e-05/0.1334, allocations: 105 kB / 479.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.057e-05/0.1334, allocations: 112.1 kB / 479.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.796e-05/0.1335, allocations: 180.2 kB / 479.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.859e-05/0.1335, allocations: 184.2 kB / 479.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.23e-05/0.1336, allocations: 180.2 kB / 480.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002154/0.1338, allocations: 405.2 kB / 480.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.763e-05/0.1339, allocations: 105 kB / 480.6 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.965e-05/0.1339, allocations: 108.9 kB / 480.7 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.9e-05/0.134, allocations: 176.3 kB / 480.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.544e-05/0.1341, allocations: 192.2 kB / 481 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.098e-05/0.1342, allocations: 180.3 kB / 481.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.143e-05/0.1343, allocations: 180.2 kB / 481.4 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001466/0.1344, allocations: 303.8 kB / 481.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.898e-05/0.1345, allocations: 190 kB / 481.9 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.173e-05/0.1346, allocations: 184.3 kB / 482.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.1347, allocations: 104.9 kB / 482.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.195e-05/0.1348, allocations: 180.3 kB / 482.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-05/0.1348, allocations: 101 kB / 482.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.931e-05/0.1349, allocations: 83.22 kB / 482.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1349, allocations: 0 / 482.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004952/0.1354, allocations: 128 kB / 482.6 MB, free: 2.023 MB / 350.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.0007068/0.1361, allocations: 419.5 kB / 483.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 3.86e-05/0.1361, allocations: 0 / 483.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1361, allocations: 0 / 483.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.423e-06/0.1361, allocations: 4 kB / 483.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.1364, allocations: 0.5224 MB / 483.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001396/0.1366, allocations: 146 kB / 483.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002442/0.1369, allocations: 0.6731 MB / 484.4 MB, free: 224 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.704e-06/0.1369, allocations: 0 / 484.4 MB, free: 224 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.281e-05/0.1369, allocations: 11.44 kB / 484.4 MB, free: 212 kB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1369, allocations: 0 / 484.4 MB, free: 212 kB / 350.1 MB Notification: Performance of Templates: time 0.00741/0.1443, allocations: 3.083 MB / 487.5 MB, free: 13.13 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches