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.001171/0.001171, allocations: 109.3 kB / 17.98 MB, free: 4.887 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.001235/0.001236, allocations: 189.3 kB / 18.9 MB, free: 4.141 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.293/1.293, allocations: 222.9 MB / 242.6 MB, free: 15.44 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.197/0.197, allocations: 44.17 MB / 336.9 MB, free: 2.953 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 61.48 kB / 408.5 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1062, allocations: 60.82 MB / 469.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001811/0.108, allocations: 0.5451 MB / 469.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003238/0.1113, allocations: 2.198 MB / 472.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.881e-06/0.1113, allocations: 0 / 472.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.738e-06/0.1114, allocations: 0 / 472.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.142e-06/0.1114, allocations: 0 / 472.1 MB, free: 11.98 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.00229/0.1137, allocations: 0.5674 MB / 472.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.729e-05/0.1137, allocations: 7.938 kB / 472.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.189e-05/0.1138, allocations: 0 / 472.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.947e-05/0.1139, allocations: 23.97 kB / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.058e-05/0.1139, allocations: 4 kB / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.348e-06/0.1139, allocations: 0 / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009652/0.1149, allocations: 0.593 MB / 473.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.492e-06/0.1149, allocations: 0 / 473.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.021e-05/0.1149, allocations: 4 kB / 473.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004752/0.1154, allocations: 295.5 kB / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1154, allocations: 4 kB / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1154, allocations: 0 / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.1154, allocations: 0 / 473.6 MB, free: 10.5 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.0004624/0.1159, allocations: 425.2 kB / 474 MB, free: 10.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.116, allocations: 12.03 kB / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.46e-05/0.116, allocations: 76.22 kB / 474.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.1161, allocations: 239.6 kB / 474.3 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.9e-05/0.1162, allocations: 150.9 kB / 474.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.843e-05/0.1163, allocations: 158.7 kB / 474.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.377e-05/0.1163, allocations: 101 kB / 474.7 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.332e-05/0.1164, allocations: 79.28 kB / 474.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.746e-05/0.1165, allocations: 154.6 kB / 475 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.89e-05/0.1165, allocations: 150.6 kB / 475.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.678e-05/0.1166, allocations: 158.5 kB / 475.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002939/0.1169, allocations: 445.9 kB / 475.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.945e-05/0.117, allocations: 173.1 kB / 475.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.015e-05/0.117, allocations: 84.08 kB / 476 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.1171, allocations: 79.28 kB / 476 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.729e-05/0.1171, allocations: 131.5 kB / 476.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.152e-06/0.1172, allocations: 0 / 476.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.067e-05/0.1172, allocations: 33.64 kB / 476.2 MB, free: 7.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.749e-05/0.1173, allocations: 152.4 kB / 476.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.578e-05/0.1174, allocations: 89.86 kB / 476.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.1174, allocations: 29.69 kB / 476.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.131e-05/0.1174, allocations: 80.14 kB / 476.5 MB, free: 7.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.864e-06/0.1174, allocations: 4 kB / 476.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.45e-05/0.1175, allocations: 21.66 kB / 476.6 MB, free: 7.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.1176, allocations: 314.8 kB / 476.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.558e-06/0.1176, allocations: 0 / 476.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.119e-05/0.1176, allocations: 0 / 476.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.602e-05/0.1177, allocations: 75.28 kB / 476.9 MB, free: 6.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.221e-05/0.1177, allocations: 75.28 kB / 477 MB, free: 6.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.121e-05/0.1178, allocations: 37.58 kB / 477 MB, free: 6.789 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.569e-05/0.1178, allocations: 87.3 kB / 477.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.767e-05/0.1178, allocations: 79.28 kB / 477.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.479e-05/0.1179, allocations: 150.7 kB / 477.4 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.578e-05/0.1179, allocations: 83.23 kB / 477.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.618e-05/0.118, allocations: 154.6 kB / 477.6 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.533e-05/0.1181, allocations: 83.22 kB / 477.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.954e-05/0.1181, allocations: 87.33 kB / 477.8 MB, free: 6.074 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.0001197/0.1183, allocations: 260.4 kB / 478 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.322e-05/0.1183, allocations: 112.9 kB / 478.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.126e-05/0.1184, allocations: 108 kB / 478.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.797e-05/0.1185, allocations: 180.3 kB / 478.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.657e-05/0.1185, allocations: 188.2 kB / 478.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.469e-05/0.1186, allocations: 176.3 kB / 478.8 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.1188, allocations: 401.2 kB / 479.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.364e-05/0.1188, allocations: 108.9 kB / 479.3 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.014e-05/0.1189, allocations: 101 kB / 479.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.413e-05/0.119, allocations: 188.1 kB / 479.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.346e-05/0.119, allocations: 184.2 kB / 479.7 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.815e-05/0.1191, allocations: 184.2 kB / 479.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-05/0.1191, allocations: 176.3 kB / 480.1 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001314/0.1193, allocations: 307.8 kB / 480.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.021e-05/0.1194, allocations: 186 kB / 480.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.515e-05/0.1194, allocations: 188.2 kB / 480.7 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.275e-05/0.1195, allocations: 101 kB / 480.8 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.24e-05/0.1196, allocations: 176.3 kB / 481 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.431e-05/0.1196, allocations: 116.9 kB / 481.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.751e-05/0.1197, allocations: 75.28 kB / 481.2 MB, free: 2.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1197, allocations: 4 kB / 481.2 MB, free: 2.402 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005489/0.1202, allocations: 124 kB / 481.3 MB, free: 2.281 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.0009173/0.1212, allocations: 407.5 kB / 481.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.18e-05/0.1212, allocations: 4 kB / 481.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.1212, allocations: 4 kB / 481.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.014e-06/0.1212, allocations: 0 / 481.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.1216, allocations: 463.6 kB / 482.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000164/0.1218, allocations: 177.9 kB / 482.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.122, allocations: 0.6768 MB / 483 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.511e-05/0.122, allocations: 7.438 kB / 483 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.122, allocations: 3.938 kB / 483 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of Templates: time 0.005362/0.1274, allocations: 2.716 MB / 485.8 MB, free: 13.79 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