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.0008159/0.0008159, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003474/0.003474, allocations: 163 kB / 24.7 MB, free: 9.418 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 0.848/0.848, allocations: 177.2 MB / 205 MB, free: 5.723 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.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",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.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",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.598e-05/1.727e-05, allocations: 3.266 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.007343/0.00736, allocations: 10.48 MB / 336.3 MB, free: 4.895 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004846/0.01221, allocations: 4.036 MB / 340.4 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000566/0.01277, allocations: 83.56 kB / 340.4 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002394/0.01517, allocations: 2.815 MB / 343.3 MB, free: 13.94 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00209/0.01726, allocations: 2.056 MB / 345.3 MB, free: 11.88 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008213/0.01808, allocations: 0.8926 MB / 346.2 MB, free: 10.98 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003156/0.02123, allocations: 5.382 MB / 351.6 MB, free: 5.582 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002323/0.02356, allocations: 3.428 MB / 355 MB, free: 2.105 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001722/0.02528, allocations: 2.6 MB / 357.6 MB, free: 15.5 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001822/0.0271, allocations: 2.615 MB / 360.2 MB, free: 12.88 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003064/0.02741, allocations: 360 kB / 360.6 MB, free: 12.53 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.0288, allocations: 1.221 MB / 361.8 MB, free: 11.3 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001053/0.02985, allocations: 2.236 MB / 364 MB, free: 9.062 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008748/0.03072, allocations: 1.414 MB / 365.4 MB, free: 7.645 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004521/0.03524, allocations: 7.558 MB / 373 MB, free: 64 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.03525, allocations: 0 / 373 MB, free: 64 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.03525, allocations: 0 / 373 MB, free: 64 kB / 330.7 MB Notification: Performance of Transformations before backend: time 4.604e-05/0.03529, allocations: 0 / 373 MB, free: 64 kB / 330.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.005187/0.04048, allocations: 5.365 MB / 378.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.04052, allocations: 16.02 kB / 378.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003906/0.04442, allocations: 2.248 MB / 380.6 MB, free: 8.367 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00263/0.04705, allocations: 2.402 MB / 383 MB, free: 5.918 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.04717, allocations: 274.8 kB / 383.3 MB, free: 5.648 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005192/0.04769, allocations: 439.6 kB / 383.7 MB, free: 5.219 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/0.05929, allocations: 12.36 MB / 396.1 MB, free: 8.027 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.662e-05/0.05937, allocations: 51.52 kB / 396.1 MB, free: 7.977 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002928/0.05966, allocations: 171.8 kB / 396.3 MB, free: 7.809 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001763/0.06143, allocations: 2.158 MB / 398.5 MB, free: 5.645 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01203/0.07345, allocations: 10.26 MB / 408.7 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03203/0.1055, allocations: 41.63 MB / 450.4 MB, free: 0.4961 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1572/0.2627, allocations: 4 MB / 454.4 MB, free: 113.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001625/0.2643, allocations: 1.63 MB / 456 MB, free: 112.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007286/0.2716, allocations: 6.634 MB / 462.6 MB, free: 110 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.2716, allocations: 53.38 kB / 462.7 MB, free: 109.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=183): time 5.46e-06/0.2717, allocations: 0 / 462.7 MB, free: 109.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.0223/0.294, allocations: 16.58 MB / 479.3 MB, free: 96.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007411/0.2947, allocations: 1.558 MB / 480.8 MB, free: 94.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00377/0.2985, allocations: 4.142 MB / 485 MB, free: 90.42 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004076/0.2989, allocations: 53.7 kB / 485 MB, free: 90.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001063/0.2999, allocations: 3.528 MB / 488.5 MB, free: 86.97 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006355/0.3006, allocations: 0.8435 MB / 489.4 MB, free: 86.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009909/0.3016, allocations: 1.346 MB / 490.7 MB, free: 84.78 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.822e-05/0.3016, allocations: 301.1 kB / 491 MB, free: 84.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002365/0.304, allocations: 2.301 MB / 493.3 MB, free: 82.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003289/0.3072, allocations: 6.447 MB / 499.8 MB, free: 73.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006823/0.3141, allocations: 9.376 MB / 0.4972 GB, free: 62.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-05/0.3141, allocations: 48 kB / 0.4973 GB, free: 62.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.013/0.3271, allocations: 10.18 MB / 0.5072 GB, free: 52.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.508e-05/0.3272, allocations: 68 kB / 0.5073 GB, free: 51.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005245/0.3324, allocations: 3.932 MB / 0.5111 GB, free: 48.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004539/0.337, allocations: 2.269 MB / 0.5133 GB, free: 45.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002333/0.3393, allocations: 1.591 MB / 0.5149 GB, free: 44.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004472/0.3438, allocations: 6.323 MB / 0.5211 GB, free: 37.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003002/0.3468, allocations: 0.5033 MB / 0.5215 GB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003282/0.3471, allocations: 419.9 kB / 0.5219 GB, free: 36.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * 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 (856): * Single equations (assignments): 847 * 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.002146/0.3492, allocations: 2.212 MB / 0.5241 GB, free: 34.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003637/0.3496, allocations: 361.6 kB / 0.5245 GB, free: 34.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003203/0.3528, allocations: 3.27 MB / 0.5276 GB, free: 30.84 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002717/0.3555, allocations: 2.773 MB / 0.5304 GB, free: 28.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.3555, allocations: 5.344 kB / 0.5304 GB, free: 28.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.3555, allocations: 11.97 kB / 0.5304 GB, free: 28.03 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008841/0.3644, allocations: 9.056 MB / 0.5392 GB, free: 18.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.3644, allocations: 12 kB / 0.5392 GB, free: 18.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007339/0.3651, allocations: 383.3 kB / 0.5396 GB, free: 18.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001367/0.3665, allocations: 0.9827 MB / 0.5405 GB, free: 17.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.982e-05/0.3666, allocations: 63.97 kB / 0.5406 GB, free: 17.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002481/0.3691, allocations: 4.655 MB / 0.5452 GB, free: 12.44 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004019/0.3695, allocations: 1.427 MB / 0.5465 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004696/0.3742, allocations: 5.918 MB / 0.5523 GB, free: 4.777 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000479/0.3746, allocations: 369.4 kB / 0.5527 GB, free: 4.414 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000216/0.3749, allocations: 59.98 kB / 0.5527 GB, free: 4.355 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009275/0.3758, allocations: 207.4 kB / 0.5529 GB, free: 4.156 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.376, allocations: 184.3 kB / 0.5531 GB, free: 3.977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.164e-05/0.3761, allocations: 75.97 kB / 0.5532 GB, free: 3.902 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001955/0.378, allocations: 2.375 MB / 0.5555 GB, free: 1.543 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.378, allocations: 3.938 kB / 0.5555 GB, free: 1.539 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003355/0.3814, allocations: 1.265 MB / 0.5567 GB, free: 280 kB / 410.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.0003654/0.3817, allocations: 222.6 kB / 0.557 GB, free: 52 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006303/0.388, allocations: 5.7 MB / 0.5625 GB, free: 10.35 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.388, allocations: 0 / 0.5625 GB, free: 10.35 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002126/0.3902, allocations: 1.983 MB / 0.5645 GB, free: 8.336 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001483/0.3916, allocations: 433.3 kB / 0.5649 GB, free: 7.922 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.4022, allocations: 11.07 MB / 0.5757 GB, free: 12.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002271/0.4045, allocations: 2.93 MB / 0.5785 GB, free: 9.664 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005473/0.4051, allocations: 316.4 kB / 0.5788 GB, free: 9.352 MB / 442.7 MB Notification: Performance of SimCode: time 1.332e-06/0.4051, allocations: 0 / 0.5788 GB, free: 9.352 MB / 442.7 MB Notification: Performance of Templates: time 0.2149/0.6199, allocations: 143 MB / 0.7185 GB, free: 61.78 MB / 474.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.283926677890122]