Running command: translateModel(ModelicaTest.MultiBody.Forces.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v|trapezoid.T_start|trapezoid.count",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadModel(ModelicaTest): time 1.897/1.897, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.208e-05/3.228e-05, allocations: 4 kB / 273.1 MB, free: 3.656 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08703/0.08709, allocations: 48.69 MB / 321.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4052/0.4923, allocations: 94.81 MB / 416.6 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/0.4926, allocations: 71.78 kB / 416.6 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.863/1.356, allocations: 145 MB / 0.5484 GB, free: 72.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.969e-06/1.356, allocations: 0 / 0.5484 GB, free: 72.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003094/1.356, allocations: 143.1 kB / 0.5486 GB, free: 72.6 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2741 * Number of variables: 2741 Notification: Performance of Generate backend data structure: time 0.01867/1.375, allocations: 6.642 MB / 0.5551 GB, free: 69.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/1.375, allocations: 6.844 kB / 0.5551 GB, free: 69.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02102/1.396, allocations: 3.617 MB / 0.5586 GB, free: 69.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02084/1.417, allocations: 7.638 MB / 0.5661 GB, free: 68.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000693/1.417, allocations: 0.5934 MB / 0.5666 GB, free: 68.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003329/1.421, allocations: 0.7769 MB / 0.5674 GB, free: 68.53 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05681/1.478, allocations: 21.46 MB / 0.5883 GB, free: 64.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004042/1.478, allocations: 91.44 kB / 0.5884 GB, free: 64.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003004/1.481, allocations: 379.8 kB / 0.5888 GB, free: 64.09 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004094/1.485, allocations: 1.941 MB / 0.5907 GB, free: 64.07 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04756/1.533, allocations: 16.9 MB / 0.6072 GB, free: 61.42 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09785/1.631, allocations: 79.42 MB / 0.6848 GB, free: 3.035 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3065/1.937, allocations: 6.474 MB / 0.6911 GB, free: 81.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004673/1.942, allocations: 2.063 MB / 0.6931 GB, free: 81.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02347/1.965, allocations: 9.776 MB / 0.7026 GB, free: 79.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01911/1.985, allocations: 4.319 MB / 0.7069 GB, free: 79.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=287): time 8.238e-06/1.985, allocations: 0 / 0.7069 GB, free: 79.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=323): time 0.0911/2.076, allocations: 22.69 MB / 0.729 GB, free: 74.62 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/2.076, allocations: 165.6 kB / 0.7292 GB, free: 74.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01095/2.087, allocations: 5.269 MB / 0.7343 GB, free: 73.94 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005206/2.087, allocations: 73.05 kB / 0.7344 GB, free: 73.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004593/2.092, allocations: 5.127 MB / 0.7394 GB, free: 71.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001462/2.094, allocations: 1.234 MB / 0.7406 GB, free: 70.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008605/2.094, allocations: 190 kB / 0.7408 GB, free: 70.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006178/2.095, allocations: 0.7192 MB / 0.7415 GB, free: 69.99 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006324/2.101, allocations: 2.636 MB / 0.7441 GB, free: 69.96 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009041/2.11, allocations: 8.312 MB / 0.7522 GB, free: 62.62 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009079/2.12, allocations: 4.674 MB / 0.7567 GB, free: 61.84 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001787/2.12, allocations: 58.44 kB / 0.7568 GB, free: 61.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.0242/2.144, allocations: 10.04 MB / 0.7666 GB, free: 59.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001777/2.144, allocations: 126.5 kB / 0.7667 GB, free: 59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002393/2.144, allocations: 209.6 kB / 0.7669 GB, free: 59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003453/2.145, allocations: 298.1 kB / 0.7672 GB, free: 59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01088/2.156, allocations: 2.4 MB / 0.7695 GB, free: 58.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003518/2.156, allocations: 399.3 kB / 0.7699 GB, free: 58.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01079/2.167, allocations: 0.6417 MB / 0.7706 GB, free: 58.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001931/2.169, allocations: 0.5695 MB / 0.7711 GB, free: 58.37 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 925 * Number of states: 0 () * Number of discrete variables: 74 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],prismatic2.boxColor[3],prismatic2.boxColor[2],prismatic2.boxColor[1],damper2.color_b[3],damper2.color_b[2],damper2.color_b[1],damper2.color_a[3],damper2.color_a[2],damper2.color_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],force.connectionLineColor[3],force.connectionLineColor[2],force.connectionLineColor[1],force.forceColor[3],force.forceColor[2],force.forceColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[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 (1240): * Single equations (assignments): 1236 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002583/2.172, allocations: 0.8654 MB / 0.772 GB, free: 57.68 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001122/2.173, allocations: 0.5396 MB / 0.7725 GB, free: 57.38 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007592/2.18, allocations: 3.214 MB / 0.7756 GB, free: 56.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-05/2.18, allocations: 36.45 kB / 0.7757 GB, free: 56.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.587e-05/2.18, allocations: 7.781 kB / 0.7757 GB, free: 56.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.143e-05/2.18, allocations: 13.92 kB / 0.7757 GB, free: 56.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03156/2.212, allocations: 13.37 MB / 0.7887 GB, free: 47.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.413e-05/2.212, allocations: 36 kB / 0.7888 GB, free: 47.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003335/2.216, allocations: 0.6043 MB / 0.7894 GB, free: 47.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-05/2.216, allocations: 56.06 kB / 0.7894 GB, free: 47.19 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004367/2.216, allocations: 98.89 kB / 0.7895 GB, free: 47.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-05/2.216, allocations: 71.16 kB / 0.7896 GB, free: 47.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-05/2.216, allocations: 51.77 kB / 0.7896 GB, free: 46.98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01036/2.227, allocations: 11.79 MB / 0.8011 GB, free: 33.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002813/2.229, allocations: 0.8443 MB / 0.802 GB, free: 33.08 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001412/2.231, allocations: 98.75 kB / 0.8021 GB, free: 32.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00431/2.235, allocations: 218.4 kB / 0.8023 GB, free: 32.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007271/2.236, allocations: 304.8 kB / 0.8026 GB, free: 32.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003053/2.236, allocations: 131.3 kB / 0.8027 GB, free: 32.48 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008289/2.245, allocations: 3.643 MB / 0.8062 GB, free: 29.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.202e-06/2.245, allocations: 4 kB / 0.8062 GB, free: 29.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01034/2.255, allocations: 1.555 MB / 0.8078 GB, free: 27.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 147 * Number of states: 7 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (304): * Single equations (assignments): 299 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008392/2.256, allocations: 269.5 kB / 0.808 GB, free: 27.44 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01177/2.268, allocations: 5.901 MB / 0.8138 GB, free: 22.02 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.449e-05/2.268, allocations: 8 kB / 0.8138 GB, free: 22.01 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003546/2.271, allocations: 1.586 MB / 0.8153 GB, free: 20.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004576/2.276, allocations: 0.7124 MB / 0.816 GB, free: 19.94 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03163/2.308, allocations: 13.57 MB / 0.8293 GB, free: 7.383 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01157/2.319, allocations: 5.253 MB / 0.8344 GB, free: 3.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00202/2.321, allocations: 482.3 kB / 0.8349 GB, free: 3.066 MB / 442.7 MB Notification: Performance of SimCode: time 2.064e-06/2.321, allocations: 0 / 0.8349 GB, free: 3.066 MB / 442.7 MB Notification: Performance of Templates: time 0.4166/2.738, allocations: 85.97 MB / 0.9188 GB, free: 69.45 MB / 458.7 MB