Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.996/1.996, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.45e-05/3.478e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3019, allocations: 44.48 MB / 294.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.188/0.49, allocations: 91.5 MB / 385.7 MB, free: 6.453 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003902/0.4904, allocations: 83.95 kB / 385.8 MB, free: 6.371 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8736/1.364, allocations: 161.8 MB / 0.5348 GB, free: 1.922 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.645e-06/1.364, allocations: 0 / 0.5348 GB, free: 1.922 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007692/1.365, allocations: 164 kB / 0.5349 GB, free: 1.762 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.03631/1.401, allocations: 8.184 MB / 0.5429 GB, free: 9.496 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/1.401, allocations: 8.031 kB / 0.5429 GB, free: 9.488 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1436/1.545, allocations: 16.56 MB / 0.5591 GB, free: 8.883 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3409/1.886, allocations: 13.73 MB / 0.5725 GB, free: 56.01 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005723/1.886, allocations: 240.5 kB / 0.5728 GB, free: 56.01 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003787/1.89, allocations: 470.6 kB / 0.5732 GB, free: 56.01 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02468/1.915, allocations: 9.871 MB / 0.5828 GB, free: 55.97 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03811/1.953, allocations: 14.78 MB / 0.5973 GB, free: 52.4 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006947/1.954, allocations: 110.9 kB / 0.5974 GB, free: 52.4 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003192/1.957, allocations: 38.56 kB / 0.5974 GB, free: 52.4 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003556/1.961, allocations: 1.537 MB / 0.5989 GB, free: 52.39 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1145/2.075, allocations: 72.59 MB / 0.6698 GB, free: 5.793 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01009/2.085, allocations: 5.4 MB / 0.6751 GB, free: 3.145 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006959/2.093, allocations: 3.819 MB / 0.6788 GB, free: 1.484 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001767/2.094, allocations: 1.377 MB / 0.6802 GB, free: 216 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.185e-05/2.094, allocations: 65.84 kB / 0.6802 GB, free: 152 kB / 394.7 MB Notification: Performance of pre-optimization done (n=299): time 9.157e-06/2.094, allocations: 5.344 kB / 0.6802 GB, free: 152 kB / 394.7 MB Notification: Performance of matching and sorting (n=371): time 0.1697/2.264, allocations: 36.38 MB / 0.7158 GB, free: 6.246 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002576/2.264, allocations: 403.8 kB / 0.7161 GB, free: 5.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01583/2.28, allocations: 5.633 MB / 0.7216 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009509/2.281, allocations: 29.7 kB / 0.7217 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.308/2.589, allocations: 5.179 MB / 0.7267 GB, free: 82.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002215/2.592, allocations: 1.307 MB / 0.728 GB, free: 82.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001189/2.593, allocations: 0 / 0.728 GB, free: 82.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007944/2.594, allocations: 0.6887 MB / 0.7287 GB, free: 81.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008972/2.603, allocations: 3.352 MB / 0.7319 GB, free: 81.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01293/2.616, allocations: 8.298 MB / 0.74 GB, free: 75.39 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01143/2.627, allocations: 5.187 MB / 0.7451 GB, free: 75.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003089/2.628, allocations: 52.72 kB / 0.7452 GB, free: 75.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.04374/2.671, allocations: 13.49 MB / 0.7583 GB, free: 74.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001587/2.672, allocations: 78.59 kB / 0.7584 GB, free: 74.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002611/2.672, allocations: 174.6 kB / 0.7586 GB, free: 74.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01851/2.69, allocations: 3.689 MB / 0.7622 GB, free: 74.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01176/2.702, allocations: 1.911 MB / 0.764 GB, free: 74.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04845/2.751, allocations: 22.22 MB / 0.7857 GB, free: 68.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01133/2.762, allocations: 331.6 kB / 0.7861 GB, free: 68.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002487/2.765, allocations: 0.5055 MB / 0.7866 GB, free: 68.21 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 69 (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],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1030): * Single equations (assignments): 1024 * 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,64.1%) 98,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.003873/2.768, allocations: 0.5604 MB / 0.7871 GB, free: 67.76 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02943/2.798, allocations: 8.517 MB / 0.7954 GB, free: 64.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002427/2.8, allocations: 0.6529 MB / 0.7961 GB, free: 64.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02923/2.83, allocations: 8.498 MB / 0.8044 GB, free: 61.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.721e-05/2.83, allocations: 43.62 kB / 0.8044 GB, free: 61.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-05/2.83, allocations: 16.72 kB / 0.8044 GB, free: 61.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.494e-05/2.83, allocations: 20.53 kB / 0.8044 GB, free: 61.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05643/2.886, allocations: 18.13 MB / 0.8221 GB, free: 50.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.397e-05/2.887, allocations: 8 kB / 0.8221 GB, free: 50.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004011/2.891, allocations: 462.8 kB / 0.8226 GB, free: 50.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01863/2.909, allocations: 3.406 MB / 0.8259 GB, free: 47.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009674/2.91, allocations: 19.39 kB / 0.8259 GB, free: 47.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04639/2.957, allocations: 21.54 MB / 0.847 GB, free: 28.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.41e-05/2.957, allocations: 11.94 kB / 0.847 GB, free: 28.95 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03646/2.993, allocations: 14.58 MB / 0.8612 GB, free: 15.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005211/2.998, allocations: 1.191 MB / 0.8624 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002558/3.001, allocations: 16.06 kB / 0.8624 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006665/3.008, allocations: 157 kB / 0.8626 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001715/3.01, allocations: 272.4 kB / 0.8628 GB, free: 14.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005084/3.01, allocations: 105.3 kB / 0.8629 GB, free: 14.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01055/3.021, allocations: 3.928 MB / 0.8668 GB, free: 11.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.62e-07/3.021, allocations: 0 / 0.8668 GB, free: 11.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01343/3.034, allocations: 1.755 MB / 0.8685 GB, free: 9.266 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (248): * Single equations (assignments): 242 * 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,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.3631/3.397, allocations: 16.61 MB / 0.8847 GB, free: 72.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02058/3.418, allocations: 8.974 MB / 0.8934 GB, free: 72.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.501e-05/3.418, allocations: 3.094 kB / 0.8935 GB, free: 72.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01054/3.429, allocations: 3.932 MB / 0.8973 GB, free: 71.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008338/3.437, allocations: 0.8791 MB / 0.8982 GB, free: 71.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06171/3.499, allocations: 18.44 MB / 0.9162 GB, free: 68.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01439/3.513, allocations: 5.93 MB / 0.9219 GB, free: 67.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009404/3.523, allocations: 3.975 MB / 0.9258 GB, free: 66.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.853e-06/3.523, allocations: 0 / 0.9258 GB, free: 66.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.147/9.67, allocations: 247.4 MB / 1.167 GB, free: 13.78 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat