Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001479/0.001479, allocations: 113.2 kB / 17.73 MB, free: 5.34 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.001903/0.001903, allocations: 188.2 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.584/1.584, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 51.92 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09661/0.09797, allocations: 46.61 MB / 375.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2137/0.3117, allocations: 12.04 MB / 387.2 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009267/0.321, allocations: 4.189 MB / 391.4 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002353/0.3235, allocations: 68.94 kB / 391.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005189/0.3287, allocations: 2.759 MB / 394.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006172/0.3349, allocations: 1.971 MB / 396.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002073/0.3369, allocations: 0.8055 MB / 397 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007667/0.3446, allocations: 4.625 MB / 401.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004615/0.3493, allocations: 3.558 MB / 405.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003341/0.3526, allocations: 1.705 MB / 406.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00435/0.357, allocations: 2.345 MB / 409.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001056/0.3581, allocations: 352.2 kB / 409.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003012/0.3611, allocations: 1.273 MB / 410.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002332/0.3634, allocations: 2.124 MB / 413 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003415/0.3669, allocations: 2.435 MB / 415.4 MB, free: 7.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009976/0.3769, allocations: 7.532 MB / 422.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.3769, allocations: 0 / 422.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.3769, allocations: 0 / 422.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002351/0.3772, allocations: 0 / 422.9 MB, free: 15.66 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.01475/0.3919, allocations: 5.278 MB / 428.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.392, allocations: 12.03 kB / 428.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00828/0.4003, allocations: 2.116 MB / 430.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004897/0.4052, allocations: 2.634 MB / 433 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000232/0.4055, allocations: 270.9 kB / 433.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/0.4066, allocations: 439.6 kB / 433.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02491/0.4315, allocations: 12.22 MB / 445.9 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002348/0.4318, allocations: 55.52 kB / 445.9 MB, free: 7.703 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001404/0.4332, allocations: 171.8 kB / 446.1 MB, free: 7.535 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003607/0.4368, allocations: 2.166 MB / 448.3 MB, free: 5.367 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02465/0.4615, allocations: 10.21 MB / 458.5 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0613/0.5228, allocations: 44.12 MB / 0.4908 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01219/0.5351, allocations: 4.609 MB / 0.4953 GB, free: 8.957 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002837/0.538, allocations: 1.72 MB / 0.497 GB, free: 7.227 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01404/0.552, allocations: 8.216 MB / 0.505 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.872e-05/0.5521, allocations: 59.81 kB / 0.5051 GB, free: 14.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.56e-06/0.5522, allocations: 0 / 0.5051 GB, free: 14.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04397/0.5961, allocations: 15.97 MB / 0.5207 GB, free: 14.41 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001508/0.5977, allocations: 1.692 MB / 0.5223 GB, free: 12.54 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008631/0.6064, allocations: 4.211 MB / 0.5264 GB, free: 8.305 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005033/0.6069, allocations: 57.7 kB / 0.5265 GB, free: 8.242 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002778/0.6097, allocations: 3.412 MB / 0.5298 GB, free: 4.781 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001061/0.6108, allocations: 0.8062 MB / 0.5306 GB, free: 3.965 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003104/0.6139, allocations: 1.357 MB / 0.5319 GB, free: 2.598 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.68e-05/0.614, allocations: 305.1 kB / 0.5322 GB, free: 2.297 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003811/0.6178, allocations: 2.262 MB / 0.5344 GB, free: 32 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006634/0.6245, allocations: 6.394 MB / 0.5407 GB, free: 7.59 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2647/0.8892, allocations: 9.322 MB / 0.5498 GB, free: 140.7 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001713/0.8894, allocations: 41.88 kB / 0.5498 GB, free: 140.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02448/0.9139, allocations: 10.06 MB / 0.5596 GB, free: 138.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.9141, allocations: 71.64 kB / 0.5597 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01203/0.9261, allocations: 3.788 MB / 0.5634 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01046/0.9366, allocations: 2.162 MB / 0.5655 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005306/0.9419, allocations: 1.583 MB / 0.5671 GB, free: 137.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008414/0.9504, allocations: 6.601 MB / 0.5735 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005067/0.9554, allocations: 424.8 kB / 0.5739 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007295/0.9562, allocations: 417.6 kB / 0.5743 GB, free: 133.3 MB / 478.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.00345/0.9596, allocations: 2.224 MB / 0.5765 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005426/0.9602, allocations: 374.3 kB / 0.5768 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005605/0.9658, allocations: 3.289 MB / 0.5801 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004547/0.9704, allocations: 2.74 MB / 0.5827 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/0.9704, allocations: 7.969 kB / 0.5827 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.939e-05/0.9704, allocations: 7.969 kB / 0.5828 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01424/0.9847, allocations: 10.34 MB / 0.5928 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.86e-05/0.9847, allocations: 14.75 kB / 0.5929 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/0.9861, allocations: 367.4 kB / 0.5932 GB, free: 122.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002699/0.9888, allocations: 0.9885 MB / 0.5942 GB, free: 121.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001595/0.989, allocations: 59.97 kB / 0.5942 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003905/0.9929, allocations: 4.912 MB / 0.599 GB, free: 115.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007094/0.9936, allocations: 1.563 MB / 0.6006 GB, free: 114.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007197/1.001, allocations: 5.903 MB / 0.6063 GB, free: 108.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/1.002, allocations: 0.6561 MB / 0.607 GB, free: 107.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004124/1.003, allocations: 55.98 kB / 0.607 GB, free: 107.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00157/1.004, allocations: 147.8 kB / 0.6072 GB, free: 107.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002971/1.004, allocations: 177.6 kB / 0.6073 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/1.005, allocations: 75.58 kB / 0.6074 GB, free: 107.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003102/1.008, allocations: 2.613 MB / 0.6099 GB, free: 104.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.008, allocations: 0 / 0.6099 GB, free: 104.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004915/1.013, allocations: 1.161 MB / 0.6111 GB, free: 103.3 MB / 478.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.0004244/1.013, allocations: 234.3 kB / 0.6113 GB, free: 103.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008236/1.021, allocations: 6.032 MB / 0.6172 GB, free: 97.04 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/1.021, allocations: 4 kB / 0.6172 GB, free: 97.04 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003592/1.025, allocations: 2.193 MB / 0.6193 GB, free: 94.78 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002788/1.028, allocations: 0.4921 MB / 0.6198 GB, free: 94.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01416/1.042, allocations: 10.64 MB / 0.6302 GB, free: 83.47 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002781/1.045, allocations: 3.463 MB / 0.6336 GB, free: 79.97 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003719/1.048, allocations: 2.03 MB / 0.6356 GB, free: 77.93 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005818/1.049, allocations: 271.4 kB / 0.6358 GB, free: 77.67 MB / 478.1 MB Notification: Performance of SimCode: time 8.11e-07/1.049, allocations: 1.312 kB / 0.6358 GB, free: 77.67 MB / 478.1 MB Notification: Performance of Templates: time 0.05973/1.109, allocations: 38.46 MB / 0.6734 GB, free: 39.28 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches