Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadModel(Modelica): time 1.58/1.58, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.933e-05/2.951e-05, allocations: 4 kB / 228.8 MB, free: 15.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2085, allocations: 38.77 MB / 267.6 MB, free: 9.453 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1285/0.337, allocations: 84.65 MB / 352.2 MB, free: 4.676 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/0.3373, allocations: 79.95 kB / 352.3 MB, free: 4.598 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5173/0.8546, allocations: 91.65 MB / 444 MB, free: 2.391 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.594e-06/0.8547, allocations: 0 / 444 MB, free: 2.391 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003109/0.855, allocations: 91.98 kB / 444.1 MB, free: 2.301 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: 1644 * Number of variables: 1644 Notification: Performance of Generate backend data structure: time 0.03206/0.8871, allocations: 4.621 MB / 448.7 MB, free: 13.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.619e-05/0.8872, allocations: 12.03 kB / 448.7 MB, free: 13.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01665/0.9039, allocations: 2.662 MB / 451.4 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01788/0.9218, allocations: 5.543 MB / 456.9 MB, free: 5.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005502/0.9224, allocations: 349.2 kB / 457.2 MB, free: 4.977 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002177/0.9246, allocations: 467.8 kB / 457.7 MB, free: 4.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03405/0.9587, allocations: 12.27 MB / 470 MB, free: 7.074 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002401/0.959, allocations: 63.34 kB / 470 MB, free: 7.012 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001654/0.9606, allocations: 227.9 kB / 470.3 MB, free: 6.789 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00262/0.9633, allocations: 1.178 MB / 471.4 MB, free: 5.605 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02814/0.9914, allocations: 9.915 MB / 481.4 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2771/1.269, allocations: 52.32 MB / 0.5212 GB, free: 27.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01364/1.282, allocations: 4.045 MB / 0.5251 GB, free: 26.98 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003074/1.285, allocations: 1.589 MB / 0.5267 GB, free: 26.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01525/1.301, allocations: 7.409 MB / 0.5339 GB, free: 24.86 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/1.301, allocations: 56.78 kB / 0.534 GB, free: 24.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=165): time 5.529e-06/1.301, allocations: 0 / 0.534 GB, free: 24.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=188): time 0.05079/1.352, allocations: 13.82 MB / 0.5474 GB, free: 21.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001184/1.353, allocations: 1.591 MB / 0.549 GB, free: 20.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0079/1.361, allocations: 3.664 MB / 0.5526 GB, free: 19.81 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003972/1.361, allocations: 51.8 kB / 0.5526 GB, free: 19.78 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002337/1.364, allocations: 3.314 MB / 0.5559 GB, free: 17.64 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000991/1.365, allocations: 0.7444 MB / 0.5566 GB, free: 17.1 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006179/1.365, allocations: 135.8 kB / 0.5567 GB, free: 17 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004387/1.366, allocations: 0.5862 MB / 0.5573 GB, free: 16.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004696/1.37, allocations: 2.091 MB / 0.5593 GB, free: 15.9 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0068/1.377, allocations: 6.155 MB / 0.5653 GB, free: 9.758 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006638/1.384, allocations: 3.534 MB / 0.5688 GB, free: 8.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001309/1.384, allocations: 41.5 kB / 0.5688 GB, free: 8.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=863) (initialization): time 0.02035/1.404, allocations: 8.542 MB / 0.5772 GB, free: 6.207 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/1.405, allocations: 68.72 kB / 0.5772 GB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006479/1.411, allocations: 2.615 MB / 0.5798 GB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003927/1.415, allocations: 0.997 MB / 0.5808 GB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006642/1.422, allocations: 1.592 MB / 0.5823 GB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004258/1.426, allocations: 4.013 MB / 0.5862 GB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007635/1.434, allocations: 0.4977 MB / 0.5867 GB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001468/1.435, allocations: 411.2 kB / 0.5871 GB, free: 14.88 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 42 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (828): * Single equations (assignments): 819 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002008/1.437, allocations: 0.6116 MB / 0.5877 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009876/1.438, allocations: 371.2 kB / 0.5881 GB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008696/1.447, allocations: 3.135 MB / 0.5911 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007118/1.454, allocations: 2.599 MB / 0.5937 GB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.096e-05/1.454, allocations: 4 kB / 0.5937 GB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.985e-05/1.454, allocations: 10.27 kB / 0.5937 GB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02728/1.482, allocations: 9.967 MB / 0.6034 GB, free: 1.152 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.003e-05/1.482, allocations: 12 kB / 0.6034 GB, free: 1.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002103/1.484, allocations: 348.1 kB / 0.6038 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003923/1.488, allocations: 0.9784 MB / 0.6047 GB, free: 212 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004332/1.488, allocations: 61.81 kB / 0.6048 GB, free: 160 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007219/1.495, allocations: 4.593 MB / 0.6093 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001512/1.497, allocations: 1.469 MB / 0.6107 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/1.51, allocations: 7.124 MB / 0.6177 GB, free: 3.398 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002267/1.513, allocations: 0.6515 MB / 0.6183 GB, free: 2.777 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001018/1.514, allocations: 54.12 kB / 0.6183 GB, free: 2.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003192/1.517, allocations: 179.7 kB / 0.6185 GB, free: 2.613 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005945/1.518, allocations: 156.3 kB / 0.6187 GB, free: 2.508 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002372/1.518, allocations: 69.95 kB / 0.6187 GB, free: 2.445 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00642/1.524, allocations: 2.517 MB / 0.6212 GB, free: 212 kB / 378.7 MB Notification: Performance of sort global known variables: time 3.782e-06/1.524, allocations: 0 / 0.6212 GB, free: 212 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.2367/1.761, allocations: 1.518 MB / 0.6227 GB, free: 90.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 56 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 157 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008228/1.762, allocations: 208.2 kB / 0.6229 GB, free: 90.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01416/1.776, allocations: 5.513 MB / 0.6283 GB, free: 90.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/1.776, allocations: 3.812 kB / 0.6283 GB, free: 90.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004926/1.781, allocations: 2.115 MB / 0.6303 GB, free: 89.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003278/1.784, allocations: 447.8 kB / 0.6308 GB, free: 89.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02046/1.805, allocations: 9.192 MB / 0.6397 GB, free: 87.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00636/1.811, allocations: 3.491 MB / 0.6431 GB, free: 86.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/1.813, allocations: 317.8 kB / 0.6434 GB, free: 86.79 MB / 378.7 MB Notification: Performance of SimCode: time 1.993e-06/1.813, allocations: 0 / 0.6434 GB, free: 86.79 MB / 378.7 MB Notification: Performance of Templates: time 0.4549/2.268, allocations: 130.6 MB / 0.771 GB, free: 91.89 MB / 378.7 MB