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.0009462/0.0009462, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009174/0.0009174, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9163/0.9163, allocations: 173.4 MB / 201.1 MB, free: 9.34 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.393e-06/1.393e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.857e-05/1.996e-05, allocations: 2.312 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005989/0.006009, allocations: 7.261 MB / 275.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004153/0.01016, allocations: 3.187 MB / 278.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004981/0.01066, allocations: 39.81 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001661/0.01232, allocations: 1.101 MB / 279.6 MB, free: 10.78 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002035/0.01436, allocations: 1.47 MB / 281.1 MB, free: 9.305 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006298/0.01499, allocations: 490.8 kB / 281.5 MB, free: 8.824 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002388/0.01737, allocations: 2.96 MB / 284.5 MB, free: 5.859 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001841/0.01921, allocations: 1.636 MB / 286.1 MB, free: 4.195 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001294/0.02051, allocations: 1.325 MB / 287.5 MB, free: 2.867 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001437/0.02195, allocations: 1.422 MB / 288.9 MB, free: 1.441 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002066/0.02215, allocations: 176 kB / 289.1 MB, free: 1.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001101/0.02325, allocations: 0.9788 MB / 290 MB, free: 296 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1079/0.1311, allocations: 1.192 MB / 291.2 MB, free: 19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001796/0.1329, allocations: 0.7322 MB / 292 MB, free: 19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003732/0.1367, allocations: 3.019 MB / 295 MB, free: 18.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1367, allocations: 0.6562 kB / 295 MB, free: 18.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1367, allocations: 0.5 kB / 295 MB, free: 18.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.649e-05/0.1368, allocations: 1.156 kB / 295 MB, free: 18.79 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.004501/0.1413, allocations: 3.376 MB / 298.4 MB, free: 17.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.1413, allocations: 13.55 kB / 298.4 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003979/0.1453, allocations: 2.124 MB / 300.5 MB, free: 17.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001344/0.1466, allocations: 1.259 MB / 301.8 MB, free: 16.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.607e-05/0.1467, allocations: 130.3 kB / 301.9 MB, free: 16.85 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004079/0.1471, allocations: 256.4 kB / 302.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004016/0.1511, allocations: 4.064 MB / 306.2 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.317e-05/0.1512, allocations: 25.77 kB / 306.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001899/0.1513, allocations: 91.91 kB / 306.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001095/0.1524, allocations: 1.363 MB / 307.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003637/0.1561, allocations: 2.428 MB / 310.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01451/0.1706, allocations: 28.58 MB / 338.7 MB, free: 2.062 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003092/0.1737, allocations: 1.424 MB / 340.1 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005033/0.1742, allocations: 373.6 kB / 340.5 MB, free: 224 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002839/0.177, allocations: 2.569 MB / 343 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/0.1771, allocations: 57.83 kB / 343.1 MB, free: 13.58 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 3.527e-06/0.1771, allocations: 0 / 343.1 MB, free: 13.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.01246/0.1895, allocations: 7.323 MB / 350.4 MB, free: 6.219 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00112/0.1906, allocations: 2.04 MB / 352.5 MB, free: 4.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002058/0.1927, allocations: 2.444 MB / 354.9 MB, free: 1.531 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.351e-05/0.1928, allocations: 37.7 kB / 354.9 MB, free: 1.488 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00102/0.1938, allocations: 2.303 MB / 357.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005935/0.1944, allocations: 0.5515 MB / 357.8 MB, free: 14.65 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008779/0.1953, allocations: 0.9914 MB / 358.8 MB, free: 13.65 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1954, allocations: 0.5277 MB / 359.3 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008801/0.1963, allocations: 0.5516 MB / 359.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002869/0.1992, allocations: 4.697 MB / 364.6 MB, free: 5.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005044/0.2042, allocations: 5.808 MB / 370.4 MB, free: 14.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.23e-05/0.2042, allocations: 28 kB / 370.4 MB, free: 14.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01253/0.2168, allocations: 5.703 MB / 376.1 MB, free: 8.602 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.339e-05/0.2168, allocations: 50.66 kB / 376.2 MB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007273/0.2241, allocations: 2.321 MB / 378.5 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007897/0.232, allocations: 2.143 MB / 380.6 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002299/0.2343, allocations: 1.014 MB / 381.6 MB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007868/0.2422, allocations: 5.874 MB / 387.5 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002705/0.2449, allocations: 379.6 kB / 387.9 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003566/0.2452, allocations: 284 kB / 388.2 MB, free: 12.29 MB / 346.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.001021/0.2462, allocations: 0.5226 MB / 388.7 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003736/0.2466, allocations: 254.6 kB / 388.9 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004216/0.2508, allocations: 1.711 MB / 390.6 MB, free: 9.781 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003538/0.2544, allocations: 1.405 MB / 392 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.2544, allocations: 7.938 kB / 392 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.2544, allocations: 7.984 kB / 392.1 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006877/0.2613, allocations: 4.8 MB / 396.9 MB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.2613, allocations: 0 / 396.9 MB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004482/0.2617, allocations: 175.7 kB / 397 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00264/0.2644, allocations: 0.9856 MB / 398 MB, free: 2.285 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.539e-05/0.2644, allocations: 27.98 kB / 398 MB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004362/0.2688, allocations: 5.325 MB / 403.4 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007763/0.2696, allocations: 1.896 MB / 405.3 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003764/0.2733, allocations: 2.7 MB / 408 MB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002514/0.2736, allocations: 218.4 kB / 408.2 MB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.2738, allocations: 24.12 kB / 408.2 MB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006438/0.2744, allocations: 147.8 kB / 408.3 MB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001754/0.2746, allocations: 84.38 kB / 408.4 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.26e-05/0.2746, allocations: 43.02 kB / 408.5 MB, free: 7.422 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001119/0.2758, allocations: 1.03 MB / 409.5 MB, free: 6.375 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2758, allocations: 0 / 409.5 MB, free: 6.375 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002974/0.2787, allocations: 0.871 MB / 410.4 MB, free: 5.504 MB / 362.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.0003319/0.2791, allocations: 186.9 kB / 410.5 MB, free: 5.316 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00393/0.283, allocations: 2.888 MB / 413.4 MB, free: 2.402 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.283, allocations: 4 kB / 413.4 MB, free: 2.398 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00142/0.2844, allocations: 1.178 MB / 414.6 MB, free: 1.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009156/0.2853, allocations: 254.2 kB / 414.9 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005831/0.2912, allocations: 5.235 MB / 420.1 MB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000638/0.2918, allocations: 0.7841 MB / 420.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001597/0.2934, allocations: 1.199 MB / 422.1 MB, free: 9.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002821/0.2937, allocations: 164.5 kB / 422.2 MB, free: 9.43 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/0.2937, allocations: 0 / 422.2 MB, free: 9.43 MB / 378.7 MB Notification: Performance of Templates: time 0.1319/0.4256, allocations: 29.69 MB / 451.9 MB, free: 111 MB / 378.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 -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.745516825001687]