Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.04/2.04, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.495e-05/2.494e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3077, allocations: 44.49 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1615/0.4693, allocations: 90.25 MB / 384.4 MB, free: 7.617 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003558/0.4697, allocations: 87.95 kB / 384.5 MB, free: 7.531 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6721/1.142, allocations: 70.29 MB / 454.8 MB, free: 89.54 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.196e-06/1.142, allocations: 0 / 454.8 MB, free: 89.54 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003029/1.142, allocations: 60.88 kB / 454.9 MB, free: 89.54 MB / 362.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.01859/1.161, allocations: 3.35 MB / 458.2 MB, free: 87.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.564e-05/1.161, allocations: 6.094 kB / 458.2 MB, free: 87.24 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02496/1.186, allocations: 2.083 MB / 460.3 MB, free: 86.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02246/1.208, allocations: 4.021 MB / 464.3 MB, free: 83.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003085/1.209, allocations: 115.9 kB / 464.5 MB, free: 83.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002409/1.211, allocations: 203.9 kB / 464.7 MB, free: 83.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01272/1.224, allocations: 5.03 MB / 469.7 MB, free: 78.26 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01883/1.243, allocations: 7.934 MB / 477.6 MB, free: 69.35 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002572/1.243, allocations: 63.45 kB / 477.7 MB, free: 69.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001611/1.245, allocations: 31.98 kB / 477.7 MB, free: 69.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001972/1.247, allocations: 0.8643 MB / 478.6 MB, free: 68.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05481/1.302, allocations: 40.97 MB / 0.5074 GB, free: 26.31 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004444/1.306, allocations: 2.47 MB / 0.5098 GB, free: 23.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002688/1.309, allocations: 1.377 MB / 0.5111 GB, free: 22.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005377/1.31, allocations: 327.5 kB / 0.5114 GB, free: 21.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/1.31, allocations: 51.06 kB / 0.5115 GB, free: 21.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 5.57e-06/1.31, allocations: 0 / 0.5115 GB, free: 21.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.03374/1.343, allocations: 11.25 MB / 0.5225 GB, free: 10.47 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.993e-05/1.344, allocations: 170.8 kB / 0.5226 GB, free: 10.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005686/1.349, allocations: 2.785 MB / 0.5253 GB, free: 7.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003811/1.35, allocations: 25.7 kB / 0.5254 GB, free: 7.449 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002174/1.352, allocations: 2.755 MB / 0.5281 GB, free: 4.656 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008067/1.353, allocations: 0.5131 MB / 0.5286 GB, free: 4.137 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005474/1.353, allocations: 0 / 0.5286 GB, free: 4.137 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003732/1.354, allocations: 0.5421 MB / 0.5291 GB, free: 3.586 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003649/1.357, allocations: 1.588 MB / 0.5306 GB, free: 1.992 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007433/1.365, allocations: 5.107 MB / 0.5356 GB, free: 11.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007339/1.372, allocations: 2.837 MB / 0.5384 GB, free: 8.254 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001333/1.372, allocations: 36 kB / 0.5384 GB, free: 8.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01855/1.391, allocations: 5.929 MB / 0.5442 GB, free: 2.277 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000122/1.391, allocations: 60 kB / 0.5443 GB, free: 2.219 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002118/1.391, allocations: 128.8 kB / 0.5444 GB, free: 2.094 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/1.392, allocations: 348.7 kB / 0.5447 GB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008646/1.401, allocations: 1.322 MB / 0.546 GB, free: 436 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003812/1.405, allocations: 2.257 MB / 0.5482 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005765/1.411, allocations: 183.5 kB / 0.5484 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001445/1.412, allocations: 352 kB / 0.5487 GB, free: 13.53 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 578 * 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 (686): * Single equations (assignments): 682 * 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.0017/1.414, allocations: 412.7 kB / 0.5491 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009367/1.423, allocations: 2.634 MB / 0.5517 GB, free: 10.47 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/1.425, allocations: 276.4 kB / 0.552 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008512/1.433, allocations: 2.258 MB / 0.5542 GB, free: 7.918 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-05/1.433, allocations: 12 kB / 0.5542 GB, free: 7.906 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/1.433, allocations: 4 kB / 0.5542 GB, free: 7.902 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.081e-05/1.433, allocations: 11.97 kB / 0.5542 GB, free: 7.891 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01997/1.453, allocations: 5.608 MB / 0.5597 GB, free: 2.242 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.196e-05/1.453, allocations: 0 / 0.5597 GB, free: 2.242 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001748/1.455, allocations: 179.7 kB / 0.5599 GB, free: 2.066 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004188/1.459, allocations: 0.7147 MB / 0.5606 GB, free: 1.348 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003004/1.46, allocations: 4.469 kB / 0.5606 GB, free: 1.344 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2903/1.75, allocations: 4.285 MB / 0.5647 GB, free: 104.6 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/1.75, allocations: 2.562 kB / 0.5647 GB, free: 104.6 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01185/1.762, allocations: 4.387 MB / 0.569 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001876/1.764, allocations: 0.4968 MB / 0.5695 GB, free: 103.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009266/1.765, allocations: 7.656 kB / 0.5695 GB, free: 103.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002283/1.767, allocations: 53.64 kB / 0.5696 GB, free: 103.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004195/1.767, allocations: 75.39 kB / 0.5696 GB, free: 103.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/1.768, allocations: 33.53 kB / 0.5697 GB, free: 103.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004978/1.773, allocations: 1.85 MB / 0.5715 GB, free: 103.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.773, allocations: 0 / 0.5715 GB, free: 103.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006625/1.779, allocations: 0.6945 MB / 0.5722 GB, free: 103.8 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (97): * Single equations (assignments): 93 * 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.01152/1.791, allocations: 5.357 MB / 0.5774 GB, free: 102.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00893/1.8, allocations: 3.77 MB / 0.5811 GB, free: 101.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/1.8, allocations: 3.656 kB / 0.5811 GB, free: 101.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002287/1.802, allocations: 1.068 MB / 0.5821 GB, free: 101.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002854/1.805, allocations: 290.7 kB / 0.5824 GB, free: 101.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02372/1.829, allocations: 7.222 MB / 0.5894 GB, free: 98.49 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005439/1.834, allocations: 2.839 MB / 0.5922 GB, free: 97.34 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003688/1.838, allocations: 1.545 MB / 0.5937 GB, free: 96.12 MB / 394.7 MB Notification: Performance of SimCode: time 2.024e-06/1.838, allocations: 0 / 0.5937 GB, free: 96.12 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.05/5.888, allocations: 79.87 MB / 0.6717 GB, free: 29.05 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat does not exist to compare? outputFormat=mat