Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.001389/0.001389, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001321/0.001321, allocations: 169 kB / 24.82 MB, free: 9.27 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/1, allocations: 177.1 MB / 205.3 MB, free: 5.516 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.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.245e-05/2.385e-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.SpringDamperSystem): time 0.01966/0.01969, allocations: 11.29 MB / 284.7 MB, free: 5.961 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006422/0.02611, allocations: 4.098 MB / 288.8 MB, free: 1.852 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001255/0.02737, allocations: 87.62 kB / 288.9 MB, free: 1.766 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1196/0.147, allocations: 2.899 MB / 291.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004906/0.1519, allocations: 2.073 MB / 293.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001625/0.1535, allocations: 0.8922 MB / 294.7 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006808/0.1603, allocations: 5.384 MB / 300.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004405/0.1647, allocations: 3.534 MB / 303.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004374/0.1691, allocations: 2.654 MB / 306.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002914/0.172, allocations: 2.624 MB / 308.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008448/0.1728, allocations: 355.6 kB / 309.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001718/0.1746, allocations: 1.216 MB / 310.5 MB, free: 9.703 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001207/0.1758, allocations: 2.25 MB / 312.7 MB, free: 7.645 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001583/0.1773, allocations: 1.412 MB / 314.2 MB, free: 6.297 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004155/0.1815, allocations: 4.997 MB / 319.2 MB, free: 1.641 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1815, allocations: 0 / 319.2 MB, free: 1.641 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1815, allocations: 0 / 319.2 MB, free: 1.641 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001845/0.1817, allocations: 4 kB / 319.2 MB, free: 1.637 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.006118/0.1878, allocations: 5.466 MB / 324.6 MB, free: 12.54 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.1879, allocations: 12.03 kB / 324.6 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004458/0.1923, allocations: 1.768 MB / 326.4 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002609/0.1949, allocations: 2.031 MB / 328.4 MB, free: 8.895 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.1951, allocations: 270.7 kB / 328.7 MB, free: 8.668 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000581/0.1956, allocations: 427.3 kB / 329.1 MB, free: 8.301 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008903/0.2045, allocations: 6.605 MB / 335.7 MB, free: 1.078 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.329e-05/0.2046, allocations: 50.64 kB / 335.8 MB, free: 1.055 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003293/0.205, allocations: 175.8 kB / 335.9 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001627/0.2066, allocations: 1.926 MB / 337.9 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007195/0.2138, allocations: 3.229 MB / 341.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03599/0.2498, allocations: 48.82 MB / 389.9 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005519/0.2553, allocations: 2.598 MB / 392.5 MB, free: 7.883 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009214/0.2562, allocations: 0.5798 MB / 393.1 MB, free: 7.293 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006386/0.2626, allocations: 4.736 MB / 397.8 MB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.34e-05/0.2627, allocations: 62.58 kB / 397.9 MB, free: 2.449 MB / 346.7 MB Notification: Performance of pre-optimization done (n=183): time 6.973e-06/0.2627, allocations: 4 kB / 397.9 MB, free: 2.445 MB / 346.7 MB Notification: Performance of matching and sorting (n=205): time 0.01966/0.2823, allocations: 8.064 MB / 406 MB, free: 10.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001234/0.2836, allocations: 2.009 MB / 408 MB, free: 8.156 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003539/0.2871, allocations: 3.669 MB / 411.6 MB, free: 4.488 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000233/0.2873, allocations: 53.86 kB / 411.7 MB, free: 4.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002073/0.2894, allocations: 3.736 MB / 415.4 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008005/0.2902, allocations: 0.8723 MB / 416.3 MB, free: 15.78 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/0.2915, allocations: 1.479 MB / 417.8 MB, free: 14.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.2916, allocations: 492.7 kB / 418.3 MB, free: 13.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.2928, allocations: 0.7043 MB / 419 MB, free: 13.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004108/0.2969, allocations: 6.856 MB / 425.8 MB, free: 3.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007058/0.304, allocations: 8.372 MB / 434.2 MB, free: 8.25 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001343/0.3041, allocations: 47.94 kB / 434.2 MB, free: 8.203 MB / 394.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.01078/0.3149, allocations: 5.904 MB / 440.1 MB, free: 2.277 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.747e-05/0.315, allocations: 68 kB / 440.2 MB, free: 2.211 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003687/0.3187, allocations: 1.357 MB / 441.6 MB, free: 0.8359 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003468/0.3221, allocations: 0.5957 MB / 442.2 MB, free: 228 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1502/0.4724, allocations: 1.533 MB / 443.7 MB, free: 122.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004897/0.4773, allocations: 4.225 MB / 447.9 MB, free: 118.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00597/0.4832, allocations: 305.3 kB / 448.2 MB, free: 118.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001323/0.4846, allocations: 364.2 kB / 448.6 MB, free: 118.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 666 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (857): * Single equations (assignments): 848 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002522/0.4871, allocations: 0.7219 MB / 449.3 MB, free: 118.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009343/0.488, allocations: 412.1 kB / 449.7 MB, free: 118.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003765/0.4918, allocations: 1.555 MB / 451.3 MB, free: 118.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002658/0.4944, allocations: 1.044 MB / 452.3 MB, free: 118.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.028e-05/0.4945, allocations: 3.562 kB / 452.3 MB, free: 118.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.351e-05/0.4945, allocations: 8.578 kB / 452.3 MB, free: 118.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01161/0.5061, allocations: 7.343 MB / 459.7 MB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.691e-05/0.5061, allocations: 11.81 kB / 459.7 MB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007802/0.5069, allocations: 330.7 kB / 460 MB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001049/0.5079, allocations: 375.8 kB / 460.4 MB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.5081, allocations: 62.52 kB / 460.4 MB, free: 116.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001754/0.5098, allocations: 3.97 MB / 464.4 MB, free: 113.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004621/0.5103, allocations: 1.882 MB / 466.3 MB, free: 111.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00334/0.5136, allocations: 3.148 MB / 469.4 MB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006264/0.5142, allocations: 352 kB / 469.8 MB, free: 110 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002955/0.5145, allocations: 58.52 kB / 469.8 MB, free: 110 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008065/0.5153, allocations: 54.05 kB / 469.9 MB, free: 110 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/0.5156, allocations: 182.2 kB / 470 MB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.547e-05/0.5156, allocations: 69.95 kB / 470.1 MB, free: 109.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00153/0.5172, allocations: 1.461 MB / 471.6 MB, free: 109.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5172, allocations: 0 / 471.6 MB, free: 109.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003613/0.5208, allocations: 1.255 MB / 472.8 MB, free: 109.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003828/0.5212, allocations: 230.4 kB / 473.1 MB, free: 109.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004371/0.5255, allocations: 3.582 MB / 476.6 MB, free: 108.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.5255, allocations: 3.75 kB / 476.6 MB, free: 108.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001313/0.5269, allocations: 1.201 MB / 477.8 MB, free: 107.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001833/0.5287, allocations: 477.4 kB / 478.3 MB, free: 107.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.5393, allocations: 8.973 MB / 487.3 MB, free: 99.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009967/0.5403, allocations: 1.333 MB / 488.6 MB, free: 98.4 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0014/0.5417, allocations: 0.5483 MB / 489.2 MB, free: 97.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008075/0.5425, allocations: 0.6504 MB / 489.8 MB, free: 97.25 MB / 394.7 MB Notification: Performance of SimCode: time 1.283e-06/0.5425, allocations: 0 / 489.8 MB, free: 97.25 MB / 394.7 MB Notification: Performance of Templates: time 0.0563/0.5988, allocations: 39.62 MB / 0.517 GB, free: 58.11 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.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: 4.081192194018513]