Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001425/0.001425, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001608/0.001608, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.9 MB, free: 10.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 63.3 kB / 306.9 MB, free: 1.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09085/0.09223, allocations: 50.53 MB / 357.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.1822/0.2745, allocations: 46.65 MB / 404.1 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02116/0.2957, allocations: 9.852 MB / 413.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008088/0.3038, allocations: 200.1 kB / 414.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005123/0.309, allocations: 2.718 MB / 416.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004431/0.3134, allocations: 1.816 MB / 418.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00168/0.3151, allocations: 0.749 MB / 419.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006997/0.3221, allocations: 6.564 MB / 426 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004864/0.327, allocations: 3.53 MB / 429.5 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002648/0.3297, allocations: 1.499 MB / 431 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003502/0.3332, allocations: 2.5 MB / 433.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001068/0.3343, allocations: 260 kB / 433.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002869/0.3372, allocations: 1.221 MB / 435 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002442/0.3397, allocations: 2.018 MB / 437 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003404/0.3431, allocations: 2.333 MB / 439.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006134/0.3492, allocations: 5.781 MB / 445.1 MB, free: 3.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3493, allocations: 4 kB / 445.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3493, allocations: 0 / 445.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002194/0.3495, allocations: 0 / 445.1 MB, free: 3.914 MB / 350.1 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.01127/0.3608, allocations: 5.243 MB / 450.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.3608, allocations: 12.03 kB / 450.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008351/0.3692, allocations: 2.167 MB / 452.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00496/0.3742, allocations: 2.431 MB / 455 MB, free: 9.922 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002389/0.3744, allocations: 278.8 kB / 455.3 MB, free: 9.648 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001345/0.3758, allocations: 427.7 kB / 455.7 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0229/0.3987, allocations: 12.26 MB / 467.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001854/0.3989, allocations: 55.47 kB / 468 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008953/0.3998, allocations: 171.8 kB / 468.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003255/0.4031, allocations: 2.158 MB / 470.3 MB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02137/0.4245, allocations: 10.25 MB / 480.6 MB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05722/0.4817, allocations: 44.32 MB / 0.5126 GB, free: 1.926 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/0.4939, allocations: 4.645 MB / 0.5171 GB, free: 13.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002668/0.4966, allocations: 1.72 MB / 0.5188 GB, free: 11.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01405/0.5107, allocations: 8.322 MB / 0.5269 GB, free: 2.629 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.114e-05/0.5108, allocations: 51.88 kB / 0.527 GB, free: 2.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 6.151e-06/0.5108, allocations: 0 / 0.527 GB, free: 2.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2375/0.7483, allocations: 16.05 MB / 0.5426 GB, free: 104.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000833/0.7491, allocations: 1.61 MB / 0.5442 GB, free: 103.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004622/0.7538, allocations: 4.188 MB / 0.5483 GB, free: 102.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001964/0.754, allocations: 52.27 kB / 0.5484 GB, free: 102.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001346/0.7553, allocations: 3.401 MB / 0.5517 GB, free: 100.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005246/0.7559, allocations: 0.8008 MB / 0.5525 GB, free: 100.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001213/0.7571, allocations: 1.358 MB / 0.5538 GB, free: 100.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.86e-05/0.7571, allocations: 304.7 kB / 0.5541 GB, free: 99.76 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002585/0.7597, allocations: 2.287 MB / 0.5563 GB, free: 99.05 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003652/0.7634, allocations: 6.412 MB / 0.5626 GB, free: 92.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006687/0.7701, allocations: 9.354 MB / 0.5717 GB, free: 83.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.131e-05/0.7701, allocations: 40 kB / 0.5717 GB, free: 83.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01718/0.7873, allocations: 10.16 MB / 0.5817 GB, free: 74.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.532e-05/0.7874, allocations: 69.42 kB / 0.5817 GB, free: 74.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009446/0.7969, allocations: 3.904 MB / 0.5855 GB, free: 70.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009062/0.8059, allocations: 2.252 MB / 0.5877 GB, free: 68.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004565/0.8105, allocations: 1.594 MB / 0.5893 GB, free: 66.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006665/0.8172, allocations: 6.093 MB / 0.5953 GB, free: 60.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004771/0.822, allocations: 442.4 kB / 0.5957 GB, free: 60.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005027/0.8225, allocations: 416 kB / 0.5961 GB, free: 59.7 MB / 446.1 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.002479/0.825, allocations: 2.219 MB / 0.5982 GB, free: 57.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004928/0.8255, allocations: 376.2 kB / 0.5986 GB, free: 57.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00511/0.8306, allocations: 3.311 MB / 0.6018 GB, free: 53.91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004274/0.8349, allocations: 2.783 MB / 0.6045 GB, free: 51.12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.8349, allocations: 7.984 kB / 0.6046 GB, free: 51.12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.8349, allocations: 7.969 kB / 0.6046 GB, free: 51.11 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01348/0.8484, allocations: 10.37 MB / 0.6147 GB, free: 40.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/0.8485, allocations: 12 kB / 0.6147 GB, free: 40.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/0.8498, allocations: 373.1 kB / 0.6151 GB, free: 40.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002523/0.8523, allocations: 0.9887 MB / 0.616 GB, free: 39.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001347/0.8525, allocations: 59.97 kB / 0.6161 GB, free: 39.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003586/0.8561, allocations: 4.606 MB / 0.6206 GB, free: 34.36 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006393/0.8567, allocations: 1.47 MB / 0.622 GB, free: 32.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007137/0.8639, allocations: 5.968 MB / 0.6278 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007426/0.8646, allocations: 436 kB / 0.6283 GB, free: 26.17 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000382/0.865, allocations: 63.91 kB / 0.6283 GB, free: 26.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/0.8665, allocations: 151.8 kB / 0.6285 GB, free: 25.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000262/0.8667, allocations: 179.5 kB / 0.6286 GB, free: 25.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.8669, allocations: 71.98 kB / 0.6287 GB, free: 25.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002737/0.8696, allocations: 2.585 MB / 0.6312 GB, free: 23.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8696, allocations: 0 / 0.6312 GB, free: 23.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004554/0.8742, allocations: 1.145 MB / 0.6324 GB, free: 21.99 MB / 446.1 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.0003727/0.8746, allocations: 216.2 kB / 0.6326 GB, free: 21.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007717/0.8823, allocations: 6.02 MB / 0.6384 GB, free: 16.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.8823, allocations: 5.531 kB / 0.6384 GB, free: 16.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002994/0.8853, allocations: 2.222 MB / 0.6406 GB, free: 13.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002454/0.8878, allocations: 478.9 kB / 0.6411 GB, free: 13.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01482/0.9026, allocations: 13.38 MB / 0.6541 GB, free: 15.86 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0037/0.9063, allocations: 3.454 MB / 0.6575 GB, free: 12.37 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001062/0.9074, allocations: 323.4 kB / 0.6578 GB, free: 12.05 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.9074, allocations: 0 / 0.6578 GB, free: 12.05 MB / 462.1 MB Notification: Performance of Templates: time 0.3014/1.209, allocations: 140.8 MB / 0.7953 GB, free: 124.8 MB / 0.4981 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches