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.993/1.993, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.185e-05/3.187e-05, allocations: 4 kB / 276.1 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3619, allocations: 48.71 MB / 324.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.1096/0.4715, allocations: 69.01 MB / 393.9 MB, free: 10.42 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04842/0.52, allocations: 14.51 MB / 408.4 MB, free: 11.87 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.019/0.5391, allocations: 363.2 kB / 408.7 MB, free: 11.51 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01403/0.5532, allocations: 3.64 MB / 412.4 MB, free: 7.855 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03918/0.5924, allocations: 9.657 MB / 422 MB, free: 14.17 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007374/0.5998, allocations: 1.049 MB / 423.1 MB, free: 13.12 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00898/0.6089, allocations: 2.868 MB / 425.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01596/0.6249, allocations: 7.704 MB / 433.6 MB, free: 2.504 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003148/0.6281, allocations: 1.387 MB / 435 MB, free: 1.113 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004879/0.633, allocations: 2.357 MB / 437.4 MB, free: 14.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002991/0.6361, allocations: 0.7842 MB / 438.2 MB, free: 13.96 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001404/0.6375, allocations: 200 kB / 438.4 MB, free: 13.77 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004185/0.6417, allocations: 2.692 MB / 441.1 MB, free: 11.07 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002067/0.6438, allocations: 464 kB / 441.5 MB, free: 10.62 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01504/0.6589, allocations: 9.332 MB / 450.8 MB, free: 1.262 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.6589, allocations: 0 / 450.8 MB, free: 1.262 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.6589, allocations: 0 / 450.8 MB, free: 1.262 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004739/0.6594, allocations: 0 / 450.8 MB, free: 1.262 MB / 378.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.02151/0.681, allocations: 6.536 MB / 457.4 MB, free: 10.64 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.681, allocations: 8.031 kB / 457.4 MB, free: 10.63 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02299/0.704, allocations: 3.258 MB / 460.6 MB, free: 7.359 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01324/0.7173, allocations: 4.378 MB / 465 MB, free: 2.922 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007265/0.7181, allocations: 455.4 kB / 465.5 MB, free: 2.477 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003111/0.7213, allocations: 0.5816 MB / 466 MB, free: 1.895 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.596/1.317, allocations: 21.49 MB / 487.5 MB, free: 120 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003893/1.318, allocations: 72.83 kB / 487.6 MB, free: 120 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002265/1.32, allocations: 278.2 kB / 487.9 MB, free: 119.9 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01053/1.331, allocations: 3.529 MB / 491.4 MB, free: 119.3 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06712/1.398, allocations: 17.5 MB / 0.497 GB, free: 113 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1362/1.534, allocations: 70.25 MB / 0.5656 GB, free: 46.6 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1018/1.636, allocations: 14.57 MB / 0.5798 GB, free: 31.87 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03324/1.669, allocations: 14.38 MB / 0.5939 GB, free: 17.28 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.06827/1.738, allocations: 12.46 MB / 0.606 GB, free: 4.754 MB / 410.8 MB Notification: Performance of pre-optimization done (n=287): time 8.155e-06/1.738, allocations: 4 kB / 0.606 GB, free: 4.75 MB / 410.8 MB Notification: Performance of matching and sorting (n=323): time 0.5106/2.248, allocations: 43.62 MB / 0.6486 GB, free: 142.8 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/2.248, allocations: 161.4 kB / 0.6488 GB, free: 142.6 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01629/2.265, allocations: 5.697 MB / 0.6543 GB, free: 140.6 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007734/2.266, allocations: 72.48 kB / 0.6544 GB, free: 140.5 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005838/2.271, allocations: 5.143 MB / 0.6594 GB, free: 136.6 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002297/2.274, allocations: 1.234 MB / 0.6606 GB, free: 135.7 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001109/2.275, allocations: 200.3 kB / 0.6608 GB, free: 135.5 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.000967/2.276, allocations: 0.7198 MB / 0.6615 GB, free: 135 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01108/2.287, allocations: 3.297 MB / 0.6648 GB, free: 134 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01423/2.301, allocations: 9.056 MB / 0.6736 GB, free: 125.2 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01288/2.314, allocations: 5.253 MB / 0.6787 GB, free: 123.2 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000271/2.315, allocations: 58.34 kB / 0.6788 GB, free: 123.2 MB / 442.8 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.03445/2.349, allocations: 12.09 MB / 0.6906 GB, free: 118.6 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000182/2.349, allocations: 119.1 kB / 0.6907 GB, free: 118.5 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000295/2.35, allocations: 209.5 kB / 0.6909 GB, free: 118.5 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/2.351, allocations: 0.53 MB / 0.6914 GB, free: 118.5 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.015/2.366, allocations: 2.403 MB / 0.6938 GB, free: 118.2 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003899/2.37, allocations: 2.711 MB / 0.6964 GB, free: 115.6 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01078/2.381, allocations: 0.5659 MB / 0.697 GB, free: 115.1 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001873/2.383, allocations: 0.5747 MB / 0.6975 GB, free: 114.5 MB / 442.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.008312/2.391, allocations: 3.318 MB / 0.7008 GB, free: 111.6 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001433/2.392, allocations: 0.5399 MB / 0.7013 GB, free: 111.1 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01224/2.405, allocations: 4.476 MB / 0.7057 GB, free: 107.1 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.227e-05/2.405, allocations: 42.41 kB / 0.7057 GB, free: 107.1 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/2.405, allocations: 0 / 0.7057 GB, free: 107.1 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.243e-05/2.405, allocations: 15.91 kB / 0.7057 GB, free: 107.1 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03679/2.442, allocations: 13.52 MB / 0.7189 GB, free: 93.14 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.466e-05/2.442, allocations: 24 kB / 0.719 GB, free: 93.12 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005612/2.447, allocations: 0.6905 MB / 0.7196 GB, free: 92.43 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.375e-05/2.448, allocations: 44 kB / 0.7197 GB, free: 92.38 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006433/2.448, allocations: 95.98 kB / 0.7198 GB, free: 92.29 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.84e-05/2.448, allocations: 55.8 kB / 0.7198 GB, free: 92.23 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.606e-05/2.448, allocations: 51.73 kB / 0.7199 GB, free: 92.18 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01496/2.463, allocations: 11.47 MB / 0.7311 GB, free: 79.19 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002946/2.466, allocations: 0.8686 MB / 0.7319 GB, free: 78.3 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001893/2.468, allocations: 93.3 kB / 0.732 GB, free: 78.21 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00498/2.473, allocations: 187.8 kB / 0.7322 GB, free: 78.02 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008196/2.474, allocations: 280.8 kB / 0.7325 GB, free: 77.75 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002756/2.474, allocations: 121.5 kB / 0.7326 GB, free: 77.63 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.009129/2.484, allocations: 3.991 MB / 0.7365 GB, free: 73.64 MB / 442.8 MB Notification: Performance of sort global known variables: time 7.32e-07/2.484, allocations: 0 / 0.7365 GB, free: 73.64 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01098/2.495, allocations: 1.596 MB / 0.738 GB, free: 72.05 MB / 442.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.001222/2.496, allocations: 278.1 kB / 0.7383 GB, free: 71.78 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.0186/2.515, allocations: 7.336 MB / 0.7455 GB, free: 64.45 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 2.691e-05/2.515, allocations: 4 kB / 0.7455 GB, free: 64.45 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0054/2.52, allocations: 1.83 MB / 0.7472 GB, free: 62.62 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005657/2.526, allocations: 0.6911 MB / 0.7479 GB, free: 61.94 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04367/2.569, allocations: 19.42 MB / 0.7669 GB, free: 42.11 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01087/2.58, allocations: 5.266 MB / 0.772 GB, free: 36.8 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002671/2.583, allocations: 491.4 kB / 0.7725 GB, free: 36.32 MB / 442.8 MB Notification: Performance of SimCode: time 2.585e-06/2.583, allocations: 0 / 0.7725 GB, free: 36.32 MB / 442.8 MB Notification: Performance of Templates: time 0.5319/3.115, allocations: 103.7 MB / 0.8737 GB, free: 71.91 MB / 442.8 MB