Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.398e-05/3.389e-05, allocations: 0 / 292.7 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1101, allocations: 50.41 MB / 343.2 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5317/0.6419, allocations: 98.3 MB / 441.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003622/0.6423, allocations: 89.45 kB / 441.5 MB, free: 11.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.05/1.693, allocations: 163.2 MB / 0.5906 GB, free: 91.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.693, allocations: 0 / 0.5906 GB, free: 91.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008873/1.694, allocations: 156.3 kB / 0.5907 GB, free: 91.64 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.0403/1.734, allocations: 7.869 MB / 0.5984 GB, free: 87.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.86e-05/1.734, allocations: 11.09 kB / 0.5984 GB, free: 87.62 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006673/1.741, allocations: 1.2 MB / 0.5996 GB, free: 86.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1172/1.858, allocations: 16.48 MB / 0.6157 GB, free: 74.28 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04169/1.9, allocations: 12.55 MB / 0.628 GB, free: 61.85 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006462/1.9, allocations: 0.5211 MB / 0.6285 GB, free: 61.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003811/1.904, allocations: 0.726 MB / 0.6292 GB, free: 60.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05/1.954, allocations: 16.19 MB / 0.645 GB, free: 43.27 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006665/1.955, allocations: 111 kB / 0.6451 GB, free: 43.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003173/1.958, allocations: 335.1 kB / 0.6454 GB, free: 42.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003311/1.962, allocations: 1.479 MB / 0.6469 GB, free: 41.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04021/2.002, allocations: 12.49 MB / 0.659 GB, free: 28.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4502/2.452, allocations: 73.27 MB / 0.7306 GB, free: 37.68 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03311/2.485, allocations: 7.403 MB / 0.7378 GB, free: 36.99 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007413/2.493, allocations: 3.96 MB / 0.7417 GB, free: 36.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02855/2.521, allocations: 11.52 MB / 0.7529 GB, free: 34.97 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.776e-05/2.522, allocations: 63.06 kB / 0.753 GB, free: 34.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 6.693e-06/2.522, allocations: 0 / 0.753 GB, free: 34.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.2198/2.741, allocations: 37.52 MB / 0.7896 GB, free: 26.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/2.742, allocations: 405 kB / 0.79 GB, free: 25.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01592/2.758, allocations: 6.11 MB / 0.796 GB, free: 23.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009077/2.758, allocations: 76.7 kB / 0.7961 GB, free: 23.77 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005072/2.764, allocations: 5.233 MB / 0.8012 GB, free: 19.74 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001943/2.766, allocations: 1.248 MB / 0.8024 GB, free: 18.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001118/2.767, allocations: 163.6 kB / 0.8026 GB, free: 18.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005273/2.767, allocations: 0.6565 MB / 0.8032 GB, free: 18.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008724/2.776, allocations: 3.722 MB / 0.8068 GB, free: 16.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01417/2.79, allocations: 8.35 MB / 0.815 GB, free: 6.016 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01516/2.805, allocations: 5.485 MB / 0.8203 GB, free: 1.398 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001462/2.806, allocations: 48 kB / 0.8204 GB, free: 1.352 MB / 442.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.06363/2.869, allocations: 16.41 MB / 0.8364 GB, free: 5.086 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001423/2.869, allocations: 76 kB / 0.8365 GB, free: 5.012 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002674/2.87, allocations: 160 kB / 0.8366 GB, free: 4.855 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03046/2.9, allocations: 5.485 MB / 0.842 GB, free: 1.035 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0121/2.912, allocations: 1.802 MB / 0.8438 GB, free: 15.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4492/3.362, allocations: 28.03 MB / 0.8711 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0115/3.373, allocations: 0.5251 MB / 0.8716 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00239/3.376, allocations: 475.9 kB / 0.8721 GB, free: 100.8 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.00349/3.379, allocations: 0.7426 MB / 0.8728 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002202/3.381, allocations: 0.6492 MB / 0.8735 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04668/3.428, allocations: 10.88 MB / 0.8841 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.038e-05/3.428, allocations: 35.42 kB / 0.8841 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.608e-05/3.428, allocations: 18.69 kB / 0.8841 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.64e-05/3.428, allocations: 21.64 kB / 0.8842 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07616/3.504, allocations: 23.87 MB / 0.9075 GB, free: 92 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-05/3.505, allocations: 6.875 kB / 0.9075 GB, free: 92 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006311/3.511, allocations: 449.3 kB / 0.9079 GB, free: 91.99 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02818/3.539, allocations: 5.078 MB / 0.9129 GB, free: 91.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008535/3.54, allocations: 57.62 kB / 0.9129 GB, free: 91.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05792/3.598, allocations: 26.75 MB / 0.939 GB, free: 78.64 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.147e-05/3.598, allocations: 10.78 kB / 0.9391 GB, free: 78.64 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04683/3.645, allocations: 16.76 MB / 0.9554 GB, free: 69.37 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002316/3.647, allocations: 0.6699 MB / 0.9561 GB, free: 68.71 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002334/3.65, allocations: 67.72 kB / 0.9561 GB, free: 68.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006658/3.656, allocations: 247 kB / 0.9564 GB, free: 68.49 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001319/3.658, allocations: 244.2 kB / 0.9566 GB, free: 68.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004217/3.658, allocations: 91.53 kB / 0.9567 GB, free: 68.26 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01086/3.669, allocations: 4.401 MB / 0.961 GB, free: 64.41 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.62e-07/3.669, allocations: 0 / 0.961 GB, free: 64.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01254/3.682, allocations: 1.964 MB / 0.9629 GB, free: 62.45 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.04821/3.73, allocations: 18.49 MB / 0.981 GB, free: 46.12 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02438/3.754, allocations: 9.696 MB / 0.9904 GB, free: 36.64 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.46e-05/3.754, allocations: 3.469 kB / 0.9904 GB, free: 36.64 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01245/3.767, allocations: 4.356 MB / 0.9947 GB, free: 32.26 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008576/3.776, allocations: 0.9754 MB / 0.9956 GB, free: 31.32 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0597/3.835, allocations: 18.12 MB / 1.013 GB, free: 13.14 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01322/3.849, allocations: 5.689 MB / 1.019 GB, free: 7.473 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01329/3.862, allocations: 2.636 MB / 1.021 GB, free: 4.918 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00861/3.871, allocations: 3.756 MB / 1.025 GB, free: 1.16 MB / 474.7 MB Notification: Performance of SimCode: time 1.613e-06/3.871, allocations: 0 / 1.025 GB, free: 1.16 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7194/4.59, allocations: 158 MB / 1.179 GB, free: 22.11 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002603/4.59, allocations: 180.4 kB / 1.18 GB, free: 21.89 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.068/13.66, allocations: 4 kB / 1.18 GB, free: 21.89 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat