Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.813e-05/2.81e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3246, allocations: 44.5 MB / 294.2 MB, free: 14.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1733/0.4979, allocations: 89.98 MB / 384.2 MB, free: 7.875 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/0.4983, allocations: 79.95 kB / 384.3 MB, free: 7.797 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9019/1.4, allocations: 156.9 MB / 0.5284 GB, free: 7.973 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.946e-06/1.4, allocations: 0 / 0.5284 GB, free: 7.973 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007209/1.401, allocations: 156 kB / 0.5286 GB, free: 7.82 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: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.03154/1.433, allocations: 7.885 MB / 0.5363 GB, free: 15.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.384e-05/1.433, allocations: 8.031 kB / 0.5363 GB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1232/1.556, allocations: 16.49 MB / 0.5524 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05004/1.606, allocations: 13.47 MB / 0.5656 GB, free: 1.758 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005662/1.607, allocations: 228 kB / 0.5658 GB, free: 1.535 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003832/1.61, allocations: 447.7 kB / 0.5662 GB, free: 1.098 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.5947/2.205, allocations: 9.464 MB / 0.5754 GB, free: 59.3 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.038/2.243, allocations: 14.26 MB / 0.5894 GB, free: 55.75 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007277/2.244, allocations: 113.4 kB / 0.5895 GB, free: 55.75 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003111/2.247, allocations: 40.84 kB / 0.5895 GB, free: 55.75 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003411/2.251, allocations: 1.483 MB / 0.591 GB, free: 55.73 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.111/2.362, allocations: 71.23 MB / 0.6605 GB, free: 10.94 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009717/2.372, allocations: 5.311 MB / 0.6657 GB, free: 8.305 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007084/2.379, allocations: 3.868 MB / 0.6695 GB, free: 6.609 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001448/2.38, allocations: 0.8287 MB / 0.6703 GB, free: 5.918 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.971e-05/2.38, allocations: 68.11 kB / 0.6704 GB, free: 5.855 MB / 394.8 MB Notification: Performance of pre-optimization done (n=287): time 6.782e-06/2.38, allocations: 0 / 0.6704 GB, free: 5.855 MB / 394.8 MB Notification: Performance of matching and sorting (n=347): time 0.1743/2.555, allocations: 40.34 MB / 0.7098 GB, free: 10.07 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000243/2.555, allocations: 400 kB / 0.7101 GB, free: 9.602 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01689/2.572, allocations: 5.453 MB / 0.7155 GB, free: 4.945 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001029/2.573, allocations: 27.86 kB / 0.7155 GB, free: 4.914 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006114/2.579, allocations: 4.95 MB / 0.7203 GB, free: 420 kB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.3024/2.882, allocations: 1.23 MB / 0.7215 GB, free: 85.45 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001368/2.883, allocations: 0.5 kB / 0.7215 GB, free: 85.45 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0009081/2.884, allocations: 0.6722 MB / 0.7222 GB, free: 85.12 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009874/2.894, allocations: 3.629 MB / 0.7257 GB, free: 85.09 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01359/2.907, allocations: 8.384 MB / 0.7339 GB, free: 78.97 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0119/2.919, allocations: 5.397 MB / 0.7392 GB, free: 78.91 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002374/2.92, allocations: 44.88 kB / 0.7392 GB, free: 78.91 MB / 426.8 MB Notification: Performance of matching and sorting (n=1112) (initialization): time 0.0534/2.973, allocations: 15.32 MB / 0.7542 GB, free: 78.57 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/2.973, allocations: 77.19 kB / 0.7543 GB, free: 78.57 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002658/2.974, allocations: 164.5 kB / 0.7544 GB, free: 78.57 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02865/3.002, allocations: 5.369 MB / 0.7597 GB, free: 78.52 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01166/3.014, allocations: 1.858 MB / 0.7615 GB, free: 78.36 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05683/3.071, allocations: 25.96 MB / 0.7868 GB, free: 70.18 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01118/3.082, allocations: 373.9 kB / 0.7872 GB, free: 70.18 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002391/3.085, allocations: 493.2 kB / 0.7877 GB, free: 70.11 MB / 426.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.003974/3.089, allocations: 0.5471 MB / 0.7882 GB, free: 69.77 MB / 426.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03905/3.128, allocations: 10.52 MB / 0.7985 GB, free: 66.84 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002293/3.13, allocations: 0.6176 MB / 0.7991 GB, free: 66.57 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03971/3.17, allocations: 10.59 MB / 0.8094 GB, free: 61.72 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.713e-05/3.17, allocations: 32.94 kB / 0.8094 GB, free: 61.69 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.821e-05/3.17, allocations: 20 kB / 0.8095 GB, free: 61.67 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.043e-05/3.17, allocations: 19.89 kB / 0.8095 GB, free: 61.67 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07044/3.24, allocations: 22.81 MB / 0.8317 GB, free: 42.91 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.169e-05/3.241, allocations: 4 kB / 0.8317 GB, free: 42.91 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003872/3.244, allocations: 446.5 kB / 0.8322 GB, free: 42.55 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0274/3.272, allocations: 5.013 MB / 0.8371 GB, free: 39.18 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008898/3.273, allocations: 16 kB / 0.8371 GB, free: 39.17 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05287/3.326, allocations: 24.7 MB / 0.8612 GB, free: 16.6 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.617e-05/3.326, allocations: 15.92 kB / 0.8612 GB, free: 16.59 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3885/3.714, allocations: 16.51 MB / 0.8773 GB, free: 71.84 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004865/3.719, allocations: 1.231 MB / 0.8785 GB, free: 71.75 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002601/3.722, allocations: 9.75 kB / 0.8785 GB, free: 71.75 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006388/3.728, allocations: 206 kB / 0.8787 GB, free: 71.75 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001574/3.73, allocations: 248.4 kB / 0.879 GB, free: 71.74 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005241/3.731, allocations: 87.56 kB / 0.8791 GB, free: 71.74 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.01125/3.742, allocations: 3.811 MB / 0.8828 GB, free: 71.53 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.222e-06/3.742, allocations: 0 / 0.8828 GB, free: 71.53 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01256/3.754, allocations: 1.734 MB / 0.8845 GB, free: 71.53 MB / 426.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.0483/3.803, allocations: 18.27 MB / 0.9023 GB, free: 67.93 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0234/3.826, allocations: 9.599 MB / 0.9117 GB, free: 67.46 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.391e-05/3.826, allocations: 0 / 0.9117 GB, free: 67.46 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01226/3.839, allocations: 4.341 MB / 0.9159 GB, free: 67.04 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007983/3.847, allocations: 0.8487 MB / 0.9168 GB, free: 67 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06238/3.909, allocations: 18.74 MB / 0.9351 GB, free: 62.22 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01369/3.923, allocations: 5.714 MB / 0.9406 GB, free: 60.45 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008493/3.931, allocations: 3.741 MB / 0.9443 GB, free: 57.37 MB / 426.8 MB Notification: Performance of SimCode: time 1.873e-06/3.931, allocations: 0 / 0.9443 GB, free: 57.37 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.101/10.03, allocations: 239.6 MB / 1.178 GB, free: 5.852 MB / 458.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat