Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.921/1.921, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.967e-05/2.985e-05, allocations: 4 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09091/0.09097, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4385/0.5295, allocations: 92.15 MB / 392.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/0.5299, allocations: 84.66 kB / 392.2 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.023/1.553, allocations: 165.2 MB / 0.5443 GB, free: 58.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.516e-06/1.553, allocations: 0 / 0.5443 GB, free: 58.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000778/1.554, allocations: 163.5 kB / 0.5445 GB, free: 58.86 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.03366/1.588, allocations: 8.192 MB / 0.5525 GB, free: 55.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/1.588, allocations: 7.562 kB / 0.5525 GB, free: 55.79 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00605/1.594, allocations: 1.252 MB / 0.5537 GB, free: 55.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1196/1.713, allocations: 16.56 MB / 0.5699 GB, free: 55.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0465/1.76, allocations: 13.75 MB / 0.5833 GB, free: 53.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007485/1.761, allocations: 0.5522 MB / 0.5838 GB, free: 53.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004104/1.765, allocations: 0.7571 MB / 0.5846 GB, free: 53.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05571/1.821, allocations: 16.82 MB / 0.601 GB, free: 50.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008092/1.821, allocations: 117 kB / 0.6011 GB, free: 50.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003841/1.825, allocations: 352.2 kB / 0.6014 GB, free: 50.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003674/1.829, allocations: 1.532 MB / 0.6029 GB, free: 50.08 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04267/1.872, allocations: 13.13 MB / 0.6158 GB, free: 45.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4978/2.37, allocations: 74.77 MB / 0.6888 GB, free: 45.84 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03145/2.401, allocations: 7.024 MB / 0.6956 GB, free: 45.15 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00752/2.409, allocations: 3.926 MB / 0.6995 GB, free: 45.11 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02922/2.438, allocations: 11.93 MB / 0.7111 GB, free: 42.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.202e-05/2.438, allocations: 69.59 kB / 0.7112 GB, free: 42.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 6.482e-06/2.438, allocations: 3.609 kB / 0.7112 GB, free: 42.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=366): time 0.2063/2.644, allocations: 35.3 MB / 0.7457 GB, free: 38.17 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/2.645, allocations: 402.9 kB / 0.7461 GB, free: 37.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01801/2.663, allocations: 6.342 MB / 0.7522 GB, free: 37.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001045/2.664, allocations: 81.3 kB / 0.7523 GB, free: 37.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005229/2.669, allocations: 5.076 MB / 0.7573 GB, free: 34.86 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002206/2.671, allocations: 1.347 MB / 0.7586 GB, free: 34.06 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001234/2.672, allocations: 173.2 kB / 0.7588 GB, free: 34.06 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007478/2.673, allocations: 0.6759 MB / 0.7594 GB, free: 33.72 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008899/2.682, allocations: 3.466 MB / 0.7628 GB, free: 33.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01265/2.695, allocations: 8.326 MB / 0.7709 GB, free: 26.21 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01243/2.707, allocations: 5.296 MB / 0.7761 GB, free: 24.58 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002076/2.708, allocations: 47 kB / 0.7762 GB, free: 24.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04718/2.755, allocations: 14.46 MB / 0.7903 GB, free: 16.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001548/2.755, allocations: 83.47 kB / 0.7904 GB, free: 16.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002644/2.755, allocations: 168 kB / 0.7905 GB, free: 16.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01978/2.775, allocations: 3.734 MB / 0.7942 GB, free: 13.99 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0125/2.788, allocations: 1.86 MB / 0.796 GB, free: 12.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06436/2.852, allocations: 24.07 MB / 0.8195 GB, free: 8.121 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01179/2.864, allocations: 0.4897 MB / 0.82 GB, free: 7.695 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002419/2.866, allocations: 0.4911 MB / 0.8204 GB, free: 7.215 MB / 458.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.003707/2.87, allocations: 0.7739 MB / 0.8212 GB, free: 6.441 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002232/2.872, allocations: 0.6788 MB / 0.8219 GB, free: 5.754 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0398/2.912, allocations: 9.049 MB / 0.8307 GB, free: 15.17 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.689e-05/2.912, allocations: 39.83 kB / 0.8307 GB, free: 15.14 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.909e-05/2.912, allocations: 24 kB / 0.8308 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.896e-05/2.912, allocations: 25.23 kB / 0.8308 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06803/2.98, allocations: 19.43 MB / 0.8498 GB, free: 14.94 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.204e-05/2.981, allocations: 8 kB / 0.8498 GB, free: 14.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004218/2.985, allocations: 455.3 kB / 0.8502 GB, free: 14.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01985/3.005, allocations: 3.485 MB / 0.8536 GB, free: 10.99 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008456/3.006, allocations: 71.98 kB / 0.8537 GB, free: 10.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4121/3.418, allocations: 23.08 MB / 0.8762 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/3.418, allocations: 10.75 kB / 0.8762 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04113/3.459, allocations: 14.93 MB / 0.8908 GB, free: 114.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006799/3.466, allocations: 1.228 MB / 0.892 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002909/3.469, allocations: 67.41 kB / 0.8921 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008818/3.478, allocations: 210.9 kB / 0.8923 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002052/3.48, allocations: 267.4 kB / 0.8925 GB, free: 114.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006175/3.48, allocations: 106.2 kB / 0.8926 GB, free: 114.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01602/3.496, allocations: 4.568 MB / 0.8971 GB, free: 114.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.41e-07/3.496, allocations: 2.531 kB / 0.8971 GB, free: 114.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0162/3.513, allocations: 2.009 MB / 0.899 GB, free: 114.1 MB / 490.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.04004/3.553, allocations: 16.93 MB / 0.9156 GB, free: 109.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02115/3.574, allocations: 9.253 MB / 0.9246 GB, free: 107.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.6e-05/3.574, allocations: 6.828 kB / 0.9246 GB, free: 107.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01101/3.585, allocations: 4.123 MB / 0.9287 GB, free: 105.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008435/3.593, allocations: 1.018 MB / 0.9296 GB, free: 105.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05781/3.651, allocations: 18.84 MB / 0.948 GB, free: 98.56 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01446/3.666, allocations: 5.936 MB / 0.9538 GB, free: 96.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008818/3.675, allocations: 4.016 MB / 0.9578 GB, free: 93.43 MB / 490.7 MB Notification: Performance of SimCode: time 1.473e-06/3.675, allocations: 0 / 0.9578 GB, free: 93.43 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.507/10.18, allocations: 251 MB / 1.203 GB, free: 11.9 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat