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 1.968/1.968, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.054e-05/5.059e-05, allocations: 4 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1792, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.508/0.6873, allocations: 90.61 MB / 412.5 MB, free: 15.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/0.6877, allocations: 78.77 kB / 412.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4187/1.106, allocations: 84.78 MB / 497.3 MB, free: 9.852 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.106, allocations: 4 kB / 497.3 MB, free: 9.848 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004583/1.107, allocations: 76 kB / 497.4 MB, free: 9.773 MB / 426.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.01754/1.125, allocations: 3.912 MB / 0.4896 GB, free: 5.797 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/1.125, allocations: 8.031 kB / 0.4896 GB, free: 5.789 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003061/1.128, allocations: 0.7583 MB / 0.4903 GB, free: 5.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02013/1.148, allocations: 2.44 MB / 0.4927 GB, free: 2.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3007/1.449, allocations: 5.107 MB / 0.4977 GB, free: 96.21 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004912/1.449, allocations: 324.8 kB / 0.498 GB, free: 96.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002298/1.451, allocations: 430.4 kB / 0.4984 GB, free: 96.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03299/1.484, allocations: 10.3 MB / 0.5085 GB, free: 93.28 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003594/1.485, allocations: 62.16 kB / 0.5085 GB, free: 93.28 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002061/1.487, allocations: 212.3 kB / 0.5087 GB, free: 93.28 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00309/1.49, allocations: 1.013 MB / 0.5097 GB, free: 93.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02596/1.516, allocations: 7.779 MB / 0.5173 GB, free: 93.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06582/1.582, allocations: 47.45 MB / 0.5636 GB, free: 58.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01196/1.594, allocations: 2.998 MB / 0.5666 GB, free: 57.37 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002303/1.596, allocations: 0.9608 MB / 0.5675 GB, free: 56.99 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01163/1.608, allocations: 5.212 MB / 0.5726 GB, free: 53.83 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.31e-05/1.608, allocations: 51.12 kB / 0.5726 GB, free: 53.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=134): time 5.029e-06/1.608, allocations: 0 / 0.5726 GB, free: 53.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=146): time 0.03533/1.643, allocations: 8.271 MB / 0.5807 GB, free: 49.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.153e-05/1.644, allocations: 205.9 kB / 0.5809 GB, free: 49.69 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007538/1.651, allocations: 3.543 MB / 0.5844 GB, free: 48.33 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002912/1.652, allocations: 49.23 kB / 0.5844 GB, free: 48.29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002496/1.654, allocations: 3.072 MB / 0.5874 GB, free: 45.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008048/1.655, allocations: 0.5916 MB / 0.588 GB, free: 45.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005118/1.655, allocations: 114.9 kB / 0.5881 GB, free: 45.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003415/1.656, allocations: 0.5579 MB / 0.5887 GB, free: 44.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003732/1.659, allocations: 1.518 MB / 0.5901 GB, free: 44.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006436/1.666, allocations: 5.282 MB / 0.5953 GB, free: 38.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006228/1.672, allocations: 2.846 MB / 0.5981 GB, free: 37.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000132/1.672, allocations: 37.72 kB / 0.5981 GB, free: 37.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01652/1.689, allocations: 6.081 MB / 0.6041 GB, free: 35.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/1.689, allocations: 60 kB / 0.6041 GB, free: 35.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002296/1.689, allocations: 136 kB / 0.6042 GB, free: 35.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00023/1.69, allocations: 200 kB / 0.6044 GB, free: 34.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008337/1.698, allocations: 1.42 MB / 0.6058 GB, free: 33.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002437/1.698, allocations: 271.6 kB / 0.6061 GB, free: 33.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006857/1.705, allocations: 369.1 kB / 0.6064 GB, free: 33.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001125/1.706, allocations: 371.2 kB / 0.6068 GB, free: 32.72 MB / 426.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.0009833/1.707, allocations: 0.5706 MB / 0.6073 GB, free: 32.15 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007917/1.708, allocations: 343.5 kB / 0.6077 GB, free: 31.81 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002915/1.711, allocations: 1.217 MB / 0.6089 GB, free: 30.76 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.262e-05/1.711, allocations: 20 kB / 0.6089 GB, free: 30.74 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/1.711, allocations: 7.953 kB / 0.6089 GB, free: 30.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/1.711, allocations: 6.422 kB / 0.6089 GB, free: 30.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01398/1.725, allocations: 5.489 MB / 0.6142 GB, free: 25.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-05/1.725, allocations: 20.03 kB / 0.6143 GB, free: 25.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001814/1.727, allocations: 262.5 kB / 0.6145 GB, free: 25.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.204e-05/1.727, allocations: 24 kB / 0.6145 GB, free: 25.68 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/1.727, allocations: 44 kB / 0.6146 GB, free: 25.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.588e-05/1.727, allocations: 31.77 kB / 0.6146 GB, free: 25.61 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.61e-05/1.727, allocations: 23.94 kB / 0.6146 GB, free: 25.58 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008365/1.736, allocations: 4.835 MB / 0.6194 GB, free: 20.26 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003076/1.739, allocations: 0.5252 MB / 0.6199 GB, free: 19.75 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001341/1.74, allocations: 44.41 kB / 0.6199 GB, free: 19.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004726/1.745, allocations: 97.67 kB / 0.62 GB, free: 19.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005125/1.746, allocations: 139.5 kB / 0.6201 GB, free: 19.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001981/1.746, allocations: 64.22 kB / 0.6202 GB, free: 19.47 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008785/1.755, allocations: 2.44 MB / 0.6226 GB, free: 17.29 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.874e-06/1.755, allocations: 0 / 0.6226 GB, free: 17.29 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01104/1.766, allocations: 0.8947 MB / 0.6235 GB, free: 16.41 MB / 426.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.0102/1.776, allocations: 9.199 MB / 0.6324 GB, free: 6.961 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01245/1.789, allocations: 3.352 MB / 0.6357 GB, free: 3.898 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.718e-05/1.789, allocations: 4 kB / 0.6357 GB, free: 3.895 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002266/1.791, allocations: 0.6713 MB / 0.6364 GB, free: 3.281 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005467/1.796, allocations: 422.8 kB / 0.6368 GB, free: 2.918 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03248/1.829, allocations: 8.718 MB / 0.6453 GB, free: 11.11 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007502/1.837, allocations: 3.224 MB / 0.6484 GB, free: 8.652 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004594/1.841, allocations: 1.869 MB / 0.6503 GB, free: 6.926 MB / 442.7 MB Notification: Performance of SimCode: time 2.004e-06/1.841, allocations: 0 / 0.6503 GB, free: 6.926 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.196/6.038, allocations: 74.24 MB / 0.7228 GB, free: 85.82 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