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.001671/0.001671, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.002954/0.002954, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.537/1.537, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.2354/0.2354, allocations: 46.93 MB / 360.8 MB, free: 4.293 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.002158/0.002158, allocations: 75.89 kB / 0.4966 GB, free: 7.438 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4326/0.4348, allocations: 66.03 MB / 0.5611 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001666/0.4364, allocations: 0.4892 MB / 0.5616 GB, free: 3.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003546/0.44, allocations: 2.323 MB / 0.5639 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.997e-06/0.44, allocations: 0 / 0.5639 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.686e-06/0.44, allocations: 0 / 0.5639 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.603e-06/0.44, allocations: 0 / 0.5639 GB, free: 1.602 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.002106/0.4421, allocations: 0.6216 MB / 0.5645 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.287e-05/0.4422, allocations: 15.98 kB / 0.5645 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.287e-05/0.4422, allocations: 4 kB / 0.5645 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.4423, allocations: 15.92 kB / 0.5645 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.449e-05/0.4424, allocations: 7.984 kB / 0.5645 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.849e-06/0.4424, allocations: 0 / 0.5645 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001103/0.4435, allocations: 0.6749 MB / 0.5652 GB, free: 272 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.232e-06/0.4435, allocations: 0 / 0.5652 GB, free: 272 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.143e-05/0.4435, allocations: 3.984 kB / 0.5652 GB, free: 268 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006618/0.4442, allocations: 454.8 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.4442, allocations: 0 / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4442, allocations: 0 / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.4442, allocations: 0 / 0.5656 GB, free: 15.82 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.0004584/0.4446, allocations: 355.3 kB / 0.5659 GB, free: 15.44 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.4447, allocations: 8.031 kB / 0.5659 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7e-05/0.4448, allocations: 84.09 kB / 0.566 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.4449, allocations: 181.8 kB / 0.5662 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.364e-05/0.445, allocations: 154.9 kB / 0.5663 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.362e-05/0.445, allocations: 154.7 kB / 0.5665 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.491e-05/0.4451, allocations: 105 kB / 0.5666 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.432e-05/0.4452, allocations: 75.28 kB / 0.5667 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.838e-05/0.4452, allocations: 154.6 kB / 0.5668 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.637e-05/0.4453, allocations: 150.6 kB / 0.567 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.128e-05/0.4454, allocations: 158.5 kB / 0.5671 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003013/0.4457, allocations: 413 kB / 0.5675 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000105/0.4458, allocations: 173.1 kB / 0.5677 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.005e-05/0.4458, allocations: 84.08 kB / 0.5677 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.833e-05/0.4459, allocations: 83.22 kB / 0.5678 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.244e-05/0.4459, allocations: 131.5 kB / 0.568 GB, free: 13.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.12e-07/0.4459, allocations: 0 / 0.568 GB, free: 13.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.028e-05/0.446, allocations: 29.64 kB / 0.568 GB, free: 13.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.783e-05/0.4461, allocations: 156.4 kB / 0.5681 GB, free: 13.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.844e-05/0.4462, allocations: 89.86 kB / 0.5682 GB, free: 12.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.4462, allocations: 29.7 kB / 0.5682 GB, free: 12.92 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.994e-05/0.4462, allocations: 84.14 kB / 0.5683 GB, free: 12.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.275e-06/0.4462, allocations: 0 / 0.5683 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.899e-05/0.4463, allocations: 17.7 kB / 0.5683 GB, free: 12.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.4464, allocations: 310.8 kB / 0.5686 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.258e-06/0.4464, allocations: 4 kB / 0.5686 GB, free: 12.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.033e-05/0.4464, allocations: 0 / 0.5686 GB, free: 12.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.482e-05/0.4465, allocations: 75.28 kB / 0.5687 GB, free: 12.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.3e-05/0.4465, allocations: 75.28 kB / 0.5688 GB, free: 12.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.294e-05/0.4466, allocations: 41.67 kB / 0.5688 GB, free: 12.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.4466, allocations: 82.25 kB / 0.5689 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.792e-05/0.4467, allocations: 83.28 kB / 0.569 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.887e-05/0.4468, allocations: 162.5 kB / 0.5691 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.396e-05/0.4468, allocations: 79.28 kB / 0.5692 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.261e-05/0.4469, allocations: 150.6 kB / 0.5694 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.82e-05/0.447, allocations: 87.22 kB / 0.5694 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.831e-05/0.447, allocations: 83.31 kB / 0.5695 GB, free: 11.59 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.0001753/0.4472, allocations: 260.3 kB / 0.5698 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.828e-05/0.4473, allocations: 112.9 kB / 0.5699 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.186e-05/0.4473, allocations: 115.8 kB / 0.57 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001008/0.4474, allocations: 176.3 kB / 0.5702 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001059/0.4476, allocations: 188.2 kB / 0.5703 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.525e-05/0.4476, allocations: 176.3 kB / 0.5705 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/0.4479, allocations: 376.2 kB / 0.5709 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.469e-05/0.448, allocations: 116.9 kB / 0.571 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.433e-05/0.4481, allocations: 101 kB / 0.5711 GB, free: 9.887 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001214/0.4482, allocations: 184.2 kB / 0.5712 GB, free: 9.699 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.064e-05/0.4483, allocations: 176.3 kB / 0.5714 GB, free: 9.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000104/0.4484, allocations: 188.2 kB / 0.5716 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001056/0.4485, allocations: 176.3 kB / 0.5718 GB, free: 9.148 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002197/0.4487, allocations: 311.7 kB / 0.5721 GB, free: 8.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.356e-05/0.4488, allocations: 108.9 kB / 0.5722 GB, free: 8.707 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/0.4489, allocations: 188.2 kB / 0.5723 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.4491, allocations: 105 kB / 0.5724 GB, free: 8.406 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.4492, allocations: 180.2 kB / 0.5726 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.247e-05/0.4492, allocations: 105 kB / 0.5727 GB, free: 8.113 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.043e-05/0.4493, allocations: 79.28 kB / 0.5728 GB, free: 8.035 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4493, allocations: 0 / 0.5728 GB, free: 8.035 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006665/0.45, allocations: 139.6 kB / 0.5729 GB, free: 7.898 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.0009566/0.4509, allocations: 404.4 kB / 0.5733 GB, free: 7.496 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 6.578e-05/0.451, allocations: 0 / 0.5733 GB, free: 7.496 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.451, allocations: 4 kB / 0.5733 GB, free: 7.492 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.031e-06/0.451, allocations: 3.938 kB / 0.5733 GB, free: 7.488 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004267/0.4514, allocations: 459.6 kB / 0.5738 GB, free: 7.035 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001858/0.4516, allocations: 148.4 kB / 0.5739 GB, free: 6.863 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.4519, allocations: 0.669 MB / 0.5745 GB, free: 6.168 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.031e-06/0.4519, allocations: 4 kB / 0.5746 GB, free: 6.164 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.513e-05/0.452, allocations: 11.44 kB / 0.5746 GB, free: 6.152 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.452, allocations: 3.938 kB / 0.5746 GB, free: 6.148 MB / 414.1 MB Notification: Performance of Templates: time 0.008405/0.4604, allocations: 3.27 MB / 0.5778 GB, free: 2.883 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins/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: 5.579881637124345]