Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.403/2.403, allocations: 235 MB / 247.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.957e-05/3.97e-05, allocations: 4 kB / 305 MB, free: 5.082 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4234/0.4235, allocations: 54.86 MB / 359.9 MB, free: 3.172 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1873/0.6109, allocations: 101.5 MB / 461.4 MB, free: 11.36 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.6112, allocations: 76.73 kB / 461.5 MB, free: 11.29 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.916/1.527, allocations: 145 MB / 0.5922 GB, free: 94.36 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.798e-06/1.527, allocations: 0 / 0.5922 GB, free: 94.36 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003731/1.528, allocations: 147.6 kB / 0.5924 GB, free: 94.35 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: 2741 * Number of variables: 2741 Notification: Performance of Generate backend data structure: time 0.0261/1.554, allocations: 6.632 MB / 0.5988 GB, free: 89.99 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.178e-05/1.554, allocations: 7.25 kB / 0.5988 GB, free: 89.99 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006603/1.561, allocations: 1.372 MB / 0.6002 GB, free: 89.08 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02963/1.59, allocations: 3.619 MB / 0.6037 GB, free: 85.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02727/1.618, allocations: 7.648 MB / 0.6112 GB, free: 77.89 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009312/1.619, allocations: 0.5958 MB / 0.6118 GB, free: 77.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004962/1.624, allocations: 0.7808 MB / 0.6125 GB, free: 76.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07659/1.7, allocations: 21.55 MB / 0.6336 GB, free: 53.35 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006176/1.701, allocations: 103.1 kB / 0.6337 GB, free: 53.25 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004655/1.706, allocations: 375.8 kB / 0.634 GB, free: 52.88 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005568/1.711, allocations: 1.941 MB / 0.6359 GB, free: 50.93 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06477/1.776, allocations: 17.19 MB / 0.6527 GB, free: 33.71 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5276/2.304, allocations: 79.4 MB / 0.7302 GB, free: 47.48 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03268/2.336, allocations: 6.512 MB / 0.7366 GB, free: 46.79 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005948/2.342, allocations: 2.07 MB / 0.7386 GB, free: 46.75 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02918/2.372, allocations: 9.769 MB / 0.7482 GB, free: 44.43 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02549/2.397, allocations: 4.331 MB / 0.7524 GB, free: 44.29 MB / 474.7 MB Notification: Performance of pre-optimization done (n=287): time 9.578e-06/2.397, allocations: 0 / 0.7524 GB, free: 44.29 MB / 474.7 MB Notification: Performance of matching and sorting (n=323): time 0.1211/2.518, allocations: 22.7 MB / 0.7746 GB, free: 39.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.954e-05/2.519, allocations: 159.8 kB / 0.7747 GB, free: 39.34 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01291/2.531, allocations: 5.276 MB / 0.7799 GB, free: 38.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007557/2.532, allocations: 76.89 kB / 0.7799 GB, free: 38.67 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006104/2.538, allocations: 5.271 MB / 0.7851 GB, free: 34.77 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001954/2.54, allocations: 1.232 MB / 0.7863 GB, free: 33.88 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001193/2.542, allocations: 195.5 kB / 0.7865 GB, free: 33.73 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007726/2.542, allocations: 0.7069 MB / 0.7872 GB, free: 33.25 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007598/2.55, allocations: 2.643 MB / 0.7898 GB, free: 32.39 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01165/2.562, allocations: 8.372 MB / 0.7979 GB, free: 23.84 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01121/2.573, allocations: 4.666 MB / 0.8025 GB, free: 22.42 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002471/2.573, allocations: 63.19 kB / 0.8025 GB, free: 22.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=1265) (initialization): time 0.03001/2.603, allocations: 10.79 MB / 0.8131 GB, free: 16.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001776/2.604, allocations: 121.7 kB / 0.8132 GB, free: 16.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002893/2.604, allocations: 204 kB / 0.8134 GB, free: 15.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003204/2.604, allocations: 296 kB / 0.8137 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0157/2.62, allocations: 2.402 MB / 0.816 GB, free: 13.53 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004104/2.62, allocations: 407.4 kB / 0.8164 GB, free: 13.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01182/2.632, allocations: 0.6385 MB / 0.817 GB, free: 12.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00212/2.634, allocations: 0.5686 MB / 0.8176 GB, free: 12.07 MB / 474.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.002208/2.637, allocations: 0.8488 MB / 0.8184 GB, free: 11.21 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001245/2.638, allocations: 0.5463 MB / 0.8189 GB, free: 10.66 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008267/2.646, allocations: 3.213 MB / 0.8221 GB, free: 7.879 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.379e-05/2.646, allocations: 40 kB / 0.8221 GB, free: 7.84 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.595e-05/2.646, allocations: 3.562 kB / 0.8221 GB, free: 7.84 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.86e-05/2.646, allocations: 14.34 kB / 0.8221 GB, free: 7.84 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03991/2.686, allocations: 13.56 MB / 0.8354 GB, free: 12.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.909e-05/2.686, allocations: 32 kB / 0.8354 GB, free: 12.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004777/2.691, allocations: 0.6149 MB / 0.836 GB, free: 11.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.587e-05/2.691, allocations: 48 kB / 0.8361 GB, free: 11.88 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002989/2.692, allocations: 99.89 kB / 0.8362 GB, free: 11.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.092e-05/2.692, allocations: 68.48 kB / 0.8362 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-05/2.692, allocations: 51.75 kB / 0.8363 GB, free: 11.68 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01652/2.708, allocations: 11.83 MB / 0.8478 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003963/2.712, allocations: 0.8398 MB / 0.8486 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001846/2.714, allocations: 103.8 kB / 0.8487 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005656/2.72, allocations: 218.2 kB / 0.8489 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001014/2.721, allocations: 295.1 kB / 0.8492 GB, free: 13.35 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003617/2.721, allocations: 131.4 kB / 0.8494 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01154/2.733, allocations: 3.651 MB / 0.8529 GB, free: 9.992 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.142e-06/2.733, allocations: 0 / 0.8529 GB, free: 9.992 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01274/2.746, allocations: 1.559 MB / 0.8544 GB, free: 8.438 MB / 0.4948 GB 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.02049/2.766, allocations: 18.3 MB / 0.8723 GB, free: 5.469 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01768/2.784, allocations: 6.229 MB / 0.8784 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.305e-05/2.784, allocations: 5.938 kB / 0.8784 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005984/2.79, allocations: 1.752 MB / 0.8801 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006421/2.797, allocations: 0.7188 MB / 0.8808 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05823/2.855, allocations: 15.16 MB / 0.8956 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01499/2.87, allocations: 5.252 MB / 0.9007 GB, free: 8.371 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01487/2.885, allocations: 2.752 MB / 0.9034 GB, free: 5.621 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008818/2.894, allocations: 3.403 MB / 0.9068 GB, free: 2.219 MB / 0.5417 GB Notification: Performance of SimCode: time 1.944e-06/2.894, allocations: 0 / 0.9068 GB, free: 2.219 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6341/3.528, allocations: 113.7 MB / 1.018 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002505/3.528, allocations: 146.8 kB / 1.018 GB, free: 110.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/11.27, allocations: 0 / 1.018 GB, free: 110.8 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Damper2_res.mat does not exist to compare? outputFormat=mat