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.001464/0.001464, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.00139/0.00139, allocations: 147 kB / 24.89 MB, free: 8.793 MB / 18.57 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.901/0.901, allocations: 173.4 MB / 201.5 MB, free: 8.766 MB / 186.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.533e-06/1.533e-06, allocations: 0 / 268.5 MB, free: 5.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.717e-05/1.871e-05, allocations: 6.25 kB / 268.5 MB, free: 5.969 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01267/0.01269, allocations: 7.108 MB / 275.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004156/0.01685, allocations: 3.249 MB / 278.9 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003532/0.0172, allocations: 39.81 kB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001176/0.01838, allocations: 1.074 MB / 280 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001553/0.01993, allocations: 1.439 MB / 281.4 MB, free: 8.996 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005436/0.02047, allocations: 498.8 kB / 281.9 MB, free: 8.508 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00178/0.02226, allocations: 2.971 MB / 284.9 MB, free: 5.535 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.02337, allocations: 1.566 MB / 286.5 MB, free: 3.934 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007995/0.02417, allocations: 1.294 MB / 287.8 MB, free: 2.637 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009744/0.02514, allocations: 1.36 MB / 289.1 MB, free: 1.273 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001546/0.02529, allocations: 176 kB / 289.3 MB, free: 1.102 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009063/0.0262, allocations: 1.014 MB / 290.3 MB, free: 88 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1012/0.1274, allocations: 1.189 MB / 291.5 MB, free: 19.04 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.1286, allocations: 0.734 MB / 292.2 MB, free: 19.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003339/0.132, allocations: 3.016 MB / 295.2 MB, free: 18.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.132, allocations: 1.25 kB / 295.2 MB, free: 18.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.132, allocations: 0 / 295.2 MB, free: 18.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.546e-05/0.132, allocations: 0 / 295.2 MB, free: 18.82 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.002974/0.135, allocations: 2.772 MB / 298 MB, free: 17.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.135, allocations: 11.62 kB / 298 MB, free: 17.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002533/0.1375, allocations: 0.8793 MB / 298.9 MB, free: 17.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.1386, allocations: 1.047 MB / 300 MB, free: 17.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.866e-05/0.1387, allocations: 132.3 kB / 300.1 MB, free: 17.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004193/0.1391, allocations: 247.9 kB / 300.3 MB, free: 17.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003374/0.1425, allocations: 3.27 MB / 303.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.755e-05/0.1425, allocations: 22.72 kB / 303.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001798/0.1427, allocations: 90.83 kB / 303.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009152/0.1436, allocations: 1.194 MB / 304.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002278/0.1459, allocations: 1.876 MB / 306.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/0.156, allocations: 20.13 MB / 326.9 MB, free: 14.85 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001999/0.158, allocations: 1.085 MB / 328 MB, free: 13.76 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005619/0.1586, allocations: 265.9 kB / 328.2 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002362/0.161, allocations: 2.216 MB / 330.5 MB, free: 11.3 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.161, allocations: 50.19 kB / 330.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of pre-optimization done (n=112): time 2.204e-06/0.161, allocations: 0 / 330.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.008036/0.169, allocations: 3.996 MB / 334.5 MB, free: 7.262 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008899/0.1699, allocations: 1.479 MB / 336 MB, free: 5.668 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/0.1714, allocations: 2.162 MB / 338.1 MB, free: 3.855 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.714e-05/0.1714, allocations: 37.7 kB / 338.2 MB, free: 3.812 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007571/0.1722, allocations: 2.073 MB / 340.3 MB, free: 1.844 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002819/0.1725, allocations: 0.5285 MB / 340.8 MB, free: 1.344 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000696/0.1732, allocations: 0.8569 MB / 341.6 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.154e-05/0.1732, allocations: 357.8 kB / 342 MB, free: 252 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008984/0.1741, allocations: 0.6244 MB / 342.6 MB, free: 15.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002126/0.1763, allocations: 3.311 MB / 345.9 MB, free: 11.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003174/0.1794, allocations: 4.398 MB / 350.3 MB, free: 5.523 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.479e-05/0.1795, allocations: 28 kB / 350.4 MB, free: 5.496 MB / 298.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006308/0.1858, allocations: 3.76 MB / 354.1 MB, free: 1.715 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.91e-05/0.1858, allocations: 48 kB / 354.2 MB, free: 1.668 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0036/0.1894, allocations: 1.083 MB / 355.2 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004301/0.1937, allocations: 0.8453 MB / 356.1 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001561/0.1953, allocations: 1.01 MB / 357.1 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004304/0.1996, allocations: 4.047 MB / 361.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.2012, allocations: 219.8 kB / 361.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/0.2014, allocations: 244 kB / 361.6 MB, free: 10.07 MB / 314.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.0008566/0.2023, allocations: 490.7 kB / 362.1 MB, free: 9.578 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002141/0.2025, allocations: 147 kB / 362.2 MB, free: 9.438 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002394/0.2049, allocations: 1.165 MB / 363.4 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00175/0.2066, allocations: 0.8423 MB / 364.2 MB, free: 7.398 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.2066, allocations: 7.938 kB / 364.2 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.2066, allocations: 7.984 kB / 364.2 MB, free: 7.383 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004677/0.2113, allocations: 3.192 MB / 367.4 MB, free: 4.266 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.2113, allocations: 4 kB / 367.4 MB, free: 4.262 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003948/0.2117, allocations: 155.9 kB / 367.6 MB, free: 4.109 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00197/0.2137, allocations: 0.7633 MB / 368.4 MB, free: 3.332 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.778e-05/0.2138, allocations: 31.95 kB / 368.4 MB, free: 3.301 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003506/0.2173, allocations: 3.78 MB / 372.2 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004919/0.2178, allocations: 1.334 MB / 373.5 MB, free: 13.89 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00262/0.2204, allocations: 1.927 MB / 375.4 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002093/0.2206, allocations: 206.4 kB / 375.6 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001577/0.2208, allocations: 20 kB / 375.6 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004823/0.2212, allocations: 23.98 kB / 375.7 MB, free: 11.67 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.2214, allocations: 84.44 kB / 375.8 MB, free: 11.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.103e-05/0.2215, allocations: 35.95 kB / 375.8 MB, free: 11.55 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006915/0.2222, allocations: 0.749 MB / 376.5 MB, free: 10.78 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2222, allocations: 0 / 376.5 MB, free: 10.78 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002683/0.2248, allocations: 0.8749 MB / 377.4 MB, free: 9.902 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.0003118/0.2252, allocations: 174.6 kB / 377.6 MB, free: 9.727 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003047/0.2282, allocations: 2.298 MB / 379.9 MB, free: 7.414 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.585e-05/0.2283, allocations: 55.94 kB / 379.9 MB, free: 7.352 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.2293, allocations: 0.7962 MB / 380.7 MB, free: 6.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.2305, allocations: 374.3 kB / 381.1 MB, free: 6.152 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005651/0.2362, allocations: 4.961 MB / 386.1 MB, free: 1.109 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006456/0.2368, allocations: 0.7881 MB / 386.8 MB, free: 304 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007271/0.2376, allocations: 333.2 kB / 387.2 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005046/0.2381, allocations: 373.2 kB / 387.5 MB, free: 15.6 MB / 346.7 MB Notification: Performance of SimCode: time 7.71e-07/0.2381, allocations: 0 / 387.5 MB, free: 15.6 MB / 346.7 MB Notification: Performance of Templates: time 0.03698/0.275, allocations: 30.79 MB / 418.3 MB, free: 0.957 MB / 362.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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.276036387309432]