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.001075/0.001075, allocations: 110.5 kB / 17.86 MB, free: 5.504 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.001066/0.001067, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.303/1.303, allocations: 222.9 MB / 242.5 MB, free: 13.66 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.2296/0.2296, allocations: 44.17 MB / 336.8 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 60.36 kB / 408.3 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1094, allocations: 60.82 MB / 469.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001781/0.1112, allocations: 0.5488 MB / 469.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003281/0.1146, allocations: 2.287 MB / 472 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.011e-06/0.1146, allocations: 0 / 472 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.258e-06/0.1146, allocations: 0 / 472 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.213e-06/0.1146, allocations: 0 / 472 MB, free: 11.97 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.001895/0.1165, allocations: 0.5126 MB / 472.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.106e-05/0.1166, allocations: 8 kB / 472.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.009e-05/0.1166, allocations: 7.984 kB / 472.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.155e-05/0.1167, allocations: 4 kB / 472.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.443e-05/0.1167, allocations: 7.984 kB / 472.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-06/0.1167, allocations: 4 kB / 472.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009484/0.1177, allocations: 0.5948 MB / 473.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.713e-06/0.1177, allocations: 0 / 473.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.695e-05/0.1177, allocations: 4 kB / 473.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000442/0.1182, allocations: 295.5 kB / 473.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.1182, allocations: 0 / 473.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1182, allocations: 3.938 kB / 473.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1182, allocations: 0 / 473.4 MB, free: 10.54 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.0004077/0.1186, allocations: 421.3 kB / 473.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.1187, allocations: 12.03 kB / 473.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.991e-05/0.1187, allocations: 76.22 kB / 473.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.1188, allocations: 239.6 kB / 474.2 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.737e-05/0.1189, allocations: 158.9 kB / 474.3 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.579e-05/0.119, allocations: 154.7 kB / 474.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.217e-05/0.119, allocations: 104.9 kB / 474.6 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.556e-05/0.1191, allocations: 79.28 kB / 474.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.611e-05/0.1191, allocations: 150.6 kB / 474.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.429e-05/0.1192, allocations: 154.6 kB / 475 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.443e-05/0.1193, allocations: 154.5 kB / 475.1 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002757/0.1196, allocations: 445.9 kB / 475.5 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.454e-05/0.1196, allocations: 173.1 kB / 475.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.213e-05/0.1197, allocations: 84.08 kB / 475.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.1197, allocations: 79.28 kB / 475.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.241e-05/0.1198, allocations: 135.5 kB / 476 MB, free: 7.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.192e-06/0.1198, allocations: 0 / 476 MB, free: 7.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.309e-05/0.1199, allocations: 29.7 kB / 476 MB, free: 7.758 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.051e-05/0.12, allocations: 156.4 kB / 476.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.195e-05/0.12, allocations: 89.86 kB / 476.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.12, allocations: 29.7 kB / 476.3 MB, free: 7.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.035e-05/0.1201, allocations: 84.12 kB / 476.4 MB, free: 7.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.733e-06/0.1201, allocations: 0 / 476.4 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/0.1201, allocations: 13.72 kB / 476.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1202, allocations: 314.8 kB / 476.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.27e-06/0.1202, allocations: 0 / 476.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.173e-05/0.1203, allocations: 0 / 476.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.696e-05/0.1203, allocations: 75.28 kB / 476.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.919e-05/0.1203, allocations: 79.31 kB / 476.9 MB, free: 6.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.726e-05/0.1204, allocations: 37.58 kB / 476.9 MB, free: 6.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.479e-05/0.1204, allocations: 79.28 kB / 477 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.833e-05/0.1205, allocations: 83.27 kB / 477.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.275e-05/0.1205, allocations: 158.5 kB / 477.2 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.418e-05/0.1206, allocations: 75.28 kB / 477.3 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.823e-05/0.1206, allocations: 150.6 kB / 477.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.39e-05/0.1207, allocations: 91.27 kB / 477.5 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.1207, allocations: 75.44 kB / 477.6 MB, free: 6.133 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.000113/0.1209, allocations: 260.4 kB / 477.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.343e-05/0.1209, allocations: 120.9 kB / 478 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.187e-05/0.121, allocations: 108 kB / 478.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.205e-05/0.1211, allocations: 184.2 kB / 478.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.04e-05/0.1211, allocations: 184.3 kB / 478.4 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.846e-05/0.1212, allocations: 176.3 kB / 478.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002389/0.1214, allocations: 409.1 kB / 479 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.613e-05/0.1215, allocations: 108.9 kB / 479.1 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.024e-05/0.1215, allocations: 104.9 kB / 479.2 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.584e-05/0.1216, allocations: 180.3 kB / 479.4 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.837e-05/0.1217, allocations: 180.2 kB / 479.6 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-05/0.1217, allocations: 188.1 kB / 479.7 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.436e-05/0.1218, allocations: 176.3 kB / 479.9 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000134/0.122, allocations: 307.8 kB / 480.2 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.876e-05/0.122, allocations: 190 kB / 480.4 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.632e-05/0.1221, allocations: 184.2 kB / 480.6 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.561e-05/0.1222, allocations: 105 kB / 480.7 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.22e-05/0.1223, allocations: 180.2 kB / 480.9 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.419e-05/0.1223, allocations: 105 kB / 481 MB, free: 2.531 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.793e-05/0.1224, allocations: 83.28 kB / 481 MB, free: 2.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1224, allocations: 0 / 481 MB, free: 2.449 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005122/0.1229, allocations: 124 kB / 481.2 MB, free: 2.328 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.0008114/0.1237, allocations: 403.8 kB / 481.6 MB, free: 1.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 4.318e-05/0.1238, allocations: 7.938 kB / 481.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1238, allocations: 0 / 481.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.126e-06/0.1238, allocations: 7.938 kB / 481.6 MB, free: 1.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003575/0.1241, allocations: 0.5221 MB / 482.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001481/0.1243, allocations: 175.7 kB / 482.3 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.1245, allocations: 0.6692 MB / 482.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.07e-05/0.1246, allocations: 15.38 kB / 483 MB, free: 492 kB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1246, allocations: 0 / 483 MB, free: 492 kB / 350.1 MB Notification: Performance of Templates: time 0.004941/0.1295, allocations: 2.707 MB / 485.7 MB, free: 13.77 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