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.887/1.887, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.3e-05/3.311e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09327/0.09333, allocations: 44.5 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5088/0.6022, allocations: 92.16 MB / 392.1 MB, free: 12.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004221/0.6027, allocations: 83.61 kB / 392.2 MB, free: 12.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.131/1.734, allocations: 165.2 MB / 0.5444 GB, free: 58.94 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.497e-06/1.734, allocations: 2.875 kB / 0.5444 GB, free: 58.94 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008144/1.735, allocations: 168 kB / 0.5445 GB, free: 58.93 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.03385/1.768, allocations: 8.191 MB / 0.5525 GB, free: 55.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/1.769, allocations: 7.594 kB / 0.5525 GB, free: 55.86 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006455/1.775, allocations: 1.25 MB / 0.5537 GB, free: 55.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1213/1.896, allocations: 16.57 MB / 0.5699 GB, free: 55.21 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04857/1.945, allocations: 13.76 MB / 0.5834 GB, free: 53.99 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007739/1.946, allocations: 0.5431 MB / 0.5839 GB, free: 53.97 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004179/1.95, allocations: 0.7628 MB / 0.5846 GB, free: 53.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05354/2.004, allocations: 16.74 MB / 0.601 GB, free: 50.35 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006731/2.004, allocations: 112.9 kB / 0.6011 GB, free: 50.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003511/2.008, allocations: 351.6 kB / 0.6014 GB, free: 50.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003571/2.011, allocations: 1.527 MB / 0.6029 GB, free: 50.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04231/2.054, allocations: 12.88 MB / 0.6155 GB, free: 45.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5231/2.577, allocations: 74.76 MB / 0.6885 GB, free: 46.3 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04932/2.626, allocations: 6.995 MB / 0.6953 GB, free: 45.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008835/2.635, allocations: 3.927 MB / 0.6992 GB, free: 45.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02943/2.665, allocations: 11.93 MB / 0.7108 GB, free: 43.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.006e-05/2.665, allocations: 73.64 kB / 0.7109 GB, free: 43.27 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 7.694e-06/2.665, allocations: 1.719 kB / 0.7109 GB, free: 43.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=366): time 0.2291/2.894, allocations: 35.29 MB / 0.7453 GB, free: 38.63 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001774/2.894, allocations: 404 kB / 0.7457 GB, free: 38.19 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0218/2.916, allocations: 6.349 MB / 0.7519 GB, free: 37.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009517/2.917, allocations: 78.39 kB / 0.752 GB, free: 37.64 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005016/2.922, allocations: 5.073 MB / 0.757 GB, free: 35.32 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002287/2.924, allocations: 1.344 MB / 0.7583 GB, free: 34.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001457/2.926, allocations: 173.3 kB / 0.7584 GB, free: 34.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009114/2.927, allocations: 0.6764 MB / 0.7591 GB, free: 34.19 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008983/2.936, allocations: 3.468 MB / 0.7625 GB, free: 34.04 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01258/2.948, allocations: 8.273 MB / 0.7706 GB, free: 26.37 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/2.961, allocations: 5.292 MB / 0.7757 GB, free: 24.74 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002057/2.961, allocations: 47.25 kB / 0.7758 GB, free: 24.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04674/3.008, allocations: 14 MB / 0.7894 GB, free: 17.74 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/3.008, allocations: 78.34 kB / 0.7895 GB, free: 17.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002821/3.008, allocations: 168 kB / 0.7897 GB, free: 17.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01938/3.028, allocations: 3.724 MB / 0.7933 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01293/3.041, allocations: 1.859 MB / 0.7951 GB, free: 13.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06273/3.104, allocations: 23.81 MB / 0.8184 GB, free: 8.211 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01201/3.116, allocations: 0.49 MB / 0.8189 GB, free: 7.785 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002284/3.118, allocations: 0.4958 MB / 0.8193 GB, free: 7.301 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.003442/3.121, allocations: 0.7663 MB / 0.8201 GB, free: 6.539 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002243/3.124, allocations: 0.6826 MB / 0.8208 GB, free: 5.848 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03714/3.161, allocations: 9.002 MB / 0.8296 GB, free: 15.16 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.697e-05/3.161, allocations: 43.61 kB / 0.8296 GB, free: 15.12 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-05/3.161, allocations: 16 kB / 0.8296 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.917e-05/3.161, allocations: 21.34 kB / 0.8296 GB, free: 15.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06958/3.231, allocations: 19.43 MB / 0.8486 GB, free: 15.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.163e-05/3.231, allocations: 8 kB / 0.8486 GB, free: 15.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004454/3.235, allocations: 452.1 kB / 0.849 GB, free: 14.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01997/3.255, allocations: 3.487 MB / 0.8524 GB, free: 11.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009116/3.256, allocations: 65.17 kB / 0.8525 GB, free: 11.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3774/3.634, allocations: 23.08 MB / 0.8751 GB, free: 117.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.494e-05/3.634, allocations: 12.62 kB / 0.8751 GB, free: 117.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03894/3.673, allocations: 14.94 MB / 0.8897 GB, free: 114.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005026/3.678, allocations: 1.22 MB / 0.8908 GB, free: 114.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002622/3.681, allocations: 71.92 kB / 0.8909 GB, free: 114.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007065/3.688, allocations: 216.8 kB / 0.8911 GB, free: 114.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001583/3.689, allocations: 266.4 kB / 0.8914 GB, free: 114.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005927/3.69, allocations: 106.8 kB / 0.8915 GB, free: 114.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01255/3.702, allocations: 4.568 MB / 0.8959 GB, free: 114.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.052e-06/3.703, allocations: 0 / 0.8959 GB, free: 114.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01406/3.717, allocations: 2.009 MB / 0.8979 GB, free: 114.4 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.04199/3.759, allocations: 16.93 MB / 0.9144 GB, free: 110 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02246/3.781, allocations: 8.938 MB / 0.9232 GB, free: 108.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-05/3.781, allocations: 3.719 kB / 0.9232 GB, free: 108.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01238/3.794, allocations: 4.053 MB / 0.9271 GB, free: 106.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01201/3.806, allocations: 1.019 MB / 0.9281 GB, free: 106.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08375/3.89, allocations: 18.82 MB / 0.9465 GB, free: 99.35 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01721/3.907, allocations: 5.942 MB / 0.9523 GB, free: 97.52 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009764/3.917, allocations: 4.006 MB / 0.9562 GB, free: 94.23 MB / 490.7 MB Notification: Performance of SimCode: time 2.274e-06/3.917, allocations: 0 / 0.9562 GB, free: 94.23 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.579/10.5, allocations: 249.5 MB / 1.2 GB, free: 13.96 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