Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008995/0.0008995, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 164.4 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.021/1.021, allocations: 177 MB / 205.2 MB, free: 5.062 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 273.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.704e-05/1.852e-05, allocations: 5.266 kB / 273.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005493/0.005512, allocations: 7.09 MB / 280.5 MB, free: 9.895 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00385/0.009362, allocations: 3.264 MB / 283.8 MB, free: 6.617 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003554/0.009718, allocations: 39.81 kB / 283.8 MB, free: 6.578 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00124/0.01096, allocations: 1.086 MB / 284.9 MB, free: 5.488 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001612/0.01257, allocations: 1.392 MB / 286.3 MB, free: 4.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000524/0.01309, allocations: 498.8 kB / 286.8 MB, free: 3.602 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00205/0.01514, allocations: 3.031 MB / 289.8 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1242/0.1394, allocations: 1.555 MB / 291.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001982/0.1413, allocations: 1.288 MB / 292.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001937/0.1433, allocations: 1.359 MB / 294 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000364/0.1436, allocations: 177.2 kB / 294.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001494/0.1451, allocations: 0.9855 MB / 295.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009105/0.146, allocations: 1.176 MB / 296.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009968/0.147, allocations: 0.7235 MB / 297.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002946/0.15, allocations: 2.972 MB / 300.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.15, allocations: 0.5312 kB / 300.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.15, allocations: 0 / 300.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001016/0.1501, allocations: 0.6875 kB / 300.1 MB, free: 14.77 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.003367/0.1535, allocations: 2.751 MB / 302.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.1535, allocations: 12.86 kB / 302.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002604/0.1561, allocations: 0.9315 MB / 303.7 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.1571, allocations: 1.036 MB / 304.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.72e-05/0.1572, allocations: 133.1 kB / 304.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003555/0.1575, allocations: 256.6 kB / 305.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002737/0.1603, allocations: 3.275 MB / 308.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.571e-05/0.1603, allocations: 23.89 kB / 308.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001641/0.1605, allocations: 89.72 kB / 308.6 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009722/0.1615, allocations: 1.197 MB / 309.7 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002389/0.1638, allocations: 1.875 MB / 311.6 MB, free: 9.621 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01151/0.1754, allocations: 20.12 MB / 331.7 MB, free: 5.473 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002027/0.1774, allocations: 1.102 MB / 332.8 MB, free: 4.371 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003006/0.1777, allocations: 255.1 kB / 333.1 MB, free: 4.113 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002397/0.1801, allocations: 2.231 MB / 335.3 MB, free: 1.902 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.1801, allocations: 47 kB / 335.4 MB, free: 1.848 MB / 282.7 MB Notification: Performance of pre-optimization done (n=112): time 2.124e-06/0.1801, allocations: 0 / 335.4 MB, free: 1.848 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.008337/0.1884, allocations: 4.033 MB / 339.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000703/0.1892, allocations: 1.473 MB / 340.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.1906, allocations: 2.153 MB / 343 MB, free: 10.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.629e-05/0.1907, allocations: 41.7 kB / 343.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007751/0.1915, allocations: 2.078 MB / 345.2 MB, free: 8.414 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002831/0.1918, allocations: 0.5239 MB / 345.7 MB, free: 7.918 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007125/0.1925, allocations: 0.858 MB / 346.5 MB, free: 7.148 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.307e-05/0.1926, allocations: 354.2 kB / 346.9 MB, free: 6.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009029/0.1935, allocations: 0.6283 MB / 347.5 MB, free: 6.184 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001993/0.1955, allocations: 3.313 MB / 350.8 MB, free: 1.629 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002999/0.1985, allocations: 4.395 MB / 355.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.658e-05/0.1985, allocations: 28 kB / 355.2 MB, free: 11.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006152/0.2046, allocations: 3.756 MB / 359 MB, free: 8.086 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.137e-05/0.2047, allocations: 48.22 kB / 359 MB, free: 8.039 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003566/0.2083, allocations: 1.081 MB / 360.1 MB, free: 6.945 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003985/0.2122, allocations: 0.8469 MB / 361 MB, free: 6.086 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/0.2138, allocations: 1.006 MB / 362 MB, free: 5.078 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004479/0.2183, allocations: 4.054 MB / 366 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001621/0.2199, allocations: 215.8 kB / 366.2 MB, free: 0.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002184/0.2201, allocations: 244 kB / 366.5 MB, free: 396 kB / 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.0007979/0.2209, allocations: 492.4 kB / 367 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000216/0.2211, allocations: 151.8 kB / 367.1 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002404/0.2214, allocations: 259.7 kB / 367.4 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001814/0.2232, allocations: 0.8355 MB / 368.2 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.2232, allocations: 8 kB / 368.2 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.2232, allocations: 7.969 kB / 368.2 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004596/0.2278, allocations: 3.178 MB / 371.4 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.2278, allocations: 4 kB / 371.4 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004036/0.2282, allocations: 155.9 kB / 371.5 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001965/0.2302, allocations: 0.7793 MB / 372.3 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-05/0.2302, allocations: 31.97 kB / 372.4 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003258/0.2335, allocations: 3.769 MB / 376.1 MB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005116/0.234, allocations: 1.338 MB / 377.5 MB, free: 4.961 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/0.2366, allocations: 1.94 MB / 379.4 MB, free: 2.973 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.2368, allocations: 206.5 kB / 379.6 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/0.237, allocations: 27.98 kB / 379.6 MB, free: 2.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004748/0.2375, allocations: 23.98 kB / 379.7 MB, free: 2.719 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.2377, allocations: 76.5 kB / 379.7 MB, free: 2.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.075e-05/0.2377, allocations: 35.95 kB / 379.8 MB, free: 2.609 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006674/0.2384, allocations: 0.7449 MB / 380.5 MB, free: 1.844 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2384, allocations: 0 / 380.5 MB, free: 1.844 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002531/0.2409, allocations: 0.8476 MB / 381.4 MB, free: 0.9961 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.0003225/0.2412, allocations: 167.8 kB / 381.5 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002704/0.2439, allocations: 2.311 MB / 383.8 MB, free: 14.49 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.622e-05/0.244, allocations: 55.94 kB / 383.9 MB, free: 14.43 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.2451, allocations: 0.7826 MB / 384.7 MB, free: 13.61 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.2462, allocations: 376.3 kB / 385 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005473/0.2517, allocations: 4.953 MB / 390 MB, free: 8.211 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006676/0.2524, allocations: 0.7799 MB / 390.8 MB, free: 7.41 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007125/0.2531, allocations: 329.9 kB / 391.1 MB, free: 7.082 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004964/0.2536, allocations: 377.2 kB / 391.5 MB, free: 6.715 MB / 346.7 MB Notification: Performance of SimCode: time 9.22e-07/0.2536, allocations: 0 / 391.5 MB, free: 6.715 MB / 346.7 MB Notification: Performance of Templates: time 0.04475/0.2983, allocations: 30.58 MB / 422 MB, free: 8.312 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.554535939358175]