Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.057/2.057, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.549e-05/3.554e-05, allocations: 0 / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1332, allocations: 50.41 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5006/0.6338, allocations: 98.34 MB / 441 MB, free: 12.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003063/0.6342, allocations: 80.83 kB / 441.1 MB, free: 12.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.074/1.709, allocations: 163.2 MB / 0.5901 GB, free: 91.73 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.709, allocations: 0 / 0.5901 GB, free: 91.73 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000741/1.709, allocations: 156.2 kB / 0.5903 GB, free: 91.73 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03243/1.742, allocations: 7.87 MB / 0.5979 GB, free: 87.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/1.742, allocations: 10.25 kB / 0.598 GB, free: 87.84 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005847/1.748, allocations: 1.203 MB / 0.5991 GB, free: 87.03 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1197/1.868, allocations: 16.49 MB / 0.6152 GB, free: 74.75 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04381/1.911, allocations: 12.54 MB / 0.6275 GB, free: 62.33 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000654/1.912, allocations: 0.5209 MB / 0.628 GB, free: 61.84 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003788/1.916, allocations: 0.7236 MB / 0.6287 GB, free: 61.15 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05098/1.967, allocations: 16.19 MB / 0.6445 GB, free: 43.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007498/1.968, allocations: 111 kB / 0.6446 GB, free: 43.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003473/1.971, allocations: 336.2 kB / 0.6449 GB, free: 43.35 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003466/1.975, allocations: 1.489 MB / 0.6464 GB, free: 41.86 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0413/2.016, allocations: 12.47 MB / 0.6586 GB, free: 29.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4542/2.47, allocations: 73.27 MB / 0.7301 GB, free: 37.77 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03388/2.504, allocations: 7.408 MB / 0.7373 GB, free: 37.08 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007628/2.512, allocations: 3.964 MB / 0.7412 GB, free: 37.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.029/2.541, allocations: 11.52 MB / 0.7525 GB, free: 35.06 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.341e-05/2.541, allocations: 63.5 kB / 0.7525 GB, free: 35.02 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 7.644e-06/2.541, allocations: 3.469 kB / 0.7525 GB, free: 35.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.2239/2.765, allocations: 37.51 MB / 0.7892 GB, free: 26.38 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/2.765, allocations: 403.2 kB / 0.7895 GB, free: 25.93 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0168/2.782, allocations: 6.111 MB / 0.7955 GB, free: 23.89 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009313/2.783, allocations: 77.69 kB / 0.7956 GB, free: 23.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00506/2.788, allocations: 4.884 MB / 0.8004 GB, free: 19.92 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002159/2.79, allocations: 1.249 MB / 0.8016 GB, free: 18.99 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001447/2.792, allocations: 163.6 kB / 0.8017 GB, free: 18.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009053/2.793, allocations: 0.66 MB / 0.8024 GB, free: 18.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009254/2.802, allocations: 3.723 MB / 0.806 GB, free: 16.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01229/2.814, allocations: 8.349 MB / 0.8142 GB, free: 6.48 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01221/2.827, allocations: 5.489 MB / 0.8195 GB, free: 1.863 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001482/2.827, allocations: 48 kB / 0.8196 GB, free: 1.816 MB / 442.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.06079/2.888, allocations: 15.9 MB / 0.8351 GB, free: 5.422 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001509/2.888, allocations: 76 kB / 0.8352 GB, free: 5.348 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002919/2.888, allocations: 160 kB / 0.8353 GB, free: 5.191 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03122/2.919, allocations: 5.486 MB / 0.8407 GB, free: 1.371 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01224/2.932, allocations: 1.803 MB / 0.8424 GB, free: 15.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4189/3.351, allocations: 28.04 MB / 0.8698 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01144/3.362, allocations: 0.5169 MB / 0.8703 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00234/3.365, allocations: 479 kB / 0.8708 GB, free: 102.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * Number of states: 0 () * Number of discrete variables: 66 (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 (947): * Single equations (assignments): 941 * 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%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003316/3.368, allocations: 0.7466 MB / 0.8715 GB, free: 102 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002122/3.37, allocations: 0.6498 MB / 0.8721 GB, free: 102 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04246/3.413, allocations: 10.88 MB / 0.8828 GB, free: 101.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.946e-05/3.413, allocations: 38.05 kB / 0.8828 GB, free: 101.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-05/3.413, allocations: 18.34 kB / 0.8828 GB, free: 101.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.572e-05/3.413, allocations: 19.8 kB / 0.8829 GB, free: 101.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0768/3.49, allocations: 23.87 MB / 0.9062 GB, free: 93.54 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.153e-05/3.49, allocations: 6.406 kB / 0.9062 GB, free: 93.54 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004038/3.494, allocations: 442.5 kB / 0.9066 GB, free: 93.53 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02826/3.522, allocations: 5.082 MB / 0.9116 GB, free: 92.64 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008629/3.523, allocations: 60.38 kB / 0.9116 GB, free: 92.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05891/3.582, allocations: 26.75 MB / 0.9377 GB, free: 80.18 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/3.582, allocations: 8.531 kB / 0.9377 GB, free: 80.18 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04819/3.63, allocations: 16.76 MB / 0.9541 GB, free: 70.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002555/3.633, allocations: 0.669 MB / 0.9548 GB, free: 69.84 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002688/3.636, allocations: 63.31 kB / 0.9548 GB, free: 69.78 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006961/3.643, allocations: 252.9 kB / 0.9551 GB, free: 69.62 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001412/3.644, allocations: 243.2 kB / 0.9553 GB, free: 69.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005337/3.645, allocations: 95.59 kB / 0.9554 GB, free: 69.39 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01192/3.657, allocations: 4.399 MB / 0.9597 GB, free: 65.54 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.393e-06/3.657, allocations: 0 / 0.9597 GB, free: 65.54 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0133/3.67, allocations: 1.968 MB / 0.9616 GB, free: 63.59 MB / 474.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.05033/3.72, allocations: 18.49 MB / 0.9797 GB, free: 47.07 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02547/3.746, allocations: 9.694 MB / 0.9891 GB, free: 37.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.426e-05/3.746, allocations: 4 kB / 0.9891 GB, free: 37.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01297/3.759, allocations: 4.358 MB / 0.9934 GB, free: 33.21 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009979/3.769, allocations: 0.9722 MB / 0.9943 GB, free: 32.27 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0839/3.853, allocations: 18.99 MB / 1.013 GB, free: 13.22 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01913/3.872, allocations: 5.691 MB / 1.018 GB, free: 7.547 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008955/3.881, allocations: 3.806 MB / 1.022 GB, free: 3.742 MB / 474.7 MB Notification: Performance of SimCode: time 1.493e-06/3.881, allocations: 4 kB / 1.022 GB, free: 3.738 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.628/10.51, allocations: 241.2 MB / 1.258 GB, free: 118.2 MB / 0.4948 GB