Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.672/1.672, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.347e-05/4.357e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3649, allocations: 38.76 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1794/0.5443, allocations: 86.44 MB / 350.3 MB, free: 3.297 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003848/0.5448, allocations: 83.95 kB / 350.3 MB, free: 3.215 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.159/1.704, allocations: 165.2 MB / 0.5035 GB, free: 34.34 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.857e-06/1.704, allocations: 0 / 0.5035 GB, free: 34.34 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.00117/1.705, allocations: 167.6 kB / 0.5036 GB, free: 34.34 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.04122/1.747, allocations: 8.2 MB / 0.5116 GB, free: 31.29 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/1.747, allocations: 7 kB / 0.5116 GB, free: 31.29 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006059/1.753, allocations: 1.257 MB / 0.5129 GB, free: 31.19 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1248/1.877, allocations: 16.56 MB / 0.529 GB, free: 30.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06358/1.941, allocations: 13.75 MB / 0.5425 GB, free: 29.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009693/1.942, allocations: 0.5527 MB / 0.543 GB, free: 29.39 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004121/1.946, allocations: 0.7649 MB / 0.5438 GB, free: 29.37 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05355/2, allocations: 16.82 MB / 0.5602 GB, free: 25.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007311/2.001, allocations: 111.5 kB / 0.5603 GB, free: 25.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003491/2.004, allocations: 345.1 kB / 0.5606 GB, free: 25.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003556/2.008, allocations: 1.537 MB / 0.5621 GB, free: 25.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04289/2.051, allocations: 13.12 MB / 0.5749 GB, free: 19.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.448/2.499, allocations: 74.74 MB / 0.6479 GB, free: 19.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03094/2.53, allocations: 7.031 MB / 0.6548 GB, free: 19.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007678/2.537, allocations: 3.919 MB / 0.6586 GB, free: 19.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02994/2.567, allocations: 11.92 MB / 0.6703 GB, free: 16.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.657e-05/2.568, allocations: 75.64 kB / 0.6703 GB, free: 16.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=293): time 6.552e-06/2.568, allocations: 0 / 0.6703 GB, free: 16.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=366): time 0.2813/2.849, allocations: 35.32 MB / 0.7048 GB, free: 12.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/2.849, allocations: 399.5 kB / 0.7052 GB, free: 11.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0171/2.866, allocations: 6.356 MB / 0.7114 GB, free: 11.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009423/2.867, allocations: 83.14 kB / 0.7115 GB, free: 11.17 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004952/2.872, allocations: 5.073 MB / 0.7164 GB, free: 8.844 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002191/2.874, allocations: 1.337 MB / 0.7177 GB, free: 7.926 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001456/2.876, allocations: 174.9 kB / 0.7179 GB, free: 7.793 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0008314/2.877, allocations: 0.6784 MB / 0.7186 GB, free: 7.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009017/2.886, allocations: 3.466 MB / 0.722 GB, free: 6.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01303/2.899, allocations: 8.317 MB / 0.7301 GB, free: 13.47 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01377/2.913, allocations: 5.298 MB / 0.7353 GB, free: 9.297 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001931/2.913, allocations: 48 kB / 0.7353 GB, free: 9.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.05151/2.965, allocations: 14.48 MB / 0.7494 GB, free: 13.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001683/2.965, allocations: 80.94 kB / 0.7495 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003121/2.965, allocations: 168 kB / 0.7497 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02103/2.986, allocations: 3.73 MB / 0.7533 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01276/2.999, allocations: 1.854 MB / 0.7551 GB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07468/3.074, allocations: 24.05 MB / 0.7786 GB, free: 4.887 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01292/3.087, allocations: 496.6 kB / 0.7791 GB, free: 4.465 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002149/3.089, allocations: 0.4905 MB / 0.7796 GB, free: 3.984 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 768 * Number of states: 0 () * Number of discrete variables: 69 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1001): * Single equations (assignments): 995 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002352/3.091, allocations: 0.7715 MB / 0.7803 GB, free: 3.211 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00216/3.093, allocations: 0.6788 MB / 0.781 GB, free: 2.523 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3144/3.408, allocations: 8.955 MB / 0.7897 GB, free: 96.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.468e-05/3.408, allocations: 39.12 kB / 0.7898 GB, free: 96.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.746e-05/3.408, allocations: 17.81 kB / 0.7898 GB, free: 96.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-05/3.408, allocations: 20.36 kB / 0.7898 GB, free: 96.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06284/3.471, allocations: 19.44 MB / 0.8088 GB, free: 95.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.989e-05/3.471, allocations: 10.38 kB / 0.8088 GB, free: 95.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004298/3.475, allocations: 443.9 kB / 0.8092 GB, free: 95.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01895/3.494, allocations: 3.49 MB / 0.8126 GB, free: 95.38 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009749/3.496, allocations: 71.69 kB / 0.8127 GB, free: 95.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05159/3.547, allocations: 23.08 MB / 0.8352 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.316e-05/3.547, allocations: 12.88 kB / 0.8353 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03978/3.587, allocations: 14.93 MB / 0.8498 GB, free: 84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005257/3.592, allocations: 1.237 MB / 0.851 GB, free: 83.67 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00254/3.595, allocations: 74.23 kB / 0.8511 GB, free: 83.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007066/3.602, allocations: 212.5 kB / 0.8513 GB, free: 83.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001686/3.604, allocations: 269.8 kB / 0.8516 GB, free: 83.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008404/3.605, allocations: 99.92 kB / 0.8517 GB, free: 83.51 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01278/3.617, allocations: 4.573 MB / 0.8561 GB, free: 81.99 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.21e-07/3.618, allocations: 0 / 0.8561 GB, free: 81.99 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01313/3.631, allocations: 2.012 MB / 0.8581 GB, free: 81.78 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 237 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.04179/3.673, allocations: 16.93 MB / 0.8746 GB, free: 72.69 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02244/3.695, allocations: 9.253 MB / 0.8837 GB, free: 64.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-05/3.695, allocations: 0 / 0.8837 GB, free: 64.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01151/3.707, allocations: 4.132 MB / 0.8877 GB, free: 61.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009284/3.716, allocations: 1.021 MB / 0.8887 GB, free: 60.21 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06134/3.777, allocations: 18.85 MB / 0.9071 GB, free: 43.96 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01485/3.792, allocations: 5.936 MB / 0.9129 GB, free: 39.67 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009472/3.802, allocations: 4.017 MB / 0.9168 GB, free: 35.93 MB / 426.7 MB Notification: Performance of SimCode: time 1.984e-06/3.802, allocations: 0 / 0.9168 GB, free: 35.93 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.644/10.45, allocations: 251 MB / 1.162 GB, free: 67.77 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat