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.001135/0.001136, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001086/0.001086, allocations: 191 kB / 19.34 MB, free: 3.641 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.363/1.363, allocations: 222.9 MB / 243 MB, free: 15.09 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.212/0.212, allocations: 44.19 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 61.19 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1092, allocations: 60.83 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001556/0.1108, allocations: 490.2 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002843/0.1137, allocations: 2.186 MB / 473.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.03e-06/0.1137, allocations: 0 / 473.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.778e-06/0.1137, allocations: 0 / 473.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.152e-06/0.1137, allocations: 0 / 473.4 MB, free: 11 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.002107/0.1158, allocations: 0.6288 MB / 474 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.615e-05/0.1159, allocations: 4 kB / 474 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.825e-05/0.1159, allocations: 0 / 474 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.234e-05/0.116, allocations: 4 kB / 474 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.391e-05/0.116, allocations: 7.984 kB / 474 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-06/0.116, allocations: 0 / 474 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009466/0.117, allocations: 0.6514 MB / 474.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.931e-06/0.117, allocations: 0 / 474.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.666e-05/0.117, allocations: 4 kB / 474.7 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000562/0.1176, allocations: 427.4 kB / 475.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1176, allocations: 0 / 475.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1176, allocations: 0 / 475.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.1176, allocations: 0 / 475.1 MB, free: 9.277 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.0003674/0.118, allocations: 429.2 kB / 475.5 MB, free: 8.805 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.118, allocations: 8.031 kB / 475.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.009e-05/0.1181, allocations: 80.22 kB / 475.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.1182, allocations: 235.7 kB / 475.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.133e-05/0.1183, allocations: 150.9 kB / 476 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.036e-05/0.1183, allocations: 158.7 kB / 476.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.639e-05/0.1184, allocations: 101 kB / 476.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.1184, allocations: 79.22 kB / 476.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.65e-05/0.1185, allocations: 154.6 kB / 476.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.945e-05/0.1185, allocations: 150.6 kB / 476.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.291e-05/0.1186, allocations: 154.6 kB / 476.7 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002681/0.1189, allocations: 445.9 kB / 477.2 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.259e-05/0.1189, allocations: 169.1 kB / 477.3 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.618e-05/0.119, allocations: 92.06 kB / 477.4 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.456e-05/0.119, allocations: 79.28 kB / 477.5 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.456e-05/0.1191, allocations: 135.5 kB / 477.6 MB, free: 6.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.42e-07/0.1191, allocations: 0 / 477.6 MB, free: 6.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.99e-05/0.1192, allocations: 29.7 kB / 477.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/0.1192, allocations: 156.4 kB / 477.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.111e-05/0.1193, allocations: 89.86 kB / 477.9 MB, free: 6.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.1193, allocations: 25.7 kB / 477.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.051e-05/0.1193, allocations: 88.12 kB / 478 MB, free: 6.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.624e-06/0.1193, allocations: 0 / 478 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/0.1194, allocations: 17.7 kB / 478 MB, free: 6.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.681e-05/0.1195, allocations: 314.8 kB / 478.4 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.17e-06/0.1195, allocations: 3.938 kB / 478.4 MB, free: 5.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.925e-05/0.1195, allocations: 4 kB / 478.4 MB, free: 5.754 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.747e-05/0.1195, allocations: 79.28 kB / 478.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-05/0.1196, allocations: 79.22 kB / 478.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.196e-05/0.1196, allocations: 29.64 kB / 478.5 MB, free: 5.562 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.627e-05/0.1197, allocations: 83.28 kB / 478.6 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.867e-05/0.1197, allocations: 83.27 kB / 478.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.838e-05/0.1198, allocations: 154.5 kB / 478.9 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.813e-05/0.1198, allocations: 79.31 kB / 478.9 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.069e-05/0.1199, allocations: 158.5 kB / 479.1 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.656e-05/0.12, allocations: 79.22 kB / 479.2 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.433e-05/0.12, allocations: 79.28 kB / 479.2 MB, free: 4.855 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.000106/0.1201, allocations: 264.3 kB / 479.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.353e-05/0.1202, allocations: 112.9 kB / 479.6 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.989e-05/0.1202, allocations: 108.1 kB / 479.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.673e-05/0.1203, allocations: 180.2 kB / 479.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.544e-05/0.1204, allocations: 180.3 kB / 480.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.337e-05/0.1204, allocations: 180.2 kB / 480.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002113/0.1206, allocations: 401.2 kB / 480.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.424e-05/0.1207, allocations: 112.9 kB / 480.7 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.693e-05/0.1207, allocations: 104.9 kB / 480.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.151e-05/0.1208, allocations: 176.3 kB / 481 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.72e-05/0.1209, allocations: 192.2 kB / 481.2 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.822e-05/0.121, allocations: 176.3 kB / 481.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-05/0.121, allocations: 180.3 kB / 481.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001265/0.1212, allocations: 303.8 kB / 481.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.8e-05/0.1212, allocations: 190 kB / 482 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.092e-05/0.1213, allocations: 180.3 kB / 482.2 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.536e-05/0.1214, allocations: 101 kB / 482.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.618e-05/0.1214, allocations: 192.2 kB / 482.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-05/0.1215, allocations: 101 kB / 482.6 MB, free: 1.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.644e-05/0.1215, allocations: 79.27 kB / 482.7 MB, free: 1.191 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1215, allocations: 0 / 482.7 MB, free: 1.191 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004715/0.122, allocations: 132 kB / 482.8 MB, free: 1.062 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.0007433/0.1227, allocations: 408.2 kB / 483.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 4.338e-05/0.1228, allocations: 7.938 kB / 483.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.1228, allocations: 0 / 483.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.372e-06/0.1228, allocations: 0 / 483.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003007/0.1231, allocations: 474 kB / 483.7 MB, free: 200 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001283/0.1233, allocations: 152.2 kB / 483.8 MB, free: 20 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.1235, allocations: 0.669 MB / 484.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.681e-06/0.1235, allocations: 0 / 484.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.266e-05/0.1235, allocations: 11.44 kB / 484.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1235, allocations: 0 / 484.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of Templates: time 0.006712/0.1302, allocations: 3.069 MB / 487.6 MB, free: 12.25 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 -s gbode -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