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.0008108/0.0008108, allocations: 95.17 kB / 18 MB, free: 5.609 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.0009073/0.0009071, allocations: 176.6 kB / 18.91 MB, free: 4.738 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.338/1.338, allocations: 223.3 MB / 243 MB, free: 168 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1993/0.1993, allocations: 44.25 MB / 338.3 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002924/0.0002924, allocations: 11.98 kB / 411 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1121, allocations: 61.92 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0005869/0.1127, allocations: 209.4 kB / 473.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003376/0.1161, allocations: 2.257 MB / 475.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.712e-06/0.1162, allocations: 0 / 475.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.108e-06/0.1162, allocations: 0 / 475.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.061e-06/0.1162, allocations: 0 / 475.4 MB, free: 10.86 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.002121/0.1183, allocations: 0.5249 MB / 475.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.891e-05/0.1184, allocations: 4 kB / 475.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.68e-05/0.1184, allocations: 7.984 kB / 475.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.451e-05/0.1185, allocations: 15.92 kB / 475.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.927e-05/0.1185, allocations: 4 kB / 475.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.969e-06/0.1186, allocations: 0 / 475.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001085/0.1196, allocations: 0.593 MB / 476.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.735e-06/0.1197, allocations: 0 / 476.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.327e-05/0.1197, allocations: 33.69 kB / 476.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005314/0.1202, allocations: 295.5 kB / 476.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1203, allocations: 0 / 476.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1203, allocations: 0 / 476.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.1203, allocations: 0 / 476.8 MB, free: 9.379 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.0004658/0.1207, allocations: 417.3 kB / 477.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.1208, allocations: 8.031 kB / 477.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.717e-05/0.1209, allocations: 76.22 kB / 477.3 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.121, allocations: 239.7 kB / 477.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.959e-05/0.121, allocations: 158.9 kB / 477.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.798e-05/0.1211, allocations: 158.7 kB / 477.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.511e-05/0.1212, allocations: 104.9 kB / 478 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.1212, allocations: 75.28 kB / 478 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.283e-05/0.1213, allocations: 150.6 kB / 478.2 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.317e-05/0.1214, allocations: 154.6 kB / 478.3 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.395e-05/0.1214, allocations: 150.6 kB / 478.5 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003023/0.1217, allocations: 446 kB / 478.9 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.785e-05/0.1218, allocations: 173 kB / 479.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.731e-05/0.1219, allocations: 84.08 kB / 479.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.1219, allocations: 83.27 kB / 479.3 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.413e-05/0.122, allocations: 131.5 kB / 479.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.233e-06/0.122, allocations: 4 kB / 479.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.486e-05/0.1221, allocations: 25.7 kB / 479.4 MB, free: 6.605 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.087e-05/0.1222, allocations: 164.3 kB / 479.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.623e-05/0.1222, allocations: 89.86 kB / 479.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.1222, allocations: 29.7 kB / 479.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.611e-05/0.1223, allocations: 84.14 kB / 479.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.104e-06/0.1223, allocations: 0 / 479.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.783e-05/0.1223, allocations: 9.719 kB / 479.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1224, allocations: 310.8 kB / 480.1 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.858e-06/0.1225, allocations: 0 / 480.1 MB, free: 5.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.235e-05/0.1225, allocations: 0 / 480.1 MB, free: 5.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.613e-05/0.1225, allocations: 79.28 kB / 480.2 MB, free: 5.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.444e-05/0.1226, allocations: 79.27 kB / 480.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.726e-05/0.1226, allocations: 33.67 kB / 480.3 MB, free: 5.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.098e-05/0.1227, allocations: 85.94 kB / 480.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.101e-05/0.1227, allocations: 79.22 kB / 480.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.792e-05/0.1228, allocations: 154.6 kB / 480.6 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.187e-05/0.1228, allocations: 79.22 kB / 480.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.953e-05/0.1229, allocations: 154.6 kB / 480.8 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.161e-05/0.123, allocations: 79.33 kB / 480.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-05/0.123, allocations: 87.36 kB / 481 MB, free: 4.977 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.0001306/0.1232, allocations: 260.4 kB / 481.2 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.166e-05/0.1232, allocations: 112.9 kB / 481.3 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.007e-05/0.1233, allocations: 112 kB / 481.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.313e-05/0.1234, allocations: 180.3 kB / 481.6 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.906e-05/0.1234, allocations: 180.2 kB / 481.8 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.751e-05/0.1235, allocations: 180.2 kB / 482 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002465/0.1238, allocations: 401.2 kB / 482.4 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.114e-05/0.1238, allocations: 108.9 kB / 482.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.98e-05/0.1239, allocations: 105 kB / 482.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-05/0.124, allocations: 180.3 kB / 482.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.501e-05/0.124, allocations: 184.2 kB / 482.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.179e-05/0.1241, allocations: 184.2 kB / 483.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.919e-05/0.1242, allocations: 180.2 kB / 483.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001538/0.1243, allocations: 311.8 kB / 483.6 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.146e-05/0.1244, allocations: 186 kB / 483.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.234e-05/0.1245, allocations: 184.3 kB / 484 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.837e-05/0.1246, allocations: 108.9 kB / 484.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.224e-05/0.1247, allocations: 184.2 kB / 484.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.789e-05/0.1247, allocations: 101 kB / 484.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.454e-05/0.1248, allocations: 83.22 kB / 484.4 MB, free: 1.301 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1248, allocations: 0 / 484.4 MB, free: 1.301 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005582/0.1254, allocations: 132 kB / 484.6 MB, free: 1.172 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.0009524/0.1263, allocations: 404.7 kB / 485 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 4.503e-05/0.1264, allocations: 8 kB / 485 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1264, allocations: 0 / 485 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.724e-06/0.1264, allocations: 0 / 485 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003691/0.1268, allocations: 0.53 MB / 485.5 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001678/0.1269, allocations: 175.7 kB / 485.7 MB, free: 36 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.1272, allocations: 0.6692 MB / 486.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.68e-05/0.1272, allocations: 11.38 kB / 486.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1272, allocations: 0 / 486.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of Templates: time 0.005504/0.1328, allocations: 2.702 MB / 489 MB, free: 12.62 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/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_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches