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.001188/0.001188, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001195/0.001195, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.296/1.296, allocations: 222.9 MB / 242.2 MB, free: 15.21 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.2037/0.2037, allocations: 44.17 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 58.19 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1222, allocations: 60.82 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001763/0.124, allocations: 495.3 kB / 469.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.127, allocations: 2.182 MB / 471.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.35e-06/0.127, allocations: 0 / 471.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.169e-06/0.1271, allocations: 0 / 471.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.243e-06/0.1271, allocations: 0 / 471.9 MB, free: 11.69 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.002161/0.1292, allocations: 0.6329 MB / 472.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.822e-05/0.1293, allocations: 4 kB / 472.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.796e-05/0.1293, allocations: 0 / 472.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.076e-05/0.1294, allocations: 11.92 kB / 472.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.288e-05/0.1294, allocations: 11.98 kB / 472.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.25e-06/0.1295, allocations: 0 / 472.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009803/0.1304, allocations: 0.593 MB / 473.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.446e-06/0.1305, allocations: 3.984 kB / 473.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.372e-05/0.1305, allocations: 4 kB / 473.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007527/0.1313, allocations: 431.4 kB / 473.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1313, allocations: 0 / 473.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1313, allocations: 0 / 473.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1313, allocations: 0 / 473.6 MB, free: 10.01 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.0004275/0.1317, allocations: 417.3 kB / 474 MB, free: 9.551 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.1318, allocations: 12.03 kB / 474 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.161e-05/0.1318, allocations: 76.22 kB / 474.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.1319, allocations: 247.6 kB / 474.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.184e-05/0.132, allocations: 150.9 kB / 474.5 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.542e-05/0.1321, allocations: 154.7 kB / 474.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.012e-05/0.1321, allocations: 101 kB / 474.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.781e-05/0.1322, allocations: 79.28 kB / 474.8 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.38e-05/0.1322, allocations: 150.6 kB / 474.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.622e-05/0.1323, allocations: 154.6 kB / 475.1 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.171e-05/0.1323, allocations: 154.5 kB / 475.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002804/0.1326, allocations: 445.9 kB / 475.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.609e-05/0.1327, allocations: 169.1 kB / 475.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.319e-05/0.1327, allocations: 88.08 kB / 475.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.1328, allocations: 79.31 kB / 476 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.757e-05/0.1328, allocations: 139.5 kB / 476.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.092e-06/0.1329, allocations: 3.938 kB / 476.1 MB, free: 7.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.665e-05/0.1329, allocations: 37.64 kB / 476.2 MB, free: 7.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.08e-05/0.133, allocations: 152.4 kB / 476.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.344e-05/0.1331, allocations: 93.86 kB / 476.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.338e-05/0.1331, allocations: 25.7 kB / 476.5 MB, free: 6.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.233e-05/0.1331, allocations: 80.14 kB / 476.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.744e-06/0.1331, allocations: 0 / 476.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.811e-05/0.1332, allocations: 13.72 kB / 476.5 MB, free: 6.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1333, allocations: 318.8 kB / 476.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.04e-06/0.1333, allocations: 0 / 476.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.558e-05/0.1333, allocations: 0 / 476.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.817e-05/0.1333, allocations: 79.31 kB / 476.9 MB, free: 6.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.49e-05/0.1334, allocations: 75.28 kB / 477 MB, free: 6.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.14e-05/0.1334, allocations: 41.58 kB / 477 MB, free: 6.297 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.332e-05/0.1335, allocations: 79.28 kB / 477.1 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.442e-05/0.1335, allocations: 79.28 kB / 477.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.75e-05/0.1336, allocations: 150.6 kB / 477.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.281e-05/0.1336, allocations: 79.22 kB / 477.4 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.678e-05/0.1337, allocations: 158.5 kB / 477.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.46e-05/0.1337, allocations: 83.22 kB / 477.7 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.1338, allocations: 75.28 kB / 477.7 MB, free: 5.602 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.1339, allocations: 264.4 kB / 478 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.537e-05/0.134, allocations: 104.9 kB / 478.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.738e-05/0.134, allocations: 112 kB / 478.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-05/0.1341, allocations: 184.2 kB / 478.4 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-05/0.1341, allocations: 184.2 kB / 478.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.684e-05/0.1342, allocations: 180.3 kB / 478.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000213/0.1344, allocations: 401.2 kB / 479.1 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.685e-05/0.1345, allocations: 112.9 kB / 479.2 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.539e-05/0.1345, allocations: 105 kB / 479.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.669e-05/0.1346, allocations: 184.1 kB / 479.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-05/0.1346, allocations: 176.3 kB / 479.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.778e-05/0.1347, allocations: 188.2 kB / 479.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.165e-05/0.1348, allocations: 180.2 kB / 480.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001336/0.1349, allocations: 303.8 kB / 480.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.118e-05/0.135, allocations: 186 kB / 480.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.603e-05/0.1351, allocations: 188.2 kB / 480.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.565e-05/0.1352, allocations: 101 kB / 480.8 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.518e-05/0.1352, allocations: 180.2 kB / 481 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.722e-05/0.1353, allocations: 108.9 kB / 481.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.694e-05/0.1353, allocations: 79.28 kB / 481.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1353, allocations: 0 / 481.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005278/0.1359, allocations: 135.9 kB / 481.3 MB, free: 1.797 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 (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.0008665/0.1367, allocations: 406.2 kB / 481.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.314e-05/0.1368, allocations: 0.5156 kB / 481.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.1368, allocations: 4 kB / 481.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.683e-06/0.1368, allocations: 0 / 481.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/0.1371, allocations: 467.5 kB / 482.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001682/0.1373, allocations: 156.2 kB / 482.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.1376, allocations: 0.669 MB / 483 MB, free: 68 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.648e-06/0.1376, allocations: 7.922 kB / 483 MB, free: 60 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.273e-05/0.1376, allocations: 7.438 kB / 483 MB, free: 52 kB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1376, allocations: 0 / 483 MB, free: 52 kB / 350.1 MB Notification: Performance of Templates: time 0.007499/0.1451, allocations: 3.067 MB / 486.1 MB, free: 12.99 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches