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.743/1.743, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.197e-05/3.209e-05, allocations: 4 kB / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2555, allocations: 38.76 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1706/0.4262, allocations: 85.19 MB / 349 MB, free: 4.551 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003203/0.4265, allocations: 83.95 kB / 349.1 MB, free: 4.469 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4945/0.921, allocations: 71.69 MB / 420.8 MB, free: 52.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.9211, allocations: 0 / 420.8 MB, free: 52.96 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002002/0.9213, allocations: 71.98 kB / 420.9 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.01155/0.9328, allocations: 3.342 MB / 424.2 MB, free: 49.49 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/0.9329, allocations: 16.03 kB / 424.2 MB, free: 49.48 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002246/0.9352, allocations: 0.631 MB / 424.9 MB, free: 48.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01541/0.9506, allocations: 2.086 MB / 427 MB, free: 46.74 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01389/0.9646, allocations: 4.014 MB / 431 MB, free: 42.66 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/0.9648, allocations: 262.8 kB / 431.2 MB, free: 42.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001674/0.9665, allocations: 343.8 kB / 431.6 MB, free: 42.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02096/0.9875, allocations: 8.757 MB / 440.3 MB, free: 32.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001756/0.9877, allocations: 63.34 kB / 440.4 MB, free: 32.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008238/0.9886, allocations: 175.9 kB / 440.5 MB, free: 32.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001644/0.9902, allocations: 0.8682 MB / 441.4 MB, free: 31.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01906/1.009, allocations: 6.896 MB / 448.3 MB, free: 24.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05913/1.068, allocations: 42.59 MB / 490.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01263/1.081, allocations: 3.137 MB / 494 MB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003468/1.085, allocations: 1.416 MB / 495.5 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01054/1.095, allocations: 4.088 MB / 499.5 MB, free: 3.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.641e-05/1.095, allocations: 47.06 kB / 499.6 MB, free: 3.285 MB / 346.7 MB Notification: Performance of pre-optimization done (n=114): time 4.288e-06/1.095, allocations: 0 / 499.6 MB, free: 3.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.2936/1.389, allocations: 9.384 MB / 0.497 GB, free: 85.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/1.389, allocations: 145.3 kB / 0.4972 GB, free: 85.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007118/1.396, allocations: 3.278 MB / 0.5004 GB, free: 84.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000314/1.397, allocations: 40 kB / 0.5004 GB, free: 84.95 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002169/1.399, allocations: 2.672 MB / 0.503 GB, free: 83.46 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007321/1.4, allocations: 0.4991 MB / 0.5035 GB, free: 83.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004724/1.4, allocations: 103.9 kB / 0.5036 GB, free: 83.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003091/1.4, allocations: 0.5296 MB / 0.5041 GB, free: 82.88 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00363/1.404, allocations: 1.631 MB / 0.5057 GB, free: 82.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005549/1.41, allocations: 4.988 MB / 0.5106 GB, free: 78.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006139/1.416, allocations: 2.851 MB / 0.5134 GB, free: 78.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001079/1.416, allocations: 36.97 kB / 0.5134 GB, free: 78.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.01592/1.432, allocations: 6.111 MB / 0.5194 GB, free: 77.31 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.368e-05/1.432, allocations: 57.94 kB / 0.5194 GB, free: 77.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001477/1.432, allocations: 121.9 kB / 0.5196 GB, free: 77.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009567/1.433, allocations: 341.7 kB / 0.5199 GB, free: 77.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007573/1.441, allocations: 1.268 MB / 0.5211 GB, free: 77.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003101/1.444, allocations: 2.336 MB / 0.5234 GB, free: 75.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005729/1.45, allocations: 282.1 kB / 0.5237 GB, free: 75.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001052/1.451, allocations: 332.8 kB / 0.524 GB, free: 75.26 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.0009679/1.452, allocations: 0.5159 MB / 0.5245 GB, free: 74.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007423/1.452, allocations: 307.2 kB / 0.5248 GB, free: 74.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007194/1.46, allocations: 2.32 MB / 0.527 GB, free: 73.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.127e-05/1.46, allocations: 18.75 kB / 0.5271 GB, free: 73.88 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/1.46, allocations: 2.875 kB / 0.5271 GB, free: 73.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.928e-05/1.46, allocations: 9.125 kB / 0.5271 GB, free: 73.88 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01726/1.477, allocations: 5.81 MB / 0.5328 GB, free: 71.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.644e-05/1.477, allocations: 7.562 kB / 0.5328 GB, free: 71.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001589/1.479, allocations: 168.2 kB / 0.5329 GB, free: 71.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003789/1.483, allocations: 0.7135 MB / 0.5336 GB, free: 71.7 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003004/1.483, allocations: 19.81 kB / 0.5336 GB, free: 71.69 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00846/1.491, allocations: 4.436 MB / 0.538 GB, free: 68.92 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.491, allocations: 0 / 0.538 GB, free: 68.92 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009958/1.501, allocations: 4.363 MB / 0.5422 GB, free: 65.14 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001736/1.503, allocations: 0.5328 MB / 0.5427 GB, free: 64.62 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005918/1.504, allocations: 20 kB / 0.5428 GB, free: 64.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001982/1.506, allocations: 72.44 kB / 0.5428 GB, free: 64.56 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002383/1.506, allocations: 66.16 kB / 0.5429 GB, free: 64.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/1.506, allocations: 32 kB / 0.5429 GB, free: 64.49 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004612/1.511, allocations: 2.271 MB / 0.5451 GB, free: 62.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.511, allocations: 0 / 0.5451 GB, free: 62.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005993/1.517, allocations: 0.8093 MB / 0.5459 GB, free: 61.69 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.01042/1.527, allocations: 5.289 MB / 0.5511 GB, free: 56.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008164/1.536, allocations: 3.726 MB / 0.5547 GB, free: 53.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/1.536, allocations: 0 / 0.5547 GB, free: 53.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002074/1.538, allocations: 1.059 MB / 0.5558 GB, free: 52.62 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002727/1.54, allocations: 358.1 kB / 0.5561 GB, free: 52.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02288/1.563, allocations: 7.315 MB / 0.5633 GB, free: 45.97 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005137/1.569, allocations: 2.834 MB / 0.566 GB, free: 43.79 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003338/1.572, allocations: 1.558 MB / 0.5676 GB, free: 42.35 MB / 346.7 MB Notification: Performance of SimCode: time 1.483e-06/1.572, allocations: 0 / 0.5676 GB, free: 42.35 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.523/6.094, allocations: 81.14 MB / 0.6468 GB, free: 92.87 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