Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.737/1.737, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.06e-05/2.054e-05, allocations: 0 / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.255, allocations: 38.77 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.151/0.406, allocations: 84.24 MB / 342.6 MB, free: 9.559 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003272/0.4064, allocations: 83.95 kB / 342.6 MB, free: 9.477 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.872/1.278, allocations: 156.8 MB / 499.5 MB, free: 7.871 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.278, allocations: 0 / 499.5 MB, free: 7.871 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007766/1.279, allocations: 156 kB / 499.6 MB, free: 7.719 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.5192/1.798, allocations: 7.891 MB / 0.4956 GB, free: 37.51 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/1.799, allocations: 9.906 kB / 0.4956 GB, free: 37.51 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1154/1.914, allocations: 16.49 MB / 0.5117 GB, free: 36.98 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0441/1.958, allocations: 13.45 MB / 0.5249 GB, free: 36.36 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004415/1.959, allocations: 235 kB / 0.5251 GB, free: 36.36 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003367/1.962, allocations: 449.7 kB / 0.5255 GB, free: 36.34 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02287/1.985, allocations: 9.464 MB / 0.5348 GB, free: 36.3 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03646/2.021, allocations: 14.26 MB / 0.5487 GB, free: 32.74 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000556/2.022, allocations: 112.4 kB / 0.5488 GB, free: 32.73 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002416/2.024, allocations: 43.31 kB / 0.5488 GB, free: 32.73 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003274/2.028, allocations: 1.484 MB / 0.5503 GB, free: 32.71 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1129/2.141, allocations: 71.22 MB / 0.6198 GB, free: 8.309 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01112/2.152, allocations: 5.31 MB / 0.625 GB, free: 3.297 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008153/2.16, allocations: 3.894 MB / 0.6288 GB, free: 15.76 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001611/2.162, allocations: 0.8324 MB / 0.6296 GB, free: 14.87 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.671e-05/2.162, allocations: 67 kB / 0.6297 GB, free: 14.8 MB / 394.8 MB Notification: Performance of pre-optimization done (n=287): time 6.171e-06/2.162, allocations: 2.625 kB / 0.6297 GB, free: 14.8 MB / 394.8 MB Notification: Performance of matching and sorting (n=347): time 0.4286/2.59, allocations: 40.38 MB / 0.6691 GB, free: 77.95 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/2.591, allocations: 398.6 kB / 0.6695 GB, free: 77.5 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01359/2.604, allocations: 5.459 MB / 0.6749 GB, free: 77.03 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009323/2.605, allocations: 29.17 kB / 0.6749 GB, free: 77 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004537/2.61, allocations: 4.949 MB / 0.6797 GB, free: 74.54 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00202/2.612, allocations: 1.234 MB / 0.6809 GB, free: 73.79 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001097/2.613, allocations: 0 / 0.6809 GB, free: 73.79 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0005914/2.614, allocations: 0.6664 MB / 0.6816 GB, free: 73.45 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007919/2.621, allocations: 3.631 MB / 0.6851 GB, free: 73.43 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01137/2.633, allocations: 8.376 MB / 0.6933 GB, free: 67.3 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01148/2.644, allocations: 5.407 MB / 0.6986 GB, free: 67.24 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002135/2.645, allocations: 53.17 kB / 0.6986 GB, free: 67.24 MB / 394.8 MB Notification: Performance of matching and sorting (n=1112) (initialization): time 0.05075/2.695, allocations: 15.31 MB / 0.7136 GB, free: 66.46 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001419/2.696, allocations: 79.03 kB / 0.7137 GB, free: 66.46 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002332/2.696, allocations: 170.9 kB / 0.7138 GB, free: 66.46 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02835/2.724, allocations: 5.366 MB / 0.7191 GB, free: 65.53 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01146/2.736, allocations: 1.853 MB / 0.7209 GB, free: 65.31 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05432/2.79, allocations: 25.96 MB / 0.7462 GB, free: 48.06 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.011/2.801, allocations: 365.4 kB / 0.7466 GB, free: 47.8 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002156/2.803, allocations: 0.4919 MB / 0.7471 GB, free: 47.31 MB / 394.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: B1.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 761 * 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 (976): * Single equations (assignments): 970 * 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,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002227/2.806, allocations: 0.5293 MB / 0.7476 GB, free: 46.79 MB / 394.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03768/2.843, allocations: 10.53 MB / 0.7579 GB, free: 38.48 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002339/2.846, allocations: 0.6248 MB / 0.7585 GB, free: 37.85 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03748/2.883, allocations: 10.59 MB / 0.7688 GB, free: 29.77 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.757e-05/2.883, allocations: 36 kB / 0.7688 GB, free: 29.73 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.322e-05/2.883, allocations: 20 kB / 0.7689 GB, free: 29.71 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-05/2.883, allocations: 18.77 kB / 0.7689 GB, free: 29.71 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3462/3.23, allocations: 22.81 MB / 0.7911 GB, free: 70.95 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.6e-05/3.23, allocations: 6.969 kB / 0.7912 GB, free: 70.95 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003877/3.234, allocations: 441.7 kB / 0.7916 GB, free: 70.95 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02691/3.261, allocations: 5.015 MB / 0.7965 GB, free: 70.91 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008823/3.262, allocations: 12.62 kB / 0.7965 GB, free: 70.91 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0518/3.313, allocations: 24.69 MB / 0.8206 GB, free: 67.16 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-05/3.313, allocations: 10.62 kB / 0.8206 GB, free: 67.16 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04612/3.36, allocations: 16.52 MB / 0.8367 GB, free: 63.28 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004736/3.364, allocations: 1.231 MB / 0.8379 GB, free: 62.93 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002362/3.367, allocations: 15.09 kB / 0.8379 GB, free: 62.93 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006389/3.373, allocations: 208.7 kB / 0.8381 GB, free: 62.93 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001499/3.375, allocations: 237.9 kB / 0.8384 GB, free: 62.89 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004251/3.375, allocations: 93.34 kB / 0.8385 GB, free: 62.87 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.009812/3.385, allocations: 3.815 MB / 0.8422 GB, free: 61.52 MB / 394.8 MB Notification: Performance of sort global known variables: time 1.503e-06/3.385, allocations: 0 / 0.8422 GB, free: 61.52 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.01274/3.398, allocations: 1.731 MB / 0.8439 GB, free: 61.52 MB / 394.8 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 (222): * Single equations (assignments): 216 * 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.04763/3.445, allocations: 18.28 MB / 0.8617 GB, free: 53.32 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.02335/3.469, allocations: 9.603 MB / 0.8711 GB, free: 48.34 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/3.469, allocations: 3.25 kB / 0.8711 GB, free: 48.34 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01186/3.481, allocations: 4.335 MB / 0.8753 GB, free: 44.53 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008095/3.489, allocations: 0.851 MB / 0.8762 GB, free: 43.85 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05831/3.547, allocations: 18.74 MB / 0.8945 GB, free: 27.76 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01162/3.559, allocations: 5.718 MB / 0.9001 GB, free: 23.62 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00786/3.567, allocations: 3.735 MB / 0.9037 GB, free: 20.14 MB / 394.8 MB Notification: Performance of SimCode: time 1.623e-06/3.567, allocations: 3.75 kB / 0.9037 GB, free: 20.14 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.432/9.998, allocations: 239.6 MB / 1.138 GB, free: 80.88 MB / 426.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat