Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.736/1.736, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.033e-05/4.063e-05, allocations: 4 kB / 225.1 MB, free: 2.605 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2675, allocations: 38.77 MB / 263.9 MB, free: 9.746 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1564/0.424, allocations: 84.9 MB / 348.8 MB, free: 4.711 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003269/0.4243, allocations: 87.94 kB / 348.8 MB, free: 4.625 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.446/1.871, allocations: 160 MB / 0.4969 GB, free: 36.18 MB / 346.8 MB Notification: Performance of FrontEnd: time 2.705e-06/1.871, allocations: 0 / 0.4969 GB, free: 36.18 MB / 346.8 MB Notification: Performance of Transformations before backend: time 0.0007361/1.872, allocations: 161.4 kB / 0.497 GB, free: 36.18 MB / 346.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.0325/1.904, allocations: 7.876 MB / 0.5047 GB, free: 34.35 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/1.904, allocations: 10.88 kB / 0.5047 GB, free: 34.35 MB / 346.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005718/1.91, allocations: 1.204 MB / 0.5059 GB, free: 34.25 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1177/2.028, allocations: 16.49 MB / 0.522 GB, free: 33.71 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04558/2.073, allocations: 13.47 MB / 0.5352 GB, free: 32.52 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007797/2.074, allocations: 0.5261 MB / 0.5357 GB, free: 32.51 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003899/2.078, allocations: 0.7334 MB / 0.5364 GB, free: 32.49 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0644/2.142, allocations: 16.16 MB / 0.5522 GB, free: 28.93 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008112/2.143, allocations: 117.5 kB / 0.5523 GB, free: 28.91 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003845/2.147, allocations: 333.4 kB / 0.5526 GB, free: 28.91 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004726/2.152, allocations: 1.483 MB / 0.5541 GB, free: 28.89 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04539/2.197, allocations: 12.46 MB / 0.5662 GB, free: 26.55 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4897/2.687, allocations: 73.31 MB / 0.6378 GB, free: 24.89 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03208/2.719, allocations: 7.422 MB / 0.6451 GB, free: 24.2 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007561/2.727, allocations: 3.964 MB / 0.649 GB, free: 24.17 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02663/2.754, allocations: 11.57 MB / 0.6603 GB, free: 22.39 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.242e-05/2.754, allocations: 65.81 kB / 0.6603 GB, free: 22.36 MB / 378.8 MB Notification: Performance of pre-optimization done (n=280): time 6.803e-06/2.754, allocations: 0.9375 kB / 0.6603 GB, free: 22.36 MB / 378.8 MB Notification: Performance of matching and sorting (n=339): time 0.226/2.98, allocations: 37.92 MB / 0.6974 GB, free: 17.86 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001531/2.98, allocations: 398.9 kB / 0.6977 GB, free: 17.41 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01704/2.997, allocations: 6.177 MB / 0.7038 GB, free: 16.91 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009616/2.998, allocations: 81.61 kB / 0.7038 GB, free: 16.88 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004952/3.003, allocations: 4.874 MB / 0.7086 GB, free: 14.61 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002219/3.005, allocations: 1.248 MB / 0.7098 GB, free: 13.87 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001387/3.007, allocations: 168.4 kB / 0.71 GB, free: 13.8 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0007909/3.008, allocations: 0.6646 MB / 0.7106 GB, free: 13.34 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009499/3.017, allocations: 3.717 MB / 0.7143 GB, free: 11.03 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01245/3.03, allocations: 8.326 MB / 0.7224 GB, free: 1.098 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02017/3.05, allocations: 5.865 MB / 0.7281 GB, free: 13.65 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001973/3.05, allocations: 49.69 kB / 0.7282 GB, free: 13.6 MB / 394.8 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.06031/3.11, allocations: 15.75 MB / 0.7435 GB, free: 1.508 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001624/3.111, allocations: 77.91 kB / 0.7436 GB, free: 1.434 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000348/3.111, allocations: 163.9 kB / 0.7438 GB, free: 1.273 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03302/3.144, allocations: 5.614 MB / 0.7493 GB, free: 13.72 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0122/3.156, allocations: 1.795 MB / 0.751 GB, free: 12.16 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07532/3.232, allocations: 28.17 MB / 0.7785 GB, free: 2.586 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01207/3.244, allocations: 0.5201 MB / 0.779 GB, free: 2.066 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002428/3.246, allocations: 480 kB / 0.7795 GB, free: 1.598 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (944): * Single equations (assignments): 938 * 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 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003886/3.25, allocations: 0.7395 MB / 0.7802 GB, free: 0.8594 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002453/3.253, allocations: 0.6556 MB / 0.7809 GB, free: 200 kB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04752/3.3, allocations: 10.88 MB / 0.7915 GB, free: 5.246 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.486e-05/3.3, allocations: 36 kB / 0.7915 GB, free: 5.211 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-05/3.3, allocations: 20 kB / 0.7915 GB, free: 5.191 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-05/3.301, allocations: 19.88 kB / 0.7916 GB, free: 5.172 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3826/3.683, allocations: 23.89 MB / 0.8149 GB, free: 111.3 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.813e-05/3.683, allocations: 5.844 kB / 0.8149 GB, free: 111.3 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00389/3.687, allocations: 427.5 kB / 0.8153 GB, free: 111.3 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02796/3.715, allocations: 5.084 MB / 0.8203 GB, free: 111.3 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009493/3.716, allocations: 65.78 kB / 0.8203 GB, free: 111.3 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05952/3.776, allocations: 26.72 MB / 0.8464 GB, free: 107.3 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.464e-05/3.776, allocations: 17.55 kB / 0.8464 GB, free: 107.3 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05046/3.826, allocations: 16.75 MB / 0.8628 GB, free: 100.5 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005337/3.832, allocations: 1.268 MB / 0.864 GB, free: 100.1 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002727/3.834, allocations: 66.83 kB / 0.8641 GB, free: 100.1 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008368/3.843, allocations: 256.2 kB / 0.8643 GB, free: 100 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001616/3.845, allocations: 241.1 kB / 0.8646 GB, free: 99.97 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005758/3.845, allocations: 93.89 kB / 0.8647 GB, free: 99.95 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.01281/3.858, allocations: 4.452 MB / 0.869 GB, free: 98.46 MB / 442.8 MB Notification: Performance of sort global known variables: time 9.62e-07/3.858, allocations: 0 / 0.869 GB, free: 98.46 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01365/3.872, allocations: 1.966 MB / 0.8709 GB, free: 98.27 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.05182/3.924, allocations: 18.5 MB / 0.889 GB, free: 88.65 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.02461/3.948, allocations: 9.692 MB / 0.8985 GB, free: 80.27 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/3.948, allocations: 0 / 0.8985 GB, free: 80.27 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01265/3.961, allocations: 4.342 MB / 0.9027 GB, free: 76.44 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008664/3.97, allocations: 0.9776 MB / 0.9037 GB, free: 75.65 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06442/4.034, allocations: 19.08 MB / 0.9223 GB, free: 59.21 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01379/4.048, allocations: 5.712 MB / 0.9279 GB, free: 55.07 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008647/4.057, allocations: 3.794 MB / 0.9316 GB, free: 51.53 MB / 442.8 MB Notification: Performance of SimCode: time 1.523e-06/4.057, allocations: 3 kB / 0.9316 GB, free: 51.53 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.54/10.6, allocations: 241.5 MB / 1.167 GB, free: 99.91 MB / 442.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat