Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.041/2.041, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.999e-05/2.009e-05, allocations: 0 / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1223, allocations: 48.69 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.472/0.5943, allocations: 92.51 MB / 408.8 MB, free: 416 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000348/0.5948, allocations: 77.2 kB / 408.9 MB, free: 376 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3613/0.9561, allocations: 74.75 MB / 483.6 MB, free: 8.734 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.9561, allocations: 3.938 kB / 483.6 MB, free: 8.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002564/0.9564, allocations: 68 kB / 483.7 MB, free: 8.664 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1314 * Number of variables: 1314 Notification: Performance of Generate backend data structure: time 0.01758/0.974, allocations: 3.581 MB / 487.3 MB, free: 5.023 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.9741, allocations: 12.03 kB / 487.3 MB, free: 5.012 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03278/1.007, allocations: 4.324 MB / 491.6 MB, free: 0.6758 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2934/1.3, allocations: 4.454 MB / 496.1 MB, free: 90.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002377/1.301, allocations: 115.6 kB / 496.2 MB, free: 90.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001865/1.302, allocations: 217.4 kB / 496.4 MB, free: 90.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01348/1.316, allocations: 5.131 MB / 0.4898 GB, free: 90.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0228/1.339, allocations: 8.203 MB / 0.4978 GB, free: 87.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000243/1.339, allocations: 64.38 kB / 0.4978 GB, free: 87.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009087/1.34, allocations: 30.81 kB / 0.4979 GB, free: 87.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002004/1.342, allocations: 0.8743 MB / 0.4987 GB, free: 87.53 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1059/1.448, allocations: 43.35 MB / 0.5411 GB, free: 56.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004897/1.453, allocations: 2.633 MB / 0.5436 GB, free: 55.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002711/1.456, allocations: 1.484 MB / 0.5451 GB, free: 54.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001394/1.457, allocations: 0.86 MB / 0.5459 GB, free: 53.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/1.457, allocations: 50.22 kB / 0.546 GB, free: 53.76 MB / 410.7 MB Notification: Performance of pre-optimization done (n=159): time 6.813e-06/1.457, allocations: 3.844 kB / 0.546 GB, free: 53.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=193): time 0.07376/1.531, allocations: 16.53 MB / 0.5621 GB, free: 47.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.956e-05/1.531, allocations: 200 kB / 0.5623 GB, free: 47.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008841/1.54, allocations: 2.879 MB / 0.5651 GB, free: 46.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005719/1.541, allocations: 25.7 kB / 0.5651 GB, free: 46.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00342/1.544, allocations: 2.83 MB / 0.5679 GB, free: 44.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001675/1.546, allocations: 0.7151 MB / 0.5686 GB, free: 43.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009859/1.547, allocations: 4 kB / 0.5686 GB, free: 43.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006905/1.548, allocations: 0.5639 MB / 0.5692 GB, free: 43.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006602/1.554, allocations: 1.92 MB / 0.571 GB, free: 42.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00996/1.564, allocations: 5.557 MB / 0.5765 GB, free: 36.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0108/1.575, allocations: 3.247 MB / 0.5796 GB, free: 35.37 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001716/1.575, allocations: 42.94 kB / 0.5797 GB, free: 35.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.04135/1.617, allocations: 8.336 MB / 0.5878 GB, free: 28.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001493/1.617, allocations: 66.39 kB / 0.5879 GB, free: 28.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002377/1.617, allocations: 128 kB / 0.588 GB, free: 28.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01347/1.631, allocations: 1.551 MB / 0.5895 GB, free: 27.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009752/1.641, allocations: 1.345 MB / 0.5908 GB, free: 26.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02091/1.661, allocations: 8.676 MB / 0.5993 GB, free: 18.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006503/1.668, allocations: 200.2 kB / 0.5995 GB, free: 18.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001378/1.669, allocations: 374.8 kB / 0.5998 GB, free: 18.06 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 593 * Number of states: 0 () * Number of discrete variables: 33 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (724): * Single equations (assignments): 720 * Array equations: 3 * Algorithm blocks: 0 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001152/1.671, allocations: 436.3 kB / 0.6003 GB, free: 17.63 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01669/1.687, allocations: 4.364 MB / 0.6045 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001169/1.689, allocations: 316 kB / 0.6048 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01517/1.704, allocations: 3.75 MB / 0.6085 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.494e-05/1.704, allocations: 24 kB / 0.6085 GB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.821e-05/1.704, allocations: 8 kB / 0.6085 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.615e-05/1.704, allocations: 10.55 kB / 0.6085 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02622/1.73, allocations: 7.641 MB / 0.616 GB, free: 4.777 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.547e-05/1.73, allocations: 0 / 0.616 GB, free: 4.777 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002491/1.733, allocations: 254.2 kB / 0.6162 GB, free: 4.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008065/1.741, allocations: 1.216 MB / 0.6174 GB, free: 3.391 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004054/1.741, allocations: 4 kB / 0.6174 GB, free: 3.387 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01911/1.76, allocations: 6.883 MB / 0.6241 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/1.761, allocations: 0 / 0.6241 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02056/1.781, allocations: 6.238 MB / 0.6302 GB, free: 6.078 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002215/1.783, allocations: 0.5789 MB / 0.6308 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007319/1.784, allocations: 3.984 kB / 0.6308 GB, free: 5.473 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002431/1.787, allocations: 67.89 kB / 0.6309 GB, free: 5.406 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005207/1.787, allocations: 121 kB / 0.631 GB, free: 5.289 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002165/1.787, allocations: 56.05 kB / 0.631 GB, free: 5.234 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004405/1.792, allocations: 1.907 MB / 0.6329 GB, free: 3.336 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.21e-07/1.792, allocations: 0 / 0.6329 GB, free: 3.336 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006984/1.799, allocations: 0.8363 MB / 0.6337 GB, free: 2.508 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 134 * Array equations: 3 * Algorithm blocks: 0 * 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%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3345/2.133, allocations: 7.19 MB / 0.6407 GB, free: 94.84 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01177/2.145, allocations: 4.732 MB / 0.6454 GB, free: 94.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.996e-06/2.145, allocations: 6.438 kB / 0.6454 GB, free: 94.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004028/2.149, allocations: 1.563 MB / 0.6469 GB, free: 94.54 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003075/2.152, allocations: 302.5 kB / 0.6472 GB, free: 94.53 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02934/2.182, allocations: 8.275 MB / 0.6553 GB, free: 93.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006527/2.188, allocations: 3.038 MB / 0.6582 GB, free: 92.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004173/2.193, allocations: 1.692 MB / 0.6599 GB, free: 92.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.353e-06/2.193, allocations: 0 / 0.6599 GB, free: 92.32 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.285/6.478, allocations: 87.73 MB / 0.7456 GB, free: 42.16 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat