Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007542/0.0007542, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001046/0.0018, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006317/0.0006317, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009776/0.001609, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8494/0.8494, allocations: 173.4 MB / 186 MB, free: 7.543 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1462/0.9956, allocations: 52.5 MB / 238.5 MB, free: 7.637 MB / 234.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.286e-05/1.429e-05, allocations: 6.312 kB / 239.8 MB, free: 6.363 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008345/0.008359, allocations: 7.159 MB / 246.9 MB, free: 15.18 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005748/0.01411, allocations: 3.277 MB / 250.2 MB, free: 11.91 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004107/0.01452, allocations: 39.88 kB / 250.2 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.01559, allocations: 1.055 MB / 251.3 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001718/0.01731, allocations: 1.421 MB / 252.7 MB, free: 9.402 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005566/0.01787, allocations: 462.9 kB / 253.2 MB, free: 8.949 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00231/0.02018, allocations: 2.855 MB / 256 MB, free: 6.094 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001229/0.02141, allocations: 1.418 MB / 257.4 MB, free: 4.645 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001156/0.02256, allocations: 1.385 MB / 258.8 MB, free: 3.258 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00114/0.0237, allocations: 1.344 MB / 260.2 MB, free: 1.91 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001687/0.02387, allocations: 176 kB / 260.3 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001021/0.02489, allocations: 1.01 MB / 261.3 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005429/0.02543, allocations: 1.064 MB / 262.4 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004318/0.02587, allocations: 0.5958 MB / 263 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002035/0.0279, allocations: 2.774 MB / 265.8 MB, free: 12.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.02791, allocations: 0 / 265.8 MB, free: 12.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.02791, allocations: 0 / 265.8 MB, free: 12.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.619e-05/0.02794, allocations: 0 / 265.8 MB, free: 12.28 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.002805/0.03074, allocations: 3.372 MB / 269.1 MB, free: 8.848 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.654e-05/0.03077, allocations: 8.031 kB / 269.2 MB, free: 8.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002192/0.03296, allocations: 0.8825 MB / 270 MB, free: 7.957 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.03422, allocations: 1.036 MB / 271.1 MB, free: 6.887 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.393e-05/0.03428, allocations: 135.4 kB / 271.2 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003608/0.03464, allocations: 251.7 kB / 271.4 MB, free: 6.508 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002804/0.03745, allocations: 3.256 MB / 274.7 MB, free: 2.781 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.338e-05/0.03749, allocations: 31.7 kB / 274.7 MB, free: 2.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001594/0.03765, allocations: 91.88 kB / 274.8 MB, free: 2.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009571/0.03861, allocations: 1.117 MB / 275.9 MB, free: 1.535 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002584/0.04119, allocations: 1.848 MB / 277.8 MB, free: 15.69 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01197/0.05316, allocations: 20.11 MB / 297.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001857/0.05502, allocations: 1.078 MB / 299 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005106/0.05553, allocations: 244.9 kB / 299.2 MB, free: 9.438 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002231/0.05776, allocations: 2.207 MB / 301.4 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.05779, allocations: 47 kB / 301.5 MB, free: 7.148 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 2.424e-06/0.05779, allocations: 0 / 301.5 MB, free: 7.148 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.00797/0.06576, allocations: 4.023 MB / 305.5 MB, free: 3.066 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008724/0.06663, allocations: 1.487 MB / 307 MB, free: 1.445 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001331/0.06796, allocations: 2.161 MB / 309.1 MB, free: 15.24 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.567e-05/0.06803, allocations: 45.69 kB / 309.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007212/0.06875, allocations: 2.074 MB / 311.3 MB, free: 13.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/0.06902, allocations: 0.5155 MB / 311.8 MB, free: 12.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006558/0.06967, allocations: 0.8507 MB / 312.6 MB, free: 11.71 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.128e-05/0.06975, allocations: 361.8 kB / 313 MB, free: 11.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.07081, allocations: 0.6245 MB / 313.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.0726, allocations: 3.308 MB / 316.9 MB, free: 6 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003334/0.07594, allocations: 4.668 MB / 321.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.75e-05/0.07597, allocations: 31.94 kB / 321.6 MB, free: 15.9 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006329/0.0823, allocations: 3.748 MB / 325.4 MB, free: 12.13 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.029e-05/0.08234, allocations: 51.98 kB / 325.4 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.562e-05/0.08241, allocations: 108 kB / 325.5 MB, free: 11.97 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003962/0.08637, allocations: 0.8536 MB / 326.4 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/0.08798, allocations: 1.088 MB / 327.5 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004382/0.09236, allocations: 4 MB / 331.5 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001721/0.09408, allocations: 215.8 kB / 331.7 MB, free: 5.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002261/0.0943, allocations: 248 kB / 331.9 MB, free: 5.371 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000958/0.09526, allocations: 496.2 kB / 332.4 MB, free: 4.875 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.09548, allocations: 143.8 kB / 332.5 MB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002122/0.09761, allocations: 1.171 MB / 333.7 MB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001732/0.09934, allocations: 0.8315 MB / 334.5 MB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.09934, allocations: 7.938 kB / 334.5 MB, free: 2.676 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.09935, allocations: 3.984 kB / 334.6 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1079/0.2073, allocations: 3.18 MB / 337.7 MB, free: 70.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.57e-05/0.2073, allocations: 9.375 kB / 337.7 MB, free: 70.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005686/0.2079, allocations: 162 kB / 337.9 MB, free: 70.1 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004729/0.2083, allocations: 206.9 kB / 338.1 MB, free: 70.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002157/0.2105, allocations: 0.7872 MB / 338.9 MB, free: 70.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.054e-05/0.2106, allocations: 32.14 kB / 338.9 MB, free: 70.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002988/0.2136, allocations: 3.735 MB / 342.7 MB, free: 67.45 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003305/0.2139, allocations: 1.351 MB / 344 MB, free: 66.13 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002437/0.2163, allocations: 1.946 MB / 346 MB, free: 65.47 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001591/0.2165, allocations: 24.88 kB / 346 MB, free: 65.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004814/0.217, allocations: 20.19 kB / 346 MB, free: 65.47 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.2171, allocations: 81.45 kB / 346.1 MB, free: 65.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-05/0.2172, allocations: 30 kB / 346.1 MB, free: 65.47 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005371/0.2177, allocations: 0.7628 MB / 346.9 MB, free: 65.38 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2177, allocations: 0 / 346.9 MB, free: 65.38 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002187/0.2199, allocations: 0.8705 MB / 347.7 MB, free: 65.38 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002906/0.2202, allocations: 174.1 kB / 347.9 MB, free: 65.31 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002451/0.2226, allocations: 2.384 MB / 350.3 MB, free: 64.99 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.824e-05/0.2227, allocations: 65.44 kB / 350.4 MB, free: 64.98 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.2239, allocations: 1.133 MB / 351.5 MB, free: 64.65 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.225, allocations: 1.631 MB / 353.1 MB, free: 63.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004939/0.2299, allocations: 5.067 MB / 358.2 MB, free: 61.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/0.2304, allocations: 0.7867 MB / 359 MB, free: 61.34 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005928/0.231, allocations: 331 kB / 359.3 MB, free: 61.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004026/0.2314, allocations: 370.2 kB / 359.7 MB, free: 61.18 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/0.2314, allocations: 4 kB / 359.7 MB, free: 61.18 MB / 330.7 MB Notification: Performance of Templates: time 0.02968/0.2611, allocations: 29.8 MB / 389.5 MB, free: 35.52 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.878886175341904]