Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001579/0.001579, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001654/0.001654, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.439/1.439, allocations: 227.7 MB / 247.7 MB, free: 10.32 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 68.33 kB / 307.9 MB, free: 468 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1087, allocations: 50.54 MB / 358.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01423/0.1229, allocations: 11.97 MB / 370.4 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.164/0.287, allocations: 4.197 MB / 374.6 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001956/0.289, allocations: 74.84 kB / 374.7 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005287/0.2943, allocations: 2.739 MB / 377.4 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005354/0.2997, allocations: 1.937 MB / 379.4 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002304/0.302, allocations: 0.8109 MB / 380.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007484/0.3095, allocations: 4.679 MB / 384.9 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006048/0.3156, allocations: 3.549 MB / 388.4 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003942/0.3196, allocations: 1.676 MB / 390.1 MB, free: 4.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003658/0.3233, allocations: 2.327 MB / 392.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001512/0.3248, allocations: 351.6 kB / 392.7 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003236/0.3281, allocations: 1.262 MB / 394 MB, free: 3.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002489/0.3306, allocations: 2.076 MB / 396.1 MB, free: 2.023 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002979/0.3336, allocations: 2.412 MB / 398.5 MB, free: 216 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009409/0.343, allocations: 7.196 MB / 405.7 MB, free: 9.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.343, allocations: 0 / 405.7 MB, free: 9.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.343, allocations: 0 / 405.7 MB, free: 9.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002118/0.3433, allocations: 0 / 405.7 MB, free: 9.77 MB / 318.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.354, allocations: 5.229 MB / 410.9 MB, free: 4.586 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.3541, allocations: 15.97 kB / 410.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008655/0.3627, allocations: 2.173 MB / 413.1 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005267/0.368, allocations: 2.429 MB / 415.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002532/0.3683, allocations: 274.6 kB / 415.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001335/0.3696, allocations: 430.9 kB / 416.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02453/0.3942, allocations: 12.26 MB / 428.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001314/0.3944, allocations: 51.52 kB / 428.5 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000512/0.3949, allocations: 176.5 kB / 428.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003499/0.3984, allocations: 2.166 MB / 430.9 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02392/0.4223, allocations: 10.24 MB / 441.1 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05817/0.4805, allocations: 44.32 MB / 485.4 MB, free: 8.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01271/0.4933, allocations: 4.654 MB / 490.1 MB, free: 3.578 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002877/0.4962, allocations: 1.722 MB / 491.8 MB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01348/0.5097, allocations: 8.303 MB / 0.4884 GB, free: 9.199 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.785e-05/0.5098, allocations: 55.8 kB / 0.4884 GB, free: 9.137 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 4.648e-06/0.5098, allocations: 0 / 0.4884 GB, free: 9.137 MB / 414.1 MB Notification: Performance of matching and sorting (n=205): time 0.04402/0.5538, allocations: 16.08 MB / 0.5041 GB, free: 8.891 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001598/0.5555, allocations: 1.692 MB / 0.5058 GB, free: 7.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006723/0.5622, allocations: 4.186 MB / 0.5099 GB, free: 2.812 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004489/0.5627, allocations: 63.91 kB / 0.5099 GB, free: 2.746 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002878/0.5656, allocations: 3.392 MB / 0.5133 GB, free: 15.35 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001204/0.5668, allocations: 0.8056 MB / 0.514 GB, free: 14.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002019/0.5688, allocations: 1.357 MB / 0.5154 GB, free: 13.19 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.569, allocations: 305.2 kB / 0.5157 GB, free: 12.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003838/0.5728, allocations: 2.282 MB / 0.5179 GB, free: 10.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008089/0.5809, allocations: 6.414 MB / 0.5242 GB, free: 2.141 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2398/0.8208, allocations: 9.36 MB / 0.5333 GB, free: 128.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001284/0.821, allocations: 41.69 kB / 0.5333 GB, free: 128.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.0279/0.8489, allocations: 10.16 MB / 0.5433 GB, free: 125.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001391/0.849, allocations: 73.03 kB / 0.5433 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01179/0.8608, allocations: 3.904 MB / 0.5471 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01001/0.8709, allocations: 2.259 MB / 0.5493 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005236/0.8762, allocations: 1.586 MB / 0.5509 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008002/0.8842, allocations: 6.634 MB / 0.5574 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005652/0.8899, allocations: 436 kB / 0.5578 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008583/0.8908, allocations: 416.5 kB / 0.5582 GB, free: 120.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.003135/0.8939, allocations: 2.216 MB / 0.5603 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006329/0.8946, allocations: 373.5 kB / 0.5607 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005499/0.9001, allocations: 3.307 MB / 0.5639 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004461/0.9046, allocations: 2.789 MB / 0.5667 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.9046, allocations: 4.125 kB / 0.5667 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-05/0.9046, allocations: 7.969 kB / 0.5667 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01535/0.92, allocations: 10.36 MB / 0.5768 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.643e-05/0.92, allocations: 16 kB / 0.5768 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/0.9214, allocations: 376.1 kB / 0.5772 GB, free: 105.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002563/0.924, allocations: 0.993 MB / 0.5781 GB, free: 104.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002023/0.9242, allocations: 61.16 kB / 0.5782 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003909/0.9281, allocations: 4.905 MB / 0.583 GB, free: 99.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000738/0.9289, allocations: 1.575 MB / 0.5845 GB, free: 97.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007717/0.9366, allocations: 5.96 MB / 0.5903 GB, free: 91.96 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/0.9379, allocations: 444.1 kB / 0.5908 GB, free: 91.51 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005127/0.9384, allocations: 51.98 kB / 0.5908 GB, free: 91.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001679/0.9401, allocations: 155.8 kB / 0.591 GB, free: 91.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003086/0.9404, allocations: 172.4 kB / 0.5911 GB, free: 91.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/0.9406, allocations: 71.98 kB / 0.5912 GB, free: 91.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003415/0.944, allocations: 2.589 MB / 0.5937 GB, free: 88.47 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.944, allocations: 0 / 0.5937 GB, free: 88.47 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005556/0.9496, allocations: 1.145 MB / 0.5948 GB, free: 87.33 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.0005075/0.9501, allocations: 214.7 kB / 0.595 GB, free: 87.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01018/0.9603, allocations: 6.717 MB / 0.6016 GB, free: 80.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.379e-05/0.9603, allocations: 0 / 0.6016 GB, free: 80.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003479/0.9638, allocations: 2.218 MB / 0.6038 GB, free: 78.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002984/0.9668, allocations: 497.4 kB / 0.6042 GB, free: 77.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0145/0.9813, allocations: 11.24 MB / 0.6152 GB, free: 66.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002752/0.9841, allocations: 3.439 MB / 0.6186 GB, free: 62.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009835/0.9851, allocations: 327.4 kB / 0.6189 GB, free: 62.39 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.9851, allocations: 0 / 0.6189 GB, free: 62.39 MB / 446.1 MB Notification: Performance of Templates: time 0.3107/1.296, allocations: 140.8 MB / 0.7564 GB, free: 102.5 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches