Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 115.8 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001129, allocations: 185.5 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 51.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2791, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01312/0.2923, allocations: 12 MB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00872/0.3011, allocations: 4.203 MB / 417.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002453/0.3036, allocations: 75.75 kB / 417.7 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005487/0.3091, allocations: 2.749 MB / 420.4 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005586/0.3147, allocations: 1.965 MB / 422.4 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002073/0.3168, allocations: 0.8189 MB / 423.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007026/0.3239, allocations: 4.599 MB / 427.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005071/0.329, allocations: 3.541 MB / 431.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003194/0.3322, allocations: 1.686 MB / 433 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003672/0.3359, allocations: 2.332 MB / 435.4 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001356/0.3373, allocations: 352 kB / 435.7 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003011/0.3403, allocations: 1.287 MB / 437 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002545/0.3429, allocations: 2.116 MB / 439.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003638/0.3465, allocations: 2.435 MB / 441.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008054/0.3546, allocations: 7.524 MB / 449.1 MB, free: 8.984 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.3547, allocations: 3.984 kB / 449.1 MB, free: 8.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3547, allocations: 3.938 kB / 449.1 MB, free: 8.977 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002005/0.3549, allocations: 0 / 449.1 MB, free: 8.977 MB / 366.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.01074/0.3656, allocations: 5.277 MB / 454.4 MB, free: 3.633 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.3657, allocations: 8.031 kB / 454.4 MB, free: 3.625 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008233/0.3739, allocations: 2.116 MB / 456.5 MB, free: 1.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004849/0.3788, allocations: 2.536 MB / 459 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001928/0.379, allocations: 278.8 kB / 459.3 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001053/0.3801, allocations: 431.6 kB / 459.7 MB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02212/0.4022, allocations: 12.22 MB / 471.9 MB, free: 1.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001203/0.4024, allocations: 51.53 kB / 472 MB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005062/0.4029, allocations: 167.8 kB / 472.2 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003132/0.406, allocations: 2.166 MB / 474.3 MB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02145/0.4275, allocations: 10.2 MB / 484.5 MB, free: 4.578 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0502/0.4777, allocations: 44.12 MB / 0.5162 GB, free: 7.211 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01212/0.4899, allocations: 4.605 MB / 0.5207 GB, free: 2.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00252/0.4925, allocations: 1.72 MB / 0.5224 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0116/0.5041, allocations: 8.238 MB / 0.5305 GB, free: 8.055 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.616e-05/0.5042, allocations: 55.81 kB / 0.5305 GB, free: 7.992 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 4.81e-06/0.5042, allocations: 0 / 0.5305 GB, free: 7.992 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.2825/0.7867, allocations: 15.91 MB / 0.5461 GB, free: 128.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00102/0.7878, allocations: 1.693 MB / 0.5477 GB, free: 126.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005301/0.7931, allocations: 4.191 MB / 0.5518 GB, free: 125.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004264/0.7935, allocations: 57.52 kB / 0.5519 GB, free: 125.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001562/0.7951, allocations: 3.404 MB / 0.5552 GB, free: 122.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000781/0.7959, allocations: 0.803 MB / 0.556 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001439/0.7973, allocations: 1.361 MB / 0.5573 GB, free: 121.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.749e-05/0.7974, allocations: 301.9 kB / 0.5576 GB, free: 120.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002941/0.8003, allocations: 2.269 MB / 0.5598 GB, free: 120.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004338/0.8047, allocations: 6.389 MB / 0.566 GB, free: 113.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008371/0.8131, allocations: 9.331 MB / 0.5752 GB, free: 102.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/0.8133, allocations: 40 kB / 0.5752 GB, free: 102.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02089/0.8342, allocations: 10.06 MB / 0.585 GB, free: 92.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.488e-05/0.8343, allocations: 68 kB / 0.5851 GB, free: 92.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0101/0.8444, allocations: 3.795 MB / 0.5888 GB, free: 88.28 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00957/0.854, allocations: 2.164 MB / 0.5909 GB, free: 86.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004888/0.859, allocations: 1.583 MB / 0.5924 GB, free: 84.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007427/0.8664, allocations: 6.604 MB / 0.5989 GB, free: 77.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005501/0.8719, allocations: 428.8 kB / 0.5993 GB, free: 77.22 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009618/0.8729, allocations: 423.5 kB / 0.5997 GB, free: 76.81 MB / 462.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.003292/0.8762, allocations: 2.209 MB / 0.6019 GB, free: 74.59 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006344/0.8769, allocations: 375.1 kB / 0.6022 GB, free: 74.22 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0057/0.8826, allocations: 3.29 MB / 0.6054 GB, free: 70.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00471/0.8873, allocations: 2.742 MB / 0.6081 GB, free: 68.15 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-05/0.8874, allocations: 7.938 kB / 0.6081 GB, free: 68.14 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-05/0.8874, allocations: 7.969 kB / 0.6081 GB, free: 68.13 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01593/0.9034, allocations: 10.32 MB / 0.6182 GB, free: 57.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.436e-05/0.9034, allocations: 16 kB / 0.6182 GB, free: 57.56 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/0.9049, allocations: 367.4 kB / 0.6186 GB, free: 57.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002697/0.9076, allocations: 0.9908 MB / 0.6195 GB, free: 56.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002977/0.9079, allocations: 64.05 kB / 0.6196 GB, free: 56.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004076/0.912, allocations: 4.9 MB / 0.6244 GB, free: 50.96 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007817/0.9128, allocations: 1.552 MB / 0.6259 GB, free: 49.26 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008298/0.9211, allocations: 5.918 MB / 0.6317 GB, free: 43.14 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/0.9224, allocations: 440 kB / 0.6321 GB, free: 42.69 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005216/0.923, allocations: 63.97 kB / 0.6322 GB, free: 42.63 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/0.9247, allocations: 155.2 kB / 0.6323 GB, free: 42.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003288/0.925, allocations: 168.6 kB / 0.6325 GB, free: 42.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001386/0.9252, allocations: 79.97 kB / 0.6325 GB, free: 42.24 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003691/0.9289, allocations: 2.589 MB / 0.6351 GB, free: 39.64 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.9289, allocations: 4 kB / 0.6351 GB, free: 39.64 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006279/0.9352, allocations: 1.165 MB / 0.6362 GB, free: 38.48 MB / 462.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.0005721/0.9358, allocations: 223.5 kB / 0.6364 GB, free: 38.26 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009731/0.9455, allocations: 6.035 MB / 0.6423 GB, free: 32.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.749e-05/0.9456, allocations: 8 kB / 0.6423 GB, free: 32.19 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004111/0.9497, allocations: 2.2 MB / 0.6445 GB, free: 29.92 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004556/0.9543, allocations: 0.4911 MB / 0.645 GB, free: 29.43 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01672/0.9711, allocations: 11.08 MB / 0.6558 GB, free: 18.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003017/0.9741, allocations: 3.457 MB / 0.6592 GB, free: 14.65 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/0.9753, allocations: 323.4 kB / 0.6595 GB, free: 14.33 MB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/0.9753, allocations: 0 / 0.6595 GB, free: 14.33 MB / 462.1 MB Notification: Performance of Templates: time 0.3493/1.325, allocations: 141.9 MB / 0.798 GB, free: 117.7 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches