Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.973/1.973, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.834e-05/3.843e-05, allocations: 7.984 kB / 255.5 MB, free: 3.07 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09679/0.09686, allocations: 44.5 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4824/0.5793, allocations: 90.64 MB / 390.6 MB, free: 12.47 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003834/0.5798, allocations: 87.7 kB / 390.7 MB, free: 12.47 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9465/1.526, allocations: 160.1 MB / 0.5378 GB, free: 58.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.526, allocations: 0 / 0.5378 GB, free: 58.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007238/1.527, allocations: 160.6 kB / 0.538 GB, free: 58.66 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: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.0334/1.561, allocations: 7.887 MB / 0.5457 GB, free: 55.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/1.561, allocations: 10.47 kB / 0.5457 GB, free: 55.71 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006213/1.567, allocations: 1.198 MB / 0.5469 GB, free: 55.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1216/1.688, allocations: 16.49 MB / 0.563 GB, free: 55.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04655/1.735, allocations: 13.47 MB / 0.5761 GB, free: 53.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006936/1.736, allocations: 0.5232 MB / 0.5766 GB, free: 53.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0041/1.74, allocations: 0.7198 MB / 0.5774 GB, free: 53.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0525/1.793, allocations: 16.17 MB / 0.5931 GB, free: 50.31 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007226/1.793, allocations: 110 kB / 0.5933 GB, free: 50.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003639/1.797, allocations: 335 kB / 0.5936 GB, free: 50.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003546/1.801, allocations: 1.479 MB / 0.595 GB, free: 50.28 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04148/1.842, allocations: 12.48 MB / 0.6072 GB, free: 48.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4222/2.264, allocations: 73.36 MB / 0.6788 GB, free: 63.76 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03513/2.299, allocations: 7.412 MB / 0.6861 GB, free: 63.08 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00771/2.307, allocations: 3.971 MB / 0.69 GB, free: 63.04 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02803/2.335, allocations: 11.59 MB / 0.7013 GB, free: 61.29 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.312e-05/2.335, allocations: 61.5 kB / 0.7013 GB, free: 61.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.644e-06/2.335, allocations: 0 / 0.7013 GB, free: 61.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.2264/2.562, allocations: 37.91 MB / 0.7383 GB, free: 56.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00015/2.562, allocations: 398.6 kB / 0.7387 GB, free: 56.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0165/2.579, allocations: 6.175 MB / 0.7448 GB, free: 55.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009385/2.58, allocations: 76.48 kB / 0.7448 GB, free: 55.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005001/2.585, allocations: 4.873 MB / 0.7496 GB, free: 53.78 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002397/2.587, allocations: 1.247 MB / 0.7508 GB, free: 53.05 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001486/2.589, allocations: 170.3 kB / 0.751 GB, free: 53.05 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006171/2.589, allocations: 0.6591 MB / 0.7516 GB, free: 52.71 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008967/2.598, allocations: 3.723 MB / 0.7553 GB, free: 52.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01217/2.611, allocations: 8.32 MB / 0.7634 GB, free: 44.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01228/2.623, allocations: 5.481 MB / 0.7687 GB, free: 43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001695/2.623, allocations: 46.91 kB / 0.7688 GB, free: 43 MB / 426.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.05441/2.677, allocations: 15.76 MB / 0.7842 GB, free: 34.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001169/2.678, allocations: 75.42 kB / 0.7842 GB, free: 34.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002159/2.678, allocations: 164 kB / 0.7844 GB, free: 34.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02968/2.708, allocations: 5.501 MB / 0.7898 GB, free: 30.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01126/2.719, allocations: 1.79 MB / 0.7915 GB, free: 28.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0626/2.782, allocations: 28.01 MB / 0.8189 GB, free: 4.367 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01158/2.793, allocations: 0.5154 MB / 0.8194 GB, free: 3.941 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002215/2.795, allocations: 481.2 kB / 0.8198 GB, free: 3.48 MB / 426.7 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.00353/2.799, allocations: 0.7446 MB / 0.8205 GB, free: 2.742 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002206/2.801, allocations: 0.6517 MB / 0.8212 GB, free: 2.082 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05181/2.853, allocations: 11.26 MB / 0.8322 GB, free: 10.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.349e-05/2.853, allocations: 36 kB / 0.8322 GB, free: 10.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.405e-05/2.853, allocations: 23.84 kB / 0.8322 GB, free: 10.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-05/2.853, allocations: 14.67 kB / 0.8323 GB, free: 10.62 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4099/3.263, allocations: 23.96 MB / 0.8557 GB, free: 70.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-05/3.263, allocations: 5.594 kB / 0.8557 GB, free: 70.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003913/3.267, allocations: 423.3 kB / 0.8561 GB, free: 70.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02858/3.296, allocations: 5.091 MB / 0.861 GB, free: 70.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009457/3.297, allocations: 61.73 kB / 0.8611 GB, free: 70.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06034/3.357, allocations: 26.72 MB / 0.8872 GB, free: 66.45 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.139e-05/3.357, allocations: 12.84 kB / 0.8872 GB, free: 66.45 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05036/3.408, allocations: 16.75 MB / 0.9036 GB, free: 59.65 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005547/3.413, allocations: 1.263 MB / 0.9048 GB, free: 59.29 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002722/3.416, allocations: 61.75 kB / 0.9049 GB, free: 59.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006995/3.423, allocations: 256.8 kB / 0.9051 GB, free: 59.21 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001505/3.425, allocations: 240.8 kB / 0.9053 GB, free: 59.17 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005914/3.425, allocations: 91.88 kB / 0.9054 GB, free: 59.15 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01224/3.438, allocations: 4.453 MB / 0.9098 GB, free: 57.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.31e-07/3.438, allocations: 2.297 kB / 0.9098 GB, free: 57.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01302/3.451, allocations: 1.965 MB / 0.9117 GB, free: 57.46 MB / 442.7 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.05245/3.503, allocations: 18.49 MB / 0.9297 GB, free: 49.07 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0298/3.533, allocations: 9.703 MB / 0.9392 GB, free: 45.59 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.622e-05/3.533, allocations: 5.469 kB / 0.9392 GB, free: 45.58 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01291/3.546, allocations: 4.339 MB / 0.9435 GB, free: 41.76 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008871/3.555, allocations: 0.9782 MB / 0.9444 GB, free: 40.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06335/3.618, allocations: 19.08 MB / 0.963 GB, free: 24.52 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01248/3.631, allocations: 5.714 MB / 0.9686 GB, free: 20.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008214/3.639, allocations: 3.794 MB / 0.9723 GB, free: 16.85 MB / 442.7 MB Notification: Performance of SimCode: time 1.583e-06/3.639, allocations: 0 / 0.9723 GB, free: 16.85 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.714/10.35, allocations: 241.6 MB / 1.208 GB, free: 92.19 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat