Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.781/1.781, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.855e-05/2.873e-05, allocations: 0 / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.2992, allocations: 38.77 MB / 263.8 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.4488, allocations: 85.17 MB / 349 MB, free: 4.559 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003112/0.4492, allocations: 87.92 kB / 349.1 MB, free: 4.473 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4933/0.9425, allocations: 71.69 MB / 420.8 MB, free: 52.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.9426, allocations: 8 kB / 420.8 MB, free: 52.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001985/0.9428, allocations: 64 kB / 420.8 MB, free: 52.89 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01184/0.9547, allocations: 3.353 MB / 424.2 MB, free: 49.47 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.9547, allocations: 12.03 kB / 424.2 MB, free: 49.46 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002137/0.9569, allocations: 0.6349 MB / 424.8 MB, free: 48.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01567/0.9726, allocations: 2.078 MB / 426.9 MB, free: 46.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01514/0.9878, allocations: 4.022 MB / 430.9 MB, free: 42.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003388/0.9882, allocations: 266.8 kB / 431.2 MB, free: 42.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001964/0.9901, allocations: 343.8 kB / 431.5 MB, free: 42.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02373/1.014, allocations: 8.79 MB / 440.3 MB, free: 32.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002125/1.014, allocations: 63.34 kB / 440.4 MB, free: 32.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001193/1.015, allocations: 175.9 kB / 440.6 MB, free: 32.03 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001835/1.017, allocations: 0.8643 MB / 441.4 MB, free: 31.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02089/1.038, allocations: 7.051 MB / 448.5 MB, free: 24.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06402/1.102, allocations: 42.59 MB / 491.1 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01289/1.115, allocations: 3.161 MB / 494.2 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003406/1.119, allocations: 1.416 MB / 495.6 MB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01058/1.129, allocations: 4.088 MB / 499.7 MB, free: 3.105 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.802e-05/1.129, allocations: 47.06 kB / 499.8 MB, free: 3.051 MB / 346.7 MB Notification: Performance of pre-optimization done (n=114): time 4.488e-06/1.129, allocations: 0 / 499.8 MB, free: 3.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.289/1.418, allocations: 9.388 MB / 0.4972 GB, free: 85.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.133e-05/1.419, allocations: 142.8 kB / 0.4974 GB, free: 85.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01025/1.429, allocations: 3.28 MB / 0.5006 GB, free: 84.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003491/1.429, allocations: 41.45 kB / 0.5006 GB, free: 84.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002371/1.432, allocations: 2.678 MB / 0.5032 GB, free: 83.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008314/1.432, allocations: 0.4921 MB / 0.5037 GB, free: 83.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005974/1.433, allocations: 103.1 kB / 0.5038 GB, free: 83.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003261/1.433, allocations: 0.5294 MB / 0.5043 GB, free: 82.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004032/1.437, allocations: 1.625 MB / 0.5059 GB, free: 82.83 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01117/1.449, allocations: 5.024 MB / 0.5108 GB, free: 78.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01104/1.46, allocations: 2.847 MB / 0.5136 GB, free: 78.39 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002238/1.46, allocations: 38.23 kB / 0.5136 GB, free: 78.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.02236/1.482, allocations: 6.446 MB / 0.5199 GB, free: 77.04 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/1.483, allocations: 56.97 kB / 0.52 GB, free: 77.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001648/1.483, allocations: 122.8 kB / 0.5201 GB, free: 77.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009709/1.484, allocations: 345.4 kB / 0.5204 GB, free: 76.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007989/1.492, allocations: 1.274 MB / 0.5217 GB, free: 76.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003264/1.495, allocations: 2.333 MB / 0.524 GB, free: 75.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005914/1.501, allocations: 279.9 kB / 0.5242 GB, free: 75.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001215/1.502, allocations: 332.3 kB / 0.5245 GB, free: 74.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (656): * Single equations (assignments): 652 * 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%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00112/1.503, allocations: 0.5187 MB / 0.525 GB, free: 74.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008076/1.504, allocations: 305.1 kB / 0.5253 GB, free: 74.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007645/1.512, allocations: 2.317 MB / 0.5276 GB, free: 73.61 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.525e-05/1.512, allocations: 17.97 kB / 0.5276 GB, free: 73.61 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-05/1.512, allocations: 7.656 kB / 0.5276 GB, free: 73.61 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.154e-05/1.512, allocations: 8.938 kB / 0.5276 GB, free: 73.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01798/1.53, allocations: 5.827 MB / 0.5333 GB, free: 71.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.401e-05/1.53, allocations: 4.062 kB / 0.5333 GB, free: 71.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/1.532, allocations: 161.6 kB / 0.5335 GB, free: 71.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003795/1.536, allocations: 0.7101 MB / 0.5342 GB, free: 71.42 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002896/1.536, allocations: 19.75 kB / 0.5342 GB, free: 71.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008407/1.544, allocations: 4.444 MB / 0.5385 GB, free: 68.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/1.544, allocations: 0 / 0.5385 GB, free: 68.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/1.554, allocations: 4.357 MB / 0.5428 GB, free: 64.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001828/1.556, allocations: 0.528 MB / 0.5433 GB, free: 64.11 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005994/1.557, allocations: 19.94 kB / 0.5433 GB, free: 64.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001942/1.559, allocations: 70.7 kB / 0.5434 GB, free: 64.04 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000264/1.559, allocations: 64.33 kB / 0.5434 GB, free: 64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/1.559, allocations: 32 kB / 0.5435 GB, free: 63.97 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004922/1.564, allocations: 2.273 MB / 0.5457 GB, free: 61.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.564, allocations: 0 / 0.5457 GB, free: 61.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005803/1.57, allocations: 0.8091 MB / 0.5465 GB, free: 61.17 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 86 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01102/1.581, allocations: 5.285 MB / 0.5517 GB, free: 56.46 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008785/1.59, allocations: 3.909 MB / 0.5555 GB, free: 52.9 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/1.59, allocations: 4.062 kB / 0.5555 GB, free: 52.89 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00226/1.592, allocations: 1.067 MB / 0.5565 GB, free: 51.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002919/1.595, allocations: 353.7 kB / 0.5569 GB, free: 51.61 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02602/1.621, allocations: 7.325 MB / 0.564 GB, free: 45.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007363/1.629, allocations: 2.832 MB / 0.5668 GB, free: 43.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003297/1.632, allocations: 1.557 MB / 0.5683 GB, free: 41.63 MB / 346.7 MB Notification: Performance of SimCode: time 2.184e-06/1.632, allocations: 0 / 0.5683 GB, free: 41.63 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.268/5.9, allocations: 82 MB / 0.6484 GB, free: 91.83 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat does not exist to compare? outputFormat=mat