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.2_cpp_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadModel(ModelicaTest): time 2.354/2.354, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.092e-05/3.061e-05, allocations: 7.938 kB / 308 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3618, allocations: 54.85 MB / 362.8 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.1247/0.4865, allocations: 69.02 MB / 431.9 MB, free: 8.664 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04536/0.5319, allocations: 14.54 MB / 446.4 MB, free: 10.08 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01616/0.5481, allocations: 367.1 kB / 446.8 MB, free: 9.719 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01267/0.5609, allocations: 3.64 MB / 450.4 MB, free: 6.062 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0363/0.5972, allocations: 9.649 MB / 460.1 MB, free: 12.38 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006571/0.6038, allocations: 1.022 MB / 461.1 MB, free: 11.36 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008686/0.6126, allocations: 2.886 MB / 464 MB, free: 8.473 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01649/0.6291, allocations: 7.702 MB / 471.7 MB, free: 0.7227 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003701/0.6329, allocations: 1.387 MB / 473.1 MB, free: 15.33 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005226/0.6382, allocations: 2.353 MB / 475.4 MB, free: 12.97 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003486/0.6417, allocations: 0.7842 MB / 476.2 MB, free: 12.19 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00198/0.6438, allocations: 200 kB / 476.4 MB, free: 11.99 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004795/0.6486, allocations: 2.688 MB / 479.1 MB, free: 9.297 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002566/0.6512, allocations: 464 kB / 479.5 MB, free: 8.844 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01491/0.6662, allocations: 9.325 MB / 488.8 MB, free: 15.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.6663, allocations: 7.938 kB / 488.9 MB, free: 15.49 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.6663, allocations: 0 / 488.9 MB, free: 15.49 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004511/0.6667, allocations: 3.938 kB / 488.9 MB, free: 15.48 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.02071/0.6875, allocations: 6.536 MB / 495.4 MB, free: 8.863 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.6875, allocations: 12.03 kB / 495.4 MB, free: 8.852 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02269/0.7102, allocations: 3.266 MB / 498.7 MB, free: 5.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01278/0.7231, allocations: 4.377 MB / 0.4913 GB, free: 1.133 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006863/0.7238, allocations: 455.4 kB / 0.4917 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002771/0.7266, allocations: 0.5817 MB / 0.4923 GB, free: 108 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6407/1.367, allocations: 21.48 MB / 0.5132 GB, free: 107 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003557/1.368, allocations: 82.44 kB / 0.5133 GB, free: 106.9 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002378/1.37, allocations: 279.7 kB / 0.5136 GB, free: 106.7 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008787/1.379, allocations: 3.533 MB / 0.517 GB, free: 103.2 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.062/1.441, allocations: 17.49 MB / 0.5341 GB, free: 85.76 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1132/1.554, allocations: 70.24 MB / 0.6027 GB, free: 14.35 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07457/1.629, allocations: 14.57 MB / 0.6169 GB, free: 15.62 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0381/1.667, allocations: 14.39 MB / 0.631 GB, free: 0.9883 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0751/1.742, allocations: 12.47 MB / 0.6432 GB, free: 4.453 MB / 458.8 MB Notification: Performance of pre-optimization done (n=287): time 1.132e-05/1.742, allocations: 0 / 0.6432 GB, free: 4.453 MB / 458.8 MB Notification: Performance of matching and sorting (n=323): time 0.6157/2.358, allocations: 43.61 MB / 0.6858 GB, free: 167 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.919e-05/2.358, allocations: 163 kB / 0.6859 GB, free: 166.8 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01295/2.371, allocations: 5.696 MB / 0.6915 GB, free: 164.8 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007507/2.372, allocations: 77.48 kB / 0.6916 GB, free: 164.7 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005266/2.377, allocations: 5.145 MB / 0.6966 GB, free: 160.8 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00198/2.379, allocations: 1.233 MB / 0.6978 GB, free: 159.9 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000896/2.38, allocations: 191.4 kB / 0.698 GB, free: 159.7 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0005223/2.381, allocations: 0.7182 MB / 0.6987 GB, free: 159.2 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008636/2.389, allocations: 3.305 MB / 0.7019 GB, free: 158.2 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01444/2.404, allocations: 9.053 MB / 0.7107 GB, free: 149.4 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01782/2.422, allocations: 5.247 MB / 0.7159 GB, free: 147.4 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002061/2.422, allocations: 60.22 kB / 0.7159 GB, free: 147.4 MB / 490.8 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.04428/2.466, allocations: 12.1 MB / 0.7277 GB, free: 138.4 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002312/2.467, allocations: 122.8 kB / 0.7279 GB, free: 138.3 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003296/2.467, allocations: 204 kB / 0.728 GB, free: 138.1 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001731/2.469, allocations: 0.5285 MB / 0.7286 GB, free: 137.6 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01969/2.489, allocations: 2.402 MB / 0.7309 GB, free: 135.2 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00531/2.494, allocations: 2.719 MB / 0.7336 GB, free: 132.3 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0156/2.51, allocations: 0.5579 MB / 0.7341 GB, free: 131.8 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002344/2.512, allocations: 0.5742 MB / 0.7347 GB, free: 131.2 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 931 * 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 (1243): * Single equations (assignments): 1238 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01072/2.523, allocations: 3.329 MB / 0.7379 GB, free: 127.9 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001629/2.524, allocations: 0.5392 MB / 0.7384 GB, free: 127.3 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/2.536, allocations: 4.475 MB / 0.7428 GB, free: 122.8 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-05/2.537, allocations: 35.52 kB / 0.7429 GB, free: 122.8 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/2.537, allocations: 0 / 0.7429 GB, free: 122.8 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.774e-05/2.537, allocations: 20.78 kB / 0.7429 GB, free: 122.7 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03424/2.571, allocations: 13.51 MB / 0.7561 GB, free: 108.8 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.354e-05/2.571, allocations: 28 kB / 0.7561 GB, free: 108.8 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005504/2.576, allocations: 0.6947 MB / 0.7568 GB, free: 108.1 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-05/2.577, allocations: 48.83 kB / 0.7568 GB, free: 108 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003798/2.577, allocations: 95.97 kB / 0.7569 GB, free: 107.9 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.593e-05/2.577, allocations: 59.73 kB / 0.757 GB, free: 107.9 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.626e-05/2.577, allocations: 43.81 kB / 0.757 GB, free: 107.8 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01575/2.593, allocations: 11.47 MB / 0.7682 GB, free: 94.85 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003131/2.596, allocations: 0.8764 MB / 0.7691 GB, free: 93.95 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001653/2.598, allocations: 87.98 kB / 0.7691 GB, free: 93.86 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004576/2.602, allocations: 190 kB / 0.7693 GB, free: 93.68 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007105/2.603, allocations: 280.4 kB / 0.7696 GB, free: 93.41 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002811/2.603, allocations: 124.5 kB / 0.7697 GB, free: 93.29 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.008905/2.612, allocations: 3.979 MB / 0.7736 GB, free: 89.31 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.022e-06/2.612, allocations: 0 / 0.7736 GB, free: 89.31 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01065/2.623, allocations: 1.606 MB / 0.7752 GB, free: 87.71 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 123 * 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 (308): * Single equations (assignments): 303 * 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.001142/2.624, allocations: 263.1 kB / 0.7754 GB, free: 87.45 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01796/2.642, allocations: 7.341 MB / 0.7826 GB, free: 80.12 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-05/2.642, allocations: 5.812 kB / 0.7826 GB, free: 80.12 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005279/2.648, allocations: 1.833 MB / 0.7844 GB, free: 78.29 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005344/2.653, allocations: 0.6964 MB / 0.7851 GB, free: 77.6 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04096/2.694, allocations: 19.42 MB / 0.804 GB, free: 57.77 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0101/2.704, allocations: 5.264 MB / 0.8092 GB, free: 52.46 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002549/2.707, allocations: 491.4 kB / 0.8096 GB, free: 51.98 MB / 490.8 MB Notification: Performance of SimCode: time 1.182e-06/2.707, allocations: 3.938 kB / 0.8096 GB, free: 51.98 MB / 490.8 MB Notification: Performance of Templates: time 0.5403/3.247, allocations: 103.7 MB / 0.9109 GB, free: 110.3 MB / 490.8 MB