Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.015/2.015, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.58e-05/2.593e-05, allocations: 4 kB / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4533/0.5663, allocations: 90.2 MB / 406.5 MB, free: 2.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.5666, allocations: 77.55 kB / 406.6 MB, free: 2.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3698/0.9365, allocations: 82.98 MB / 489.6 MB, free: 2.676 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.9365, allocations: 0 / 489.6 MB, free: 2.676 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002778/0.9368, allocations: 76 kB / 489.6 MB, free: 2.602 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: 1500 * Number of variables: 1500 Notification: Performance of Generate backend data structure: time 0.3057/1.243, allocations: 3.898 MB / 493.5 MB, free: 86.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.522e-05/1.243, allocations: 12.3 kB / 493.5 MB, free: 86.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02806/1.271, allocations: 2.438 MB / 496 MB, free: 86.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02588/1.297, allocations: 5.116 MB / 0.4894 GB, free: 85.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005074/1.297, allocations: 136.9 kB / 0.4895 GB, free: 85.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00273/1.3, allocations: 248 kB / 0.4897 GB, free: 85.73 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02277/1.323, allocations: 6.002 MB / 0.4956 GB, free: 85.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02444/1.347, allocations: 9.266 MB / 0.5046 GB, free: 82.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002477/1.348, allocations: 63.05 kB / 0.5047 GB, free: 82.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001413/1.349, allocations: 35.09 kB / 0.5047 GB, free: 82.78 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002352/1.351, allocations: 1.01 MB / 0.5057 GB, free: 82.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0608/1.412, allocations: 46.63 MB / 0.5512 GB, free: 49.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003411/1.416, allocations: 1.983 MB / 0.5532 GB, free: 48.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001768/1.417, allocations: 0.8668 MB / 0.554 GB, free: 47.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006454/1.418, allocations: 0.5653 MB / 0.5546 GB, free: 47.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.061e-05/1.418, allocations: 50.06 kB / 0.5546 GB, free: 47.35 MB / 410.7 MB Notification: Performance of pre-optimization done (n=144): time 5.44e-06/1.418, allocations: 0 / 0.5546 GB, free: 47.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=156): time 0.0267/1.445, allocations: 8.755 MB / 0.5632 GB, free: 42.56 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.388e-05/1.445, allocations: 247.7 kB / 0.5634 GB, free: 42.28 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006202/1.451, allocations: 3.029 MB / 0.5664 GB, free: 41.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000316/1.452, allocations: 25.7 kB / 0.5664 GB, free: 41.06 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00249/1.454, allocations: 3.159 MB / 0.5695 GB, free: 38.53 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008793/1.455, allocations: 0.6086 MB / 0.5701 GB, free: 38.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006361/1.456, allocations: 5.906 kB / 0.5701 GB, free: 38.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000412/1.456, allocations: 0.5609 MB / 0.5706 GB, free: 37.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003425/1.46, allocations: 1.469 MB / 0.5721 GB, free: 37.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006015/1.466, allocations: 5.379 MB / 0.5773 GB, free: 31.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006293/1.472, allocations: 2.815 MB / 0.5801 GB, free: 30.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001591/1.472, allocations: 41.81 kB / 0.5801 GB, free: 30.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01647/1.489, allocations: 5.842 MB / 0.5858 GB, free: 27.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/1.489, allocations: 68 kB / 0.5859 GB, free: 27.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001988/1.489, allocations: 140 kB / 0.586 GB, free: 27.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002343/1.489, allocations: 204 kB / 0.5862 GB, free: 27.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008669/1.498, allocations: 1.471 MB / 0.5876 GB, free: 25.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000245/1.498, allocations: 276.8 kB / 0.5879 GB, free: 25.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006858/1.505, allocations: 276.8 kB / 0.5882 GB, free: 25.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001318/1.507, allocations: 384.1 kB / 0.5885 GB, free: 25.02 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * 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 (776): * Single equations (assignments): 773 * 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.00109/1.508, allocations: 457.9 kB / 0.589 GB, free: 24.58 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003598/1.511, allocations: 1.593 MB / 0.5905 GB, free: 23.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007106/1.512, allocations: 312 kB / 0.5908 GB, free: 22.83 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002917/1.515, allocations: 1.164 MB / 0.592 GB, free: 21.83 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-05/1.515, allocations: 20.5 kB / 0.592 GB, free: 21.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/1.515, allocations: 4 kB / 0.592 GB, free: 21.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.016e-05/1.515, allocations: 6.984 kB / 0.592 GB, free: 21.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/1.527, allocations: 5.025 MB / 0.5969 GB, free: 17.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.563e-05/1.527, allocations: 20.06 kB / 0.5969 GB, free: 17.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001836/1.529, allocations: 274.2 kB / 0.5972 GB, free: 17.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.4e-05/1.529, allocations: 31.38 kB / 0.5972 GB, free: 17.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/1.529, allocations: 27.47 kB / 0.5972 GB, free: 17.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.533e-05/1.529, allocations: 35.39 kB / 0.5973 GB, free: 17.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.621e-05/1.529, allocations: 19.94 kB / 0.5973 GB, free: 17.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005099/1.534, allocations: 4.77 MB / 0.6019 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/1.536, allocations: 0.4989 MB / 0.6024 GB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006783/1.537, allocations: 23.8 kB / 0.6025 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002209/1.539, allocations: 64.67 kB / 0.6025 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002446/1.539, allocations: 138.6 kB / 0.6027 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/1.539, allocations: 64.73 kB / 0.6027 GB, free: 11.17 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003972/1.543, allocations: 2 MB / 0.6047 GB, free: 9.441 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.543, allocations: 8 kB / 0.6047 GB, free: 9.434 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007005/1.55, allocations: 0.7581 MB / 0.6054 GB, free: 8.684 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 71 * 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 (142): * Single equations (assignments): 139 * 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.006865/1.557, allocations: 9.35 MB / 0.6145 GB, free: 15.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008338/1.566, allocations: 3.364 MB / 0.6178 GB, free: 12.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.631e-05/1.566, allocations: 0 / 0.6178 GB, free: 12.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001595/1.567, allocations: 0.6907 MB / 0.6185 GB, free: 11.41 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003036/1.57, allocations: 343.9 kB / 0.6188 GB, free: 11.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02783/1.598, allocations: 8.575 MB / 0.6272 GB, free: 3.438 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006742/1.605, allocations: 3.225 MB / 0.6304 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006872/1.612, allocations: 1.996 MB / 0.6323 GB, free: 15.76 MB / 442.7 MB Notification: Performance of SimCode: time 1.523e-06/1.612, allocations: 0 / 0.6323 GB, free: 15.76 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.029/5.641, allocations: 72.9 MB / 0.7035 GB, free: 92.6 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat does not exist to compare? outputFormat=mat