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.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.0009344/0.0009344, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.0009042/0.0009042, allocations: 164.8 kB / 25.61 MB, free: 8.891 MB / 18.57 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 0.9626/0.9626, allocations: 177.1 MB / 206 MB, free: 4.508 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.14/0.14, allocations: 32.8 MB / 295.4 MB, free: 15.39 MB / 282.7 MB " [Timeout remaining time 180] 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.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.0.0_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 377.2 MB, free: 25.63 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.168e-05/1.306e-05, allocations: 6.312 kB / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0008262/0.0008393, allocations: 488.9 kB / 377.7 MB, free: 25.15 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.002778, allocations: 2.218 MB / 379.9 MB, free: 22.91 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.809e-06/0.002783, allocations: 0 / 379.9 MB, free: 22.91 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 7.715e-06/0.00279, allocations: 7.938 kB / 380 MB, free: 22.9 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 1.583e-06/0.002792, allocations: 0 / 380 MB, free: 22.9 MB / 314.7 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.001699/0.004491, allocations: 0.6153 MB / 380.6 MB, free: 22.29 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.642e-05/0.004538, allocations: 4 kB / 380.6 MB, free: 22.28 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.998e-05/0.004568, allocations: 0 / 380.6 MB, free: 22.28 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.004699, allocations: 23.91 kB / 380.6 MB, free: 22.26 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.947e-05/0.004738, allocations: 4 kB / 380.6 MB, free: 22.25 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.004744, allocations: 4 kB / 380.6 MB, free: 22.25 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000903/0.005647, allocations: 0.6307 MB / 381.2 MB, free: 21.62 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.063e-06/0.005654, allocations: 0 / 381.2 MB, free: 21.62 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.82e-05/0.005672, allocations: 4 kB / 381.2 MB, free: 21.62 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006518/0.006324, allocations: 0.5573 MB / 381.8 MB, free: 21.06 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.006326, allocations: 0 / 381.8 MB, free: 21.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.006326, allocations: 0 / 381.8 MB, free: 21.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.006331, allocations: 0 / 381.8 MB, free: 21.06 MB / 314.7 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.0003159/0.006647, allocations: 461.3 kB / 382.2 MB, free: 20.57 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.00669, allocations: 15.98 kB / 382.3 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.56e-05/0.006736, allocations: 124.1 kB / 382.4 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.342e-05/0.006799, allocations: 223.8 kB / 382.6 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.912e-05/0.006828, allocations: 242.8 kB / 382.8 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.376e-05/0.006852, allocations: 242.7 kB / 383.1 MB, free: 19.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.822e-05/0.0069, allocations: 145.5 kB / 383.2 MB, free: 19.56 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.006918, allocations: 127.1 kB / 383.3 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.076e-05/0.006948, allocations: 242.4 kB / 383.6 MB, free: 19.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.636e-05/0.006975, allocations: 242.4 kB / 383.8 MB, free: 18.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.599e-05/0.007001, allocations: 242.4 kB / 384.1 MB, free: 18.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001638/0.007165, allocations: 0.5531 MB / 384.6 MB, free: 18.14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.958e-05/0.007224, allocations: 269.4 kB / 384.9 MB, free: 17.86 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.645e-05/0.007241, allocations: 126.9 kB / 385 MB, free: 17.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.007255, allocations: 123.2 kB / 385.1 MB, free: 17.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/0.007297, allocations: 178.3 kB / 385.3 MB, free: 17.42 MB / 314.7 MB Notification: Performance of pre-optimization done (n=0): time 8.41e-07/0.007298, allocations: 0 / 385.3 MB, free: 17.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=0): time 6.237e-05/0.00736, allocations: 33.64 kB / 385.3 MB, free: 17.38 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.007401, allocations: 204.2 kB / 385.5 MB, free: 17.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.025e-05/0.007421, allocations: 142.2 kB / 385.7 MB, free: 17.01 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-06/0.007427, allocations: 25.7 kB / 385.7 MB, free: 16.98 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.614e-05/0.007443, allocations: 130.9 kB / 385.8 MB, free: 16.85 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.32e-07/0.007444, allocations: 0 / 385.8 MB, free: 16.85 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.587e-05/0.00747, allocations: 23.38 kB / 385.8 MB, free: 16.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.147e-05/0.007521, allocations: 496.1 kB / 386.3 MB, free: 16.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.176e-06/0.007524, allocations: 0 / 386.3 MB, free: 16.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.114e-05/0.007545, allocations: 25.7 kB / 386.3 MB, free: 16.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.344e-05/0.007559, allocations: 123.2 kB / 386.5 MB, free: 16.17 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/0.00757, allocations: 119.2 kB / 386.6 MB, free: 16.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.636e-05/0.007617, allocations: 25.75 kB / 386.6 MB, free: 16.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.007643, allocations: 137.3 kB / 386.7 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.007657, allocations: 119.2 kB / 386.9 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.381e-05/0.007691, allocations: 242.4 kB / 387.1 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.425e-05/0.007705, allocations: 135.1 kB / 387.2 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.33e-05/0.007728, allocations: 246.3 kB / 387.5 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.46e-05/0.007783, allocations: 127.1 kB / 387.6 MB, free: 15.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.007794, allocations: 123.2 kB / 387.7 MB, free: 14.91 MB / 314.7 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.276e-05/0.007857, allocations: 394.9 kB / 388.1 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.523e-05/0.007892, allocations: 152.8 kB / 388.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.184e-05/0.007914, allocations: 151.8 kB / 388.4 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.48e-05/0.007939, allocations: 272.1 kB / 388.7 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.472e-05/0.007964, allocations: 272 kB / 388.9 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.453e-05/0.007988, allocations: 268.1 kB / 389.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.008111, allocations: 480.5 kB / 389.7 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/0.00813, allocations: 153.1 kB / 389.8 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.569e-05/0.008146, allocations: 144.9 kB / 389.9 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.652e-05/0.008173, allocations: 276 kB / 390.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.61e-05/0.008199, allocations: 264.1 kB / 390.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.212e-05/0.008221, allocations: 264.1 kB / 390.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.506e-05/0.008246, allocations: 272 kB / 391 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.695e-05/0.008323, allocations: 451.9 kB / 391.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.122e-05/0.008344, allocations: 148.9 kB / 391.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.736e-05/0.008381, allocations: 272.1 kB / 391.8 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.476e-05/0.008436, allocations: 160.8 kB / 392 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.972e-05/0.008466, allocations: 264.1 kB / 392.3 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.008482, allocations: 148.8 kB / 392.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.088e-05/0.008502, allocations: 119.2 kB / 392.5 MB, free: 9.902 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008503, allocations: 0 / 392.5 MB, free: 9.902 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000369/0.008871, allocations: 147.5 kB / 392.7 MB, free: 9.758 MB / 314.7 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.0005062/0.009378, allocations: 494.3 kB / 393.2 MB, free: 9.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 4.031e-05/0.009418, allocations: 0 / 393.2 MB, free: 9.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.00942, allocations: 4 kB / 393.2 MB, free: 9.266 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.423e-06/0.009421, allocations: 0 / 393.2 MB, free: 9.266 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001757/0.009597, allocations: 0.71 MB / 393.9 MB, free: 8.551 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 8.49e-05/0.009682, allocations: 196 kB / 394.1 MB, free: 8.332 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.964e-05/0.009702, allocations: 55.22 kB / 394.1 MB, free: 8.258 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.45e-06/0.009707, allocations: 0 / 394.1 MB, free: 8.258 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.48e-05/0.009742, allocations: 82.19 kB / 394.2 MB, free: 8.176 MB / 314.7 MB Notification: Performance of SimCode: time 3.81e-07/0.009742, allocations: 4 kB / 394.2 MB, free: 8.172 MB / 314.7 MB Notification: Performance of Templates: time 0.004516/0.01426, allocations: 3.791 MB / 398 MB, free: 4.395 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.265946448314935]