Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 103.6 kB / 21.19 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002127/0.002127, allocations: 207.6 kB / 24.48 MB, free: 3.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.588/1.588, allocations: 230.6 MB / 258.2 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2438/0.2438, allocations: 46.97 MB / 361.6 MB, free: 4.051 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002138/0.002138, allocations: 67.89 kB / 0.4973 GB, free: 7.254 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/0.4019, allocations: 66.03 MB / 0.5618 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.00192/0.4039, allocations: 493 kB / 0.5623 GB, free: 3.723 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003688/0.4075, allocations: 2.171 MB / 0.5644 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.16e-06/0.4076, allocations: 0 / 0.5644 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.03e-06/0.4076, allocations: 0 / 0.5644 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.814e-06/0.4076, allocations: 3.938 kB / 0.5644 GB, free: 1.531 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Nonlinear.mo:8:5-88: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.1.0+maint.om/Math/Nonlinear.mo:90:5-160: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.1.0+maint.om/Math/Nonlinear.mo:162:5-239: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.1.0+maint.om/Math/Nonlinear.mo:241:5-319: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.002281/0.4098, allocations: 0.6381 MB / 0.565 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.61e-05/0.4099, allocations: 11.98 kB / 0.565 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.019e-05/0.4099, allocations: 0 / 0.565 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.4101, allocations: 11.98 kB / 0.565 GB, free: 0.875 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.559e-05/0.4101, allocations: 4 kB / 0.565 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.33e-06/0.4101, allocations: 0 / 0.565 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00116/0.4113, allocations: 0.6476 MB / 0.5657 GB, free: 228 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.306e-06/0.4113, allocations: 0 / 0.5657 GB, free: 228 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.023e-05/0.4113, allocations: 7.984 kB / 0.5657 GB, free: 220 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007153/0.412, allocations: 449.8 kB / 0.5661 GB, free: 15.78 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.412, allocations: 0 / 0.5661 GB, free: 15.78 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.412, allocations: 0 / 0.5661 GB, free: 15.78 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.4121, allocations: 0 / 0.5661 GB, free: 15.78 MB / 414.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.0004803/0.4125, allocations: 355.3 kB / 0.5665 GB, free: 15.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.4126, allocations: 12.03 kB / 0.5665 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.431e-05/0.4127, allocations: 76.22 kB / 0.5665 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.4128, allocations: 181.8 kB / 0.5667 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.254e-05/0.4129, allocations: 154.9 kB / 0.5669 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.91e-05/0.4129, allocations: 154.7 kB / 0.567 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.032e-05/0.413, allocations: 105 kB / 0.5671 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.614e-05/0.4131, allocations: 79.28 kB / 0.5672 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.437e-05/0.4132, allocations: 158.5 kB / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.026e-05/0.4132, allocations: 154.5 kB / 0.5675 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.658e-05/0.4133, allocations: 150.6 kB / 0.5676 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002724/0.4136, allocations: 393.6 kB / 0.568 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001022/0.4137, allocations: 169.1 kB / 0.5682 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4e-05/0.4137, allocations: 84.14 kB / 0.5682 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.787e-05/0.4138, allocations: 83.22 kB / 0.5683 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001013/0.4139, allocations: 135.5 kB / 0.5684 GB, free: 13.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.192e-06/0.4139, allocations: 0 / 0.5684 GB, free: 13.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.58e-05/0.4139, allocations: 25.7 kB / 0.5685 GB, free: 13.22 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.89e-05/0.414, allocations: 160.4 kB / 0.5686 GB, free: 13.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.841e-05/0.4141, allocations: 89.86 kB / 0.5687 GB, free: 12.95 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.4141, allocations: 25.7 kB / 0.5687 GB, free: 12.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.636e-05/0.4142, allocations: 80.14 kB / 0.5688 GB, free: 12.83 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.004e-06/0.4142, allocations: 0 / 0.5688 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/0.4142, allocations: 25.66 kB / 0.5688 GB, free: 12.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4143, allocations: 314.8 kB / 0.5691 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.492e-06/0.4143, allocations: 0 / 0.5691 GB, free: 12.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.702e-05/0.4144, allocations: 25.7 kB / 0.5692 GB, free: 12.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.845e-05/0.4144, allocations: 83.22 kB / 0.5692 GB, free: 12.37 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.972e-05/0.4144, allocations: 75.28 kB / 0.5693 GB, free: 12.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.121e-05/0.4145, allocations: 33.75 kB / 0.5693 GB, free: 12.26 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.147e-05/0.4146, allocations: 87.22 kB / 0.5694 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.124e-05/0.4146, allocations: 75.28 kB / 0.5695 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.607e-05/0.4147, allocations: 154.5 kB / 0.5696 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.873e-05/0.4147, allocations: 79.28 kB / 0.5697 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.812e-05/0.4148, allocations: 162.5 kB / 0.5699 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.915e-05/0.4149, allocations: 75.28 kB / 0.5699 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.093e-05/0.4149, allocations: 83.33 kB / 0.57 GB, free: 11.55 MB / 414.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.0001488/0.4151, allocations: 260.4 kB / 0.5703 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.996e-05/0.4151, allocations: 112.9 kB / 0.5704 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.657e-05/0.4152, allocations: 107.8 kB / 0.5705 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001068/0.4153, allocations: 188.2 kB / 0.5707 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001162/0.4154, allocations: 176.3 kB / 0.5708 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.011e-05/0.4155, allocations: 180.2 kB / 0.571 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002502/0.4158, allocations: 356.8 kB / 0.5713 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.287e-05/0.4159, allocations: 105 kB / 0.5714 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.444e-05/0.4159, allocations: 108.9 kB / 0.5716 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001214/0.416, allocations: 184.2 kB / 0.5717 GB, free: 9.703 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.702e-05/0.4161, allocations: 180.2 kB / 0.5719 GB, free: 9.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.727e-05/0.4162, allocations: 184.2 kB / 0.5721 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-05/0.4163, allocations: 176.3 kB / 0.5722 GB, free: 9.152 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001754/0.4165, allocations: 311.7 kB / 0.5725 GB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.4166, allocations: 112.9 kB / 0.5726 GB, free: 8.707 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.4167, allocations: 184.2 kB / 0.5728 GB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.4168, allocations: 105 kB / 0.5729 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.4169, allocations: 184.2 kB / 0.5731 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.688e-05/0.4169, allocations: 109 kB / 0.5732 GB, free: 8.109 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.929e-05/0.417, allocations: 75.28 kB / 0.5733 GB, free: 8.035 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.417, allocations: 4 kB / 0.5733 GB, free: 8.031 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006199/0.4176, allocations: 131.6 kB / 0.5734 GB, free: 7.902 MB / 414.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.0009973/0.4186, allocations: 418.6 kB / 0.5738 GB, free: 7.492 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.27e-05/0.4187, allocations: 3.938 kB / 0.5738 GB, free: 7.488 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.4187, allocations: 4 kB / 0.5738 GB, free: 7.484 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.913e-06/0.4187, allocations: 0 / 0.5738 GB, free: 7.484 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004112/0.4191, allocations: 458.4 kB / 0.5742 GB, free: 7.035 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002297/0.4193, allocations: 182 kB / 0.5744 GB, free: 6.824 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.123e-05/0.4194, allocations: 55.34 kB / 0.5745 GB, free: 6.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.707e-05/0.4194, allocations: 7.438 kB / 0.5745 GB, free: 6.742 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4194, allocations: 0 / 0.5745 GB, free: 6.742 MB / 414.1 MB Notification: Performance of Templates: time 0.005629/0.425, allocations: 2.844 MB / 0.5773 GB, free: 3.898 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.390181412920356]