Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.001035/0.001035, allocations: 77.97 kB / 21.42 MB, free: 3.066 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.001255/0.001255, allocations: 165.3 kB / 24.82 MB, free: 9.312 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 1.021/1.021, allocations: 177.1 MB / 205.3 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] 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(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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.343e-05/2.52e-05, allocations: 2.312 kB / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008684/0.008709, allocations: 7.033 MB / 280.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00637/0.01508, allocations: 3.156 MB / 283.6 MB, free: 7.066 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001361/0.01644, allocations: 43.75 kB / 283.6 MB, free: 7.023 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002342/0.01878, allocations: 1.086 MB / 284.7 MB, free: 5.934 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003627/0.02241, allocations: 1.431 MB / 286.2 MB, free: 4.496 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.02342, allocations: 490.8 kB / 286.6 MB, free: 4.016 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003898/0.02732, allocations: 3.031 MB / 289.7 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1323/0.1596, allocations: 1.624 MB / 291.3 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002429/0.162, allocations: 1.319 MB / 292.6 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002576/0.1646, allocations: 1.417 MB / 294 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005872/0.1652, allocations: 175.7 kB / 294.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001795/0.167, allocations: 0.9643 MB / 295.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001121/0.1681, allocations: 1.175 MB / 296.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001333/0.1695, allocations: 0.7234 MB / 297.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004073/0.1735, allocations: 2.97 MB / 300 MB, free: 14.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1735, allocations: 0 / 300 MB, free: 14.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1735, allocations: 1.375 kB / 300 MB, free: 14.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.491e-05/0.1736, allocations: 1.469 kB / 300 MB, free: 14.84 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.004606/0.1782, allocations: 3.179 MB / 303.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.1782, allocations: 8.625 kB / 303.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004108/0.1824, allocations: 1.221 MB / 304.4 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001633/0.184, allocations: 1.123 MB / 305.6 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.976e-05/0.1841, allocations: 132.1 kB / 305.7 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004909/0.1846, allocations: 256.4 kB / 305.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004723/0.1893, allocations: 3.737 MB / 309.7 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.742e-05/0.1893, allocations: 27.83 kB / 309.7 MB, free: 9.945 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002146/0.1896, allocations: 89.56 kB / 309.8 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001233/0.1908, allocations: 1.187 MB / 311 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004285/0.1951, allocations: 1.99 MB / 313 MB, free: 8.281 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0231/0.2182, allocations: 28.22 MB / 341.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003171/0.2213, allocations: 1.289 MB / 342.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004006/0.2217, allocations: 317.8 kB / 342.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003024/0.2248, allocations: 2.413 MB / 345.2 MB, free: 7.934 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.2248, allocations: 55.28 kB / 345.3 MB, free: 7.875 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 2.845e-06/0.2248, allocations: 0 / 345.3 MB, free: 7.875 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.01142/0.2362, allocations: 4.73 MB / 350 MB, free: 3.141 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000896/0.2371, allocations: 2.01 MB / 352 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002365/0.2395, allocations: 2.428 MB / 354.4 MB, free: 14.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001382/0.2396, allocations: 44.2 kB / 354.5 MB, free: 14.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001122/0.2407, allocations: 2.318 MB / 356.8 MB, free: 12.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004781/0.2412, allocations: 0.5442 MB / 357.3 MB, free: 12.12 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009141/0.2421, allocations: 1.009 MB / 358.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.2423, allocations: 0.5312 MB / 358.9 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007455/0.243, allocations: 0.4928 MB / 359.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002507/0.2455, allocations: 4.68 MB / 364 MB, free: 3.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003951/0.2495, allocations: 5.691 MB / 369.7 MB, free: 12.12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.132e-05/0.2496, allocations: 28 kB / 369.8 MB, free: 12.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.007952/0.2575, allocations: 4.329 MB / 374.1 MB, free: 7.742 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.537e-05/0.2576, allocations: 48.97 kB / 374.1 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003711/0.2613, allocations: 1.186 MB / 375.3 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004158/0.2654, allocations: 0.8634 MB / 376.2 MB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002084/0.2675, allocations: 0.9747 MB / 377.2 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005124/0.2726, allocations: 5.222 MB / 382.4 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002412/0.275, allocations: 207.9 kB / 382.6 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003246/0.2754, allocations: 248 kB / 382.8 MB, free: 14.75 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.001091/0.2765, allocations: 0.5353 MB / 383.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003699/0.2768, allocations: 246.5 kB / 383.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002712/0.2771, allocations: 263.7 kB / 383.9 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002107/0.2792, allocations: 0.9563 MB / 384.8 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.2792, allocations: 7.938 kB / 384.8 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.2792, allocations: 7.969 kB / 384.8 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006974/0.2862, allocations: 3.69 MB / 388.5 MB, free: 8.934 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.2862, allocations: 4 kB / 388.5 MB, free: 8.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004338/0.2867, allocations: 139.8 kB / 388.7 MB, free: 8.793 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00203/0.2887, allocations: 0.6714 MB / 389.3 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.22e-05/0.2888, allocations: 31.97 kB / 389.4 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003907/0.2927, allocations: 4.933 MB / 394.3 MB, free: 2.926 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006372/0.2933, allocations: 1.874 MB / 396.2 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003332/0.2966, allocations: 2.199 MB / 398.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004886/0.2971, allocations: 202.4 kB / 398.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001631/0.2973, allocations: 31.98 kB / 398.6 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005188/0.2978, allocations: 20 kB / 398.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.298, allocations: 92.34 kB / 398.7 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.119e-05/0.298, allocations: 31.98 kB / 398.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001166/0.2992, allocations: 0.9635 MB / 399.7 MB, free: 13.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2992, allocations: 4 kB / 399.7 MB, free: 13.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002958/0.3022, allocations: 0.8554 MB / 400.6 MB, free: 12.46 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.0003492/0.3025, allocations: 169.2 kB / 400.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003608/0.3061, allocations: 2.585 MB / 403.3 MB, free: 9.676 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3061, allocations: 0 / 403.3 MB, free: 9.676 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.3073, allocations: 0.9578 MB / 404.3 MB, free: 8.676 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.3085, allocations: 258.5 kB / 404.5 MB, free: 8.426 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006407/0.3149, allocations: 5.193 MB / 409.7 MB, free: 3.141 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006794/0.3156, allocations: 0.7919 MB / 410.5 MB, free: 2.324 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009783/0.3166, allocations: 329.9 kB / 410.8 MB, free: 1.996 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005431/0.3171, allocations: 414.1 kB / 411.2 MB, free: 1.59 MB / 362.7 MB Notification: Performance of SimCode: time 2.093e-06/0.3171, allocations: 0 / 411.2 MB, free: 1.59 MB / 362.7 MB Notification: Performance of Templates: time 0.1333/0.4505, allocations: 30.7 MB / 441.9 MB, free: 114.2 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.705035208724439]