Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.268/2.268, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.998e-05/3.005e-05, allocations: 4 kB / 292.2 MB, free: 8.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1055, allocations: 50.42 MB / 342.6 MB, free: 6.281 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4675/0.573, allocations: 99.93 MB / 442.6 MB, free: 10.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000336/0.5734, allocations: 91.94 kB / 442.7 MB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9781/1.552, allocations: 168.1 MB / 0.5964 GB, free: 89.78 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.552, allocations: 0 / 0.5964 GB, free: 89.78 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007846/1.552, allocations: 163.9 kB / 0.5966 GB, free: 89.78 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.03395/1.586, allocations: 8.17 MB / 0.6046 GB, free: 84.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/1.586, allocations: 10.78 kB / 0.6046 GB, free: 84.61 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006127/1.593, allocations: 1.259 MB / 0.6058 GB, free: 83.77 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1176/1.71, allocations: 16.56 MB / 0.622 GB, free: 68.29 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04469/1.755, allocations: 12.81 MB / 0.6345 GB, free: 55.59 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006938/1.756, allocations: 0.556 MB / 0.635 GB, free: 55.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004104/1.76, allocations: 0.7567 MB / 0.6358 GB, free: 54.35 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05225/1.812, allocations: 16.74 MB / 0.6521 GB, free: 36.4 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007487/1.813, allocations: 115 kB / 0.6522 GB, free: 36.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00343/1.816, allocations: 350.7 kB / 0.6526 GB, free: 35.98 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003394/1.82, allocations: 1.531 MB / 0.654 GB, free: 34.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04196/1.862, allocations: 12.88 MB / 0.6666 GB, free: 21.56 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4807/2.343, allocations: 75.17 MB / 0.74 GB, free: 31.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05059/2.393, allocations: 7.769 MB / 0.7476 GB, free: 30.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008072/2.401, allocations: 4.089 MB / 0.7516 GB, free: 30.52 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03076/2.432, allocations: 11.87 MB / 0.7632 GB, free: 27.69 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.848e-05/2.432, allocations: 68.53 kB / 0.7633 GB, free: 27.63 MB / 442.7 MB Notification: Performance of pre-optimization done (n=294): time 8.566e-06/2.432, allocations: 0 / 0.7633 GB, free: 27.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=361): time 0.2665/2.699, allocations: 40.42 MB / 0.8028 GB, free: 17.96 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/2.699, allocations: 398.7 kB / 0.8031 GB, free: 17.52 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01576/2.715, allocations: 6.241 MB / 0.8092 GB, free: 13.97 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009595/2.716, allocations: 82.8 kB / 0.8093 GB, free: 13.88 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004689/2.721, allocations: 5.051 MB / 0.8142 GB, free: 9.266 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002098/2.723, allocations: 1.321 MB / 0.8155 GB, free: 8.094 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001276/2.724, allocations: 172 kB / 0.8157 GB, free: 7.926 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006269/2.725, allocations: 0.6708 MB / 0.8163 GB, free: 7.348 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009155/2.734, allocations: 3.893 MB / 0.8201 GB, free: 3.816 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0144/2.748, allocations: 8.623 MB / 0.8286 GB, free: 9.422 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01454/2.763, allocations: 5.697 MB / 0.8341 GB, free: 4.629 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001676/2.763, allocations: 48 kB / 0.8342 GB, free: 4.582 MB / 458.7 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.06292/2.826, allocations: 16.48 MB / 0.8503 GB, free: 7.426 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00015/2.826, allocations: 76 kB / 0.8503 GB, free: 7.352 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003067/2.827, allocations: 168 kB / 0.8505 GB, free: 7.188 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03288/2.859, allocations: 5.738 MB / 0.8561 GB, free: 2.137 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01273/2.872, allocations: 1.848 MB / 0.8579 GB, free: 292 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4364/3.309, allocations: 29.17 MB / 0.8864 GB, free: 99.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01168/3.32, allocations: 0.5374 MB / 0.8869 GB, free: 99.38 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002144/3.323, allocations: 493.5 kB / 0.8874 GB, free: 99.38 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * Number of states: 0 () * Number of discrete variables: 72 (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],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 976 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002603/3.325, allocations: 0.7607 MB / 0.8881 GB, free: 99.16 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001964/3.327, allocations: 0.6778 MB / 0.8888 GB, free: 99.16 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04778/3.375, allocations: 11.51 MB / 0.9 GB, free: 95.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-05/3.375, allocations: 36.78 kB / 0.9001 GB, free: 95.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.119e-05/3.375, allocations: 21.78 kB / 0.9001 GB, free: 95.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.267e-05/3.375, allocations: 19.59 kB / 0.9001 GB, free: 95.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07752/3.453, allocations: 25.05 MB / 0.9246 GB, free: 85.54 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.769e-05/3.453, allocations: 7.719 kB / 0.9246 GB, free: 85.54 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004248/3.457, allocations: 470.1 kB / 0.925 GB, free: 85.52 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02967/3.487, allocations: 5.386 MB / 0.9303 GB, free: 84.58 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009354/3.488, allocations: 64.41 kB / 0.9304 GB, free: 84.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06003/3.548, allocations: 28.04 MB / 0.9577 GB, free: 66.79 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.174e-05/3.548, allocations: 16.5 kB / 0.9578 GB, free: 66.78 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05045/3.598, allocations: 17.64 MB / 0.975 GB, free: 51.99 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005144/3.604, allocations: 1.311 MB / 0.9763 GB, free: 50.72 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002304/3.606, allocations: 65.41 kB / 0.9763 GB, free: 50.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007152/3.613, allocations: 266.2 kB / 0.9766 GB, free: 50.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001501/3.615, allocations: 257.4 kB / 0.9768 GB, free: 50.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004914/3.615, allocations: 97.41 kB / 0.9769 GB, free: 50.06 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01179/3.627, allocations: 4.488 MB / 0.9813 GB, free: 45.61 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.074e-06/3.627, allocations: 0 / 0.9813 GB, free: 45.61 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01308/3.64, allocations: 2.06 MB / 0.9833 GB, free: 43.56 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (233): * Single equations (assignments): 227 * 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%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.05244/3.693, allocations: 19.27 MB / 1.002 GB, free: 24.21 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02656/3.719, allocations: 10.11 MB / 1.012 GB, free: 14.31 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-05/3.719, allocations: 4 kB / 1.012 GB, free: 14.31 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01392/3.733, allocations: 4.622 MB / 1.017 GB, free: 9.66 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00898/3.742, allocations: 0.9982 MB / 1.017 GB, free: 8.711 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4232/4.166, allocations: 19.8 MB / 1.037 GB, free: 114 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01661/4.182, allocations: 5.902 MB / 1.043 GB, free: 113.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009401/4.192, allocations: 3.959 MB / 1.046 GB, free: 113.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.483e-06/4.192, allocations: 0 / 1.046 GB, free: 113.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.465/10.66, allocations: 250.7 MB / 1.291 GB, free: 84.37 MB / 490.7 MB