Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.825/2.825, allocations: 270 MB / 282.7 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.205e-05/4.196e-05, allocations: 4 kB / 347 MB, free: 3.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4054/0.4054, allocations: 61.87 MB / 408.9 MB, free: 10.67 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1965/0.602, allocations: 109.8 MB / 0.5066 GB, free: 12.69 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/0.6023, allocations: 79.95 kB / 0.5067 GB, free: 12.61 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.898/1.5, allocations: 141.2 MB / 0.6445 GB, free: 10.58 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.425e-06/1.5, allocations: 3.938 kB / 0.6445 GB, free: 10.57 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004172/1.501, allocations: 144 kB / 0.6447 GB, free: 10.43 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2609 * Number of variables: 2609 Notification: Performance of Generate backend data structure: time 0.02639/1.527, allocations: 6.433 MB / 0.651 GB, free: 3.918 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/1.527, allocations: 12.03 kB / 0.651 GB, free: 3.906 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006342/1.534, allocations: 1.314 MB / 0.6523 GB, free: 2.582 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03018/1.564, allocations: 3.547 MB / 0.6557 GB, free: 15.02 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03312/1.597, allocations: 7.085 MB / 0.6626 GB, free: 7.871 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009452/1.598, allocations: 0.5657 MB / 0.6632 GB, free: 7.305 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004523/1.603, allocations: 0.7574 MB / 0.6639 GB, free: 6.547 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08034/1.683, allocations: 20.59 MB / 0.684 GB, free: 372 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006505/1.684, allocations: 99.11 kB / 0.6841 GB, free: 272 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004208/1.688, allocations: 375.9 kB / 0.6845 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005823/1.694, allocations: 1.819 MB / 0.6863 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06708/1.761, allocations: 16.08 MB / 0.702 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5035/2.265, allocations: 77.15 MB / 0.7773 GB, free: 45.82 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02936/2.294, allocations: 6.108 MB / 0.7833 GB, free: 45.16 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005424/2.299, allocations: 1.949 MB / 0.7852 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0252/2.325, allocations: 9.272 MB / 0.7942 GB, free: 42.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02464/2.349, allocations: 4.071 MB / 0.7982 GB, free: 42.59 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=260): time 1.117e-05/2.349, allocations: 0 / 0.7982 GB, free: 42.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=294): time 0.09531/2.445, allocations: 19.7 MB / 0.8174 GB, free: 38.12 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.421e-05/2.445, allocations: 159.6 kB / 0.8176 GB, free: 37.97 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01183/2.457, allocations: 5.119 MB / 0.8226 GB, free: 37.29 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005783/2.457, allocations: 69.23 kB / 0.8227 GB, free: 37.22 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005063/2.462, allocations: 4.911 MB / 0.8275 GB, free: 33.64 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001608/2.464, allocations: 1.141 MB / 0.8286 GB, free: 32.82 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001066/2.465, allocations: 181.6 kB / 0.8287 GB, free: 32.68 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006472/2.466, allocations: 0.6995 MB / 0.8294 GB, free: 32.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006659/2.473, allocations: 2.45 MB / 0.8318 GB, free: 31.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01026/2.483, allocations: 7.926 MB / 0.8396 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009812/2.493, allocations: 4.404 MB / 0.8439 GB, free: 21.96 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002257/2.493, allocations: 59.88 kB / 0.8439 GB, free: 21.96 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1203) (initialization): time 0.02526/2.518, allocations: 9.487 MB / 0.8532 GB, free: 18.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001747/2.519, allocations: 117.7 kB / 0.8533 GB, free: 18.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000278/2.519, allocations: 196.1 kB / 0.8535 GB, free: 18.63 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003447/2.519, allocations: 292 kB / 0.8538 GB, free: 18.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01379/2.533, allocations: 2.253 MB / 0.856 GB, free: 16.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003877/2.533, allocations: 389.7 kB / 0.8563 GB, free: 16.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01096/2.544, allocations: 0.5875 MB / 0.8569 GB, free: 15.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001922/2.546, allocations: 0.5384 MB / 0.8574 GB, free: 15 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 898 * Number of states: 0 () * Number of discrete variables: 83 ($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.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,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.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,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.forceArrow.arrowLine.twoHeadedArrow,force.forceArrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (1178): * Single equations (assignments): 1174 * 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.002459/2.549, allocations: 0.827 MB / 0.8582 GB, free: 14.17 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001196/2.55, allocations: 0.5321 MB / 0.8588 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007352/2.557, allocations: 2.817 MB / 0.8615 GB, free: 11.22 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.394e-05/2.558, allocations: 36 kB / 0.8615 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/2.558, allocations: 0 / 0.8615 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-05/2.558, allocations: 17.83 kB / 0.8616 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.032/2.59, allocations: 12.18 MB / 0.8735 GB, free: 0.6016 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.761e-05/2.59, allocations: 28 kB / 0.8735 GB, free: 0.5742 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004007/2.594, allocations: 0.5329 MB / 0.874 GB, free: 116 kB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.593e-05/2.594, allocations: 48 kB / 0.8741 GB, free: 68 kB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005874/2.595, allocations: 99.3 kB / 0.8741 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000118/2.595, allocations: 67.73 kB / 0.8742 GB, free: 15.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.204e-05/2.595, allocations: 55.75 kB / 0.8743 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/2.609, allocations: 10.84 MB / 0.8849 GB, free: 3.629 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002197/2.612, allocations: 0.5953 MB / 0.8854 GB, free: 3.035 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00183/2.614, allocations: 95.12 kB / 0.8855 GB, free: 2.949 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005057/2.619, allocations: 208.9 kB / 0.8857 GB, free: 2.797 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008585/2.62, allocations: 278.5 kB / 0.886 GB, free: 2.586 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003717/2.62, allocations: 119.5 kB / 0.8861 GB, free: 2.473 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01042/2.63, allocations: 3.538 MB / 0.8896 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.22e-07/2.63, allocations: 3.828 kB / 0.8896 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01154/2.642, allocations: 1.481 MB / 0.891 GB, free: 13.86 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 142 * 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 (272): * Single equations (assignments): 267 * 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.01699/2.659, allocations: 17.29 MB / 0.9079 GB, free: 11.92 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01503/2.674, allocations: 5.473 MB / 0.9132 GB, free: 6.879 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.909e-05/2.674, allocations: 4 kB / 0.9132 GB, free: 6.875 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004275/2.678, allocations: 1.414 MB / 0.9146 GB, free: 5.57 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006044/2.685, allocations: 0.7189 MB / 0.9153 GB, free: 4.969 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4661/3.151, allocations: 14.95 MB / 0.9299 GB, free: 137.1 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01172/3.163, allocations: 5.031 MB / 0.9348 GB, free: 136.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006943/3.17, allocations: 3.308 MB / 0.9381 GB, free: 136.2 MB / 0.5573 GB Notification: Performance of SimCode: time 1.202e-06/3.17, allocations: 0 / 0.9381 GB, free: 136.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.783/7.953, allocations: 121.8 MB / 1.057 GB, free: 70.38 MB / 0.5573 GB