Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.441/2.441, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.119e-05/4.13e-05, allocations: 4 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4033/0.4034, allocations: 54.86 MB / 359.9 MB, free: 2.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1878/0.5912, allocations: 97.31 MB / 457.2 MB, free: 15.54 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002964/0.5916, allocations: 77.42 kB / 457.2 MB, free: 15.46 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.71/1.302, allocations: 84.78 MB / 0.5293 GB, free: 101.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.302, allocations: 0.9688 kB / 0.5293 GB, free: 101.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000278/1.302, allocations: 83.41 kB / 0.5294 GB, free: 101.8 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: 1500 * Number of variables: 1500 Notification: Performance of Generate backend data structure: time 0.01614/1.318, allocations: 3.906 MB / 0.5332 GB, free: 100.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/1.318, allocations: 10.5 kB / 0.5332 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003568/1.322, allocations: 0.7626 MB / 0.534 GB, free: 100.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02078/1.343, allocations: 2.441 MB / 0.5364 GB, free: 99.82 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01974/1.362, allocations: 5.124 MB / 0.5414 GB, free: 99.26 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000592/1.363, allocations: 328.5 kB / 0.5417 GB, free: 99.25 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00266/1.366, allocations: 424.5 kB / 0.5421 GB, free: 99.25 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03255/1.398, allocations: 10.29 MB / 0.5521 GB, free: 96.31 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002744/1.399, allocations: 68.44 kB / 0.5522 GB, free: 96.31 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001546/1.4, allocations: 212.1 kB / 0.5524 GB, free: 96.31 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002244/1.402, allocations: 1.012 MB / 0.5534 GB, free: 96.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02425/1.427, allocations: 7.774 MB / 0.561 GB, free: 96.28 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06532/1.492, allocations: 47.45 MB / 0.6073 GB, free: 59.39 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01206/1.504, allocations: 2.996 MB / 0.6102 GB, free: 58.04 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002427/1.507, allocations: 0.9634 MB / 0.6112 GB, free: 57.66 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.012/1.519, allocations: 5.203 MB / 0.6163 GB, free: 54.38 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/1.519, allocations: 46.86 kB / 0.6163 GB, free: 54.33 MB / 458.7 MB Notification: Performance of pre-optimization done (n=134): time 4.658e-06/1.519, allocations: 4 kB / 0.6163 GB, free: 54.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=146): time 0.03615/1.555, allocations: 8.26 MB / 0.6244 GB, free: 50.41 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.053e-05/1.555, allocations: 198.7 kB / 0.6246 GB, free: 50.18 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008143/1.563, allocations: 3.537 MB / 0.628 GB, free: 47.95 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000314/1.564, allocations: 56.81 kB / 0.6281 GB, free: 47.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002659/1.566, allocations: 3.079 MB / 0.6311 GB, free: 45.11 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008514/1.567, allocations: 0.5909 MB / 0.6317 GB, free: 44.59 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006592/1.568, allocations: 119.8 kB / 0.6318 GB, free: 44.48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003538/1.568, allocations: 0.5579 MB / 0.6323 GB, free: 43.98 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003784/1.572, allocations: 1.52 MB / 0.6338 GB, free: 42.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006494/1.579, allocations: 5.279 MB / 0.639 GB, free: 35.65 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006198/1.585, allocations: 2.842 MB / 0.6417 GB, free: 33.21 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001608/1.585, allocations: 40 kB / 0.6418 GB, free: 33.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01609/1.601, allocations: 6.078 MB / 0.6477 GB, free: 27.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.846e-05/1.601, allocations: 60 kB / 0.6478 GB, free: 27.74 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001622/1.601, allocations: 140.9 kB / 0.6479 GB, free: 27.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002174/1.602, allocations: 200 kB / 0.6481 GB, free: 27.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00836/1.61, allocations: 1.422 MB / 0.6495 GB, free: 26.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002427/1.61, allocations: 269.1 kB / 0.6497 GB, free: 25.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007012/1.617, allocations: 375.4 kB / 0.6501 GB, free: 25.61 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001217/1.619, allocations: 370.8 kB / 0.6505 GB, free: 25.25 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (746): * Single equations (assignments): 743 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001103/1.62, allocations: 0.5695 MB / 0.651 GB, free: 24.68 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008749/1.621, allocations: 345.4 kB / 0.6513 GB, free: 24.34 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003417/1.624, allocations: 1.221 MB / 0.6525 GB, free: 23.28 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.233e-05/1.624, allocations: 19.91 kB / 0.6526 GB, free: 23.26 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/1.624, allocations: 4 kB / 0.6526 GB, free: 23.26 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.21e-05/1.624, allocations: 6.422 kB / 0.6526 GB, free: 23.26 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01474/1.639, allocations: 5.483 MB / 0.6579 GB, free: 18.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.821e-05/1.639, allocations: 20.03 kB / 0.6579 GB, free: 18.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001882/1.641, allocations: 256.2 kB / 0.6582 GB, free: 18.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.502e-05/1.641, allocations: 24 kB / 0.6582 GB, free: 18.21 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001281/1.641, allocations: 51.61 kB / 0.6583 GB, free: 18.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.66e-05/1.641, allocations: 32.38 kB / 0.6583 GB, free: 18.14 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.767e-05/1.641, allocations: 23.94 kB / 0.6583 GB, free: 18.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005393/1.647, allocations: 4.839 MB / 0.663 GB, free: 12.79 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001966/1.649, allocations: 0.5262 MB / 0.6635 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001294/1.65, allocations: 43.56 kB / 0.6636 GB, free: 12.23 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00325/1.653, allocations: 93.69 kB / 0.6637 GB, free: 12.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003735/1.654, allocations: 136.2 kB / 0.6638 GB, free: 12.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/1.654, allocations: 63.23 kB / 0.6639 GB, free: 12 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005471/1.659, allocations: 2.444 MB / 0.6663 GB, free: 9.82 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.262e-06/1.659, allocations: 0 / 0.6663 GB, free: 9.82 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006951/1.666, allocations: 0.8919 MB / 0.6671 GB, free: 8.93 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 69 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 131 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009106/1.676, allocations: 9.335 MB / 0.6762 GB, free: 15.88 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00875/1.684, allocations: 3.353 MB / 0.6795 GB, free: 12.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.287e-05/1.684, allocations: 6.438 kB / 0.6795 GB, free: 12.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001614/1.686, allocations: 0.6729 MB / 0.6802 GB, free: 12.19 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003857/1.69, allocations: 427.7 kB / 0.6806 GB, free: 11.82 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02804/1.718, allocations: 8.727 MB / 0.6891 GB, free: 3.484 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005631/1.724, allocations: 3.223 MB / 0.6923 GB, free: 256 kB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004038/1.728, allocations: 1.873 MB / 0.6941 GB, free: 14.41 MB / 490.7 MB Notification: Performance of SimCode: time 1.102e-06/1.728, allocations: 0 / 0.6941 GB, free: 14.41 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.458/6.186, allocations: 74.26 MB / 0.7666 GB, free: 104.3 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat does not exist to compare? outputFormat=mat