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.001935/0.001935, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 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.001855/0.001855, allocations: 169.5 kB / 24.5 MB, free: 3.453 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.489/1.489, allocations: 177.2 MB / 204.9 MB, free: 8.922 MB / 190.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.2137/0.2137, allocations: 34.27 MB / 295.5 MB, free: 14.57 MB / 286.1 MB " [Timeout remaining time 180] 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.002342/0.002342, allocations: 63.89 kB / 443.1 MB, free: 6.684 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3474, allocations: 66.02 MB / 0.4972 GB, free: 29.86 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.00134/0.3487, allocations: 496.1 kB / 0.4977 GB, free: 29.56 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002557/0.3513, allocations: 2.175 MB / 0.4998 GB, free: 28.11 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.238e-06/0.3513, allocations: 0 / 0.4998 GB, free: 28.11 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 9.438e-06/0.3513, allocations: 0 / 0.4998 GB, free: 28.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 1.293e-06/0.3513, allocations: 0 / 0.4998 GB, free: 28.11 MB / 446.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.001939/0.3532, allocations: 0.6282 MB / 0.5004 GB, free: 27.84 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.287e-05/0.3533, allocations: 11.2 kB / 0.5004 GB, free: 27.83 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.189e-05/0.3533, allocations: 0 / 0.5004 GB, free: 27.83 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001438/0.3535, allocations: 25.12 kB / 0.5005 GB, free: 27.82 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.223e-05/0.3535, allocations: 7.172 kB / 0.5005 GB, free: 27.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.691e-06/0.3535, allocations: 0 / 0.5005 GB, free: 27.82 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009195/0.3544, allocations: 0.6425 MB / 0.5011 GB, free: 27.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.778e-06/0.3544, allocations: 0 / 0.5011 GB, free: 27.64 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.561e-05/0.3545, allocations: 7.141 kB / 0.5011 GB, free: 27.63 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000512/0.355, allocations: 444 kB / 0.5015 GB, free: 27.51 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.355, allocations: 3.062 kB / 0.5015 GB, free: 27.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.355, allocations: 0 / 0.5015 GB, free: 27.51 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.355, allocations: 0 / 0.5015 GB, free: 27.51 MB / 446.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.000333/0.3553, allocations: 352.1 kB / 0.5019 GB, free: 27.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.3554, allocations: 12 kB / 0.5019 GB, free: 27.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.912e-05/0.3554, allocations: 76.22 kB / 0.502 GB, free: 27.1 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.811e-05/0.3555, allocations: 181.8 kB / 0.5021 GB, free: 26.9 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.3555, allocations: 162 kB / 0.5023 GB, free: 26.74 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/0.3555, allocations: 154.7 kB / 0.5024 GB, free: 26.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.059e-05/0.3556, allocations: 101 kB / 0.5025 GB, free: 26.48 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.3556, allocations: 82.09 kB / 0.5026 GB, free: 26.41 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.3556, allocations: 150.6 kB / 0.5027 GB, free: 26.26 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.3556, allocations: 150.6 kB / 0.5029 GB, free: 26.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.573e-05/0.3557, allocations: 153.6 kB / 0.503 GB, free: 25.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001619/0.3558, allocations: 404.2 kB / 0.5034 GB, free: 25.54 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.634e-05/0.3559, allocations: 165.1 kB / 0.5036 GB, free: 25.37 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.938e-05/0.3559, allocations: 80.14 kB / 0.5037 GB, free: 25.29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.3559, allocations: 82.31 kB / 0.5037 GB, free: 25.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.3559, allocations: 135.5 kB / 0.5039 GB, free: 25.06 MB / 446.1 MB Notification: Performance of pre-optimization done (n=0): time 8.81e-07/0.3559, allocations: 0 / 0.5039 GB, free: 25.06 MB / 446.1 MB Notification: Performance of matching and sorting (n=0): time 6.998e-05/0.356, allocations: 32.61 kB / 0.5039 GB, free: 25.03 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.3561, allocations: 152.4 kB / 0.504 GB, free: 24.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.906e-05/0.3561, allocations: 96.77 kB / 0.5041 GB, free: 24.76 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.536e-06/0.3561, allocations: 28.83 kB / 0.5042 GB, free: 24.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.984e-05/0.3561, allocations: 80.14 kB / 0.5042 GB, free: 24.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.164e-06/0.3561, allocations: 0 / 0.5042 GB, free: 24.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.028e-05/0.3561, allocations: 13 kB / 0.5042 GB, free: 24.63 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.936e-05/0.3562, allocations: 314 kB / 0.5045 GB, free: 24.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.378e-06/0.3562, allocations: 4 kB / 0.5046 GB, free: 24.31 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.691e-05/0.3562, allocations: 25.7 kB / 0.5046 GB, free: 24.28 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.485e-05/0.3562, allocations: 81.92 kB / 0.5047 GB, free: 24.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/0.3562, allocations: 75.28 kB / 0.5047 GB, free: 24.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.732e-05/0.3563, allocations: 41.03 kB / 0.5048 GB, free: 24.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.3563, allocations: 82.34 kB / 0.5048 GB, free: 24.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.3563, allocations: 78.44 kB / 0.5049 GB, free: 23.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.745e-05/0.3564, allocations: 158.5 kB / 0.5051 GB, free: 23.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.2e-05/0.3564, allocations: 79.22 kB / 0.5051 GB, free: 23.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.532e-05/0.3564, allocations: 157.2 kB / 0.5053 GB, free: 23.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.748e-05/0.3564, allocations: 83.25 kB / 0.5054 GB, free: 23.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.3565, allocations: 82.58 kB / 0.5055 GB, free: 23.39 MB / 446.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 6.595e-05/0.3565, allocations: 259.6 kB / 0.5057 GB, free: 23.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.402e-05/0.3566, allocations: 108.9 kB / 0.5058 GB, free: 23.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.797e-05/0.3566, allocations: 118.5 kB / 0.5059 GB, free: 22.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.533e-05/0.3566, allocations: 176.3 kB / 0.5061 GB, free: 22.72 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.84e-05/0.3567, allocations: 180.2 kB / 0.5063 GB, free: 22.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.598e-05/0.3567, allocations: 179.6 kB / 0.5064 GB, free: 22.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.3568, allocations: 355.4 kB / 0.5068 GB, free: 21.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.147e-05/0.3568, allocations: 112.9 kB / 0.5069 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.749e-05/0.3568, allocations: 105 kB / 0.507 GB, free: 21.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.681e-05/0.3569, allocations: 183.2 kB / 0.5071 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.155e-05/0.3569, allocations: 180.2 kB / 0.5073 GB, free: 21.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.682e-05/0.3569, allocations: 182.6 kB / 0.5075 GB, free: 21.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.817e-05/0.3569, allocations: 180.2 kB / 0.5077 GB, free: 21.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.35e-05/0.357, allocations: 305.8 kB / 0.508 GB, free: 20.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.751e-05/0.357, allocations: 107.7 kB / 0.5081 GB, free: 20.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.662e-05/0.3571, allocations: 184.2 kB / 0.5082 GB, free: 20.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.398e-05/0.3571, allocations: 111.9 kB / 0.5083 GB, free: 20.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.706e-05/0.3572, allocations: 176.3 kB / 0.5085 GB, free: 20.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.3572, allocations: 111.7 kB / 0.5086 GB, free: 20.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.414e-05/0.3572, allocations: 79.28 kB / 0.5087 GB, free: 19.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3572, allocations: 0 / 0.5087 GB, free: 19.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004388/0.3576, allocations: 137.2 kB / 0.5088 GB, free: 19.91 MB / 446.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.0006698/0.3583, allocations: 405.7 kB / 0.5092 GB, free: 19.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 4.921e-05/0.3583, allocations: 3.062 kB / 0.5092 GB, free: 19.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3583, allocations: 4 kB / 0.5092 GB, free: 19.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.272e-06/0.3583, allocations: 3.938 kB / 0.5092 GB, free: 19.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.3586, allocations: 464.9 kB / 0.5097 GB, free: 19.24 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001125/0.3587, allocations: 157 kB / 0.5098 GB, free: 19.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.131e-05/0.3587, allocations: 58.12 kB / 0.5099 GB, free: 19 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.692e-06/0.3587, allocations: 0 / 0.5099 GB, free: 19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.116e-05/0.3588, allocations: 8.5 kB / 0.5099 GB, free: 18.99 MB / 446.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3588, allocations: 0 / 0.5099 GB, free: 18.99 MB / 446.1 MB Notification: Performance of Templates: time 0.006962/0.3657, allocations: 3.277 MB / 0.5131 GB, free: 18.66 MB / 446.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 -s ida -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: 4.992501960950904]