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.00101/0.00101, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001663/0.001663, allocations: 164.2 kB / 25.61 MB, free: 8.559 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.9764/0.9764, allocations: 177.1 MB / 206 MB, free: 4.484 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.833e-06/1.833e-06, allocations: 0 / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.37e-05/2.554e-05, allocations: 5.406 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.009723/0.009748, allocations: 11.28 MB / 285.5 MB, free: 9.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007515/0.01726, allocations: 4.098 MB / 289.6 MB, free: 4.988 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001175/0.01844, allocations: 83.56 kB / 289.7 MB, free: 4.906 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0032/0.02164, allocations: 2.908 MB / 292.6 MB, free: 1.988 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003431/0.02507, allocations: 2.064 MB / 294.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00132/0.02639, allocations: 0.8965 MB / 295.5 MB, free: 15.02 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005245/0.03163, allocations: 5.398 MB / 300.9 MB, free: 9.609 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003246/0.03488, allocations: 3.535 MB / 304.5 MB, free: 6.02 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002586/0.03747, allocations: 2.651 MB / 307.1 MB, free: 3.363 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002449/0.03991, allocations: 2.619 MB / 309.7 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004347/0.04035, allocations: 356 kB / 310.1 MB, free: 400 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001936/0.04228, allocations: 1.217 MB / 311.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00136/0.04365, allocations: 2.252 MB / 313.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.04488, allocations: 1.41 MB / 315 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004547/0.04943, allocations: 5.001 MB / 320 MB, free: 6.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.04944, allocations: 3.938 kB / 320 MB, free: 6.477 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.04944, allocations: 0 / 320 MB, free: 6.477 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.407e-05/0.0495, allocations: 0 / 320 MB, free: 6.477 MB / 298.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.006383/0.05588, allocations: 5.465 MB / 325.4 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.05593, allocations: 11.98 kB / 325.4 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004101/0.06003, allocations: 1.773 MB / 327.2 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0024/0.06243, allocations: 2.027 MB / 329.2 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001671/0.06259, allocations: 274.8 kB / 329.5 MB, free: 12.81 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005979/0.06319, allocations: 423.6 kB / 329.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008295/0.07149, allocations: 6.601 MB / 336.5 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.199e-05/0.07158, allocations: 55.5 kB / 336.6 MB, free: 4.617 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003188/0.0719, allocations: 167.8 kB / 336.7 MB, free: 4.453 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001717/0.07361, allocations: 1.932 MB / 338.7 MB, free: 2.516 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006645/0.08026, allocations: 3.223 MB / 341.9 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1859/0.2661, allocations: 48.81 MB / 390.7 MB, free: 37.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005118/0.2712, allocations: 2.59 MB / 393.3 MB, free: 37.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006838/0.2719, allocations: 0.5759 MB / 393.9 MB, free: 37.36 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005074/0.277, allocations: 4.735 MB / 398.6 MB, free: 35.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.277, allocations: 52.8 kB / 398.7 MB, free: 35.63 MB / 330.7 MB Notification: Performance of pre-optimization done (n=183): time 3.357e-06/0.277, allocations: 0.6875 kB / 398.7 MB, free: 35.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=205): time 0.01844/0.2955, allocations: 8.078 MB / 406.7 MB, free: 31.86 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007035/0.2962, allocations: 2.02 MB / 408.8 MB, free: 29.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003445/0.2996, allocations: 3.67 MB / 412.4 MB, free: 26.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.2997, allocations: 57.7 kB / 412.5 MB, free: 26.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001607/0.3013, allocations: 3.735 MB / 416.2 MB, free: 23.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006003/0.3019, allocations: 0.8646 MB / 417.1 MB, free: 22.22 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/0.3033, allocations: 1.479 MB / 418.6 MB, free: 20.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.571e-05/0.3033, allocations: 476.8 kB / 419 MB, free: 20.26 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001333/0.3047, allocations: 0.716 MB / 419.8 MB, free: 19.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003213/0.3079, allocations: 6.864 MB / 426.6 MB, free: 9.934 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006077/0.314, allocations: 8.359 MB / 435 MB, free: 15.13 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001072/0.3141, allocations: 43.94 kB / 435 MB, free: 15.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.01295/0.327, allocations: 5.91 MB / 440.9 MB, free: 9.156 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.919e-05/0.3271, allocations: 70.56 kB / 441 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005235/0.3324, allocations: 1.356 MB / 442.4 MB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004862/0.3372, allocations: 0.5982 MB / 443 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003925/0.3411, allocations: 1.544 MB / 444.5 MB, free: 5.555 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004654/0.3458, allocations: 4.231 MB / 448.7 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004227/0.35, allocations: 295.8 kB / 449 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00066/0.3507, allocations: 364 kB / 449.4 MB, free: 472 kB / 346.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.001669/0.3523, allocations: 0.7235 MB / 450.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007568/0.3531, allocations: 413.6 kB / 450.5 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002777/0.3559, allocations: 1.548 MB / 452 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001832/0.3577, allocations: 1.043 MB / 453.1 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.3577, allocations: 4 kB / 453.1 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-05/0.3577, allocations: 14.91 kB / 453.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009993/0.3677, allocations: 7.327 MB / 460.4 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/0.3678, allocations: 12 kB / 460.4 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007895/0.3685, allocations: 332.2 kB / 460.8 MB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.3697, allocations: 378.1 kB / 461.1 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.672e-05/0.3697, allocations: 59.97 kB / 461.2 MB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002469/0.3722, allocations: 3.96 MB / 465.2 MB, free: 28 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006738/0.3729, allocations: 1.89 MB / 467 MB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003551/0.3764, allocations: 3.146 MB / 470.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006294/0.3771, allocations: 357.4 kB / 470.5 MB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002715/0.3773, allocations: 51.98 kB / 470.6 MB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/0.3784, allocations: 55.98 kB / 470.6 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/0.3786, allocations: 184.3 kB / 470.8 MB, free: 9.953 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.901e-05/0.3787, allocations: 59.98 kB / 470.9 MB, free: 9.895 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001522/0.3802, allocations: 1.457 MB / 472.3 MB, free: 8.453 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.3802, allocations: 0 / 472.3 MB, free: 8.453 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004618/0.3848, allocations: 1.265 MB / 473.6 MB, free: 7.188 MB / 378.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.0004366/0.3853, allocations: 232.9 kB / 473.8 MB, free: 6.961 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005468/0.3907, allocations: 3.576 MB / 477.4 MB, free: 3.359 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.3907, allocations: 4 kB / 477.4 MB, free: 3.355 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00186/0.3926, allocations: 1.206 MB / 478.6 MB, free: 2.098 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001968/0.3946, allocations: 479.2 kB / 479.1 MB, free: 1.645 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01162/0.4062, allocations: 8.964 MB / 488.1 MB, free: 8.355 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001137/0.4073, allocations: 1.336 MB / 489.4 MB, free: 6.996 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001455/0.4088, allocations: 0.5376 MB / 489.9 MB, free: 6.457 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008977/0.4097, allocations: 0.6543 MB / 490.6 MB, free: 5.801 MB / 394.7 MB Notification: Performance of SimCode: time 1.302e-06/0.4097, allocations: 0 / 490.6 MB, free: 5.801 MB / 394.7 MB Notification: Performance of Templates: time 0.1838/0.5935, allocations: 40.52 MB / 0.5187 GB, free: 135.2 MB / 410.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.520328073762357]