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.715/1.715, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.26e-05/4.287e-05, allocations: 0 / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2625, allocations: 38.77 MB / 263.8 MB, free: 9.734 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1487/0.4112, allocations: 84.9 MB / 348.7 MB, free: 4.703 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000321/0.4116, allocations: 83.95 kB / 348.8 MB, free: 4.621 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.149/1.561, allocations: 160 MB / 0.4969 GB, free: 36.38 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.561, allocations: 1.219 kB / 0.4969 GB, free: 36.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007259/1.562, allocations: 156.2 kB / 0.497 GB, free: 36.38 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.03148/1.593, allocations: 7.891 MB / 0.5047 GB, free: 34.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/1.593, allocations: 10.34 kB / 0.5047 GB, free: 34.61 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0055/1.599, allocations: 1.204 MB / 0.5059 GB, free: 34.51 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1156/1.714, allocations: 16.49 MB / 0.522 GB, free: 33.97 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05129/1.766, allocations: 13.47 MB / 0.5352 GB, free: 32.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007404/1.766, allocations: 0.5307 MB / 0.5357 GB, free: 32.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003787/1.77, allocations: 0.7222 MB / 0.5364 GB, free: 32.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04999/1.82, allocations: 16.26 MB / 0.5523 GB, free: 29.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006461/1.821, allocations: 109 kB / 0.5524 GB, free: 29.14 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003212/1.824, allocations: 335.6 kB / 0.5527 GB, free: 29.14 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003406/1.828, allocations: 1.479 MB / 0.5541 GB, free: 29.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0402/1.868, allocations: 12.72 MB / 0.5665 GB, free: 26.42 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4855/2.353, allocations: 73.31 MB / 0.6381 GB, free: 24.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0338/2.387, allocations: 7.451 MB / 0.6454 GB, free: 23.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01114/2.398, allocations: 3.964 MB / 0.6493 GB, free: 23.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03799/2.436, allocations: 11.57 MB / 0.6606 GB, free: 22.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.377e-05/2.437, allocations: 71.12 kB / 0.6606 GB, free: 22.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=280): time 9.428e-06/2.437, allocations: 0 / 0.6606 GB, free: 22.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.2259/2.663, allocations: 37.94 MB / 0.6977 GB, free: 17.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/2.663, allocations: 395.9 kB / 0.6981 GB, free: 17.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01487/2.678, allocations: 6.18 MB / 0.7041 GB, free: 16.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009344/2.679, allocations: 83.45 kB / 0.7042 GB, free: 16.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004657/2.683, allocations: 4.871 MB / 0.7089 GB, free: 14.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00205/2.685, allocations: 1.252 MB / 0.7102 GB, free: 13.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001027/2.686, allocations: 162.4 kB / 0.7103 GB, free: 13.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005052/2.687, allocations: 0.6595 MB / 0.711 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008609/2.696, allocations: 3.721 MB / 0.7146 GB, free: 10.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01154/2.707, allocations: 8.367 MB / 0.7228 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02106/2.728, allocations: 5.956 MB / 0.7286 GB, free: 13.64 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001778/2.729, allocations: 48 kB / 0.7286 GB, free: 13.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.06105/2.79, allocations: 16.2 MB / 0.7445 GB, free: 1.102 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002411/2.79, allocations: 77 kB / 0.7445 GB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004923/2.79, allocations: 164 kB / 0.7447 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04167/2.832, allocations: 5.767 MB / 0.7503 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01193/2.844, allocations: 1.795 MB / 0.7521 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07569/2.92, allocations: 28.14 MB / 0.7796 GB, free: 1.953 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01142/2.931, allocations: 0.5149 MB / 0.7801 GB, free: 1.438 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002224/2.934, allocations: 476 kB / 0.7805 GB, free: 0.9727 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * 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 (944): * Single equations (assignments): 938 * 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,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003995/2.938, allocations: 0.7388 MB / 0.7812 GB, free: 236 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00368/2.941, allocations: 0.6519 MB / 0.7819 GB, free: 15.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0696/3.011, allocations: 10.89 MB / 0.7925 GB, free: 4.613 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001108/3.011, allocations: 34.81 kB / 0.7925 GB, free: 4.582 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.676e-05/3.011, allocations: 24 kB / 0.7926 GB, free: 4.559 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.115e-05/3.011, allocations: 15.94 kB / 0.7926 GB, free: 4.543 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3685/3.38, allocations: 23.91 MB / 0.8159 GB, free: 111.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.253e-05/3.38, allocations: 7.812 kB / 0.8159 GB, free: 111.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003772/3.384, allocations: 425.6 kB / 0.8163 GB, free: 111.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02782/3.412, allocations: 5.085 MB / 0.8213 GB, free: 111.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008493/3.413, allocations: 66.03 kB / 0.8214 GB, free: 111.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05812/3.471, allocations: 26.72 MB / 0.8475 GB, free: 107 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/3.471, allocations: 10 kB / 0.8475 GB, free: 107 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04883/3.52, allocations: 16.75 MB / 0.8638 GB, free: 100.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005105/3.525, allocations: 1.274 MB / 0.8651 GB, free: 99.82 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002305/3.527, allocations: 62.44 kB / 0.8651 GB, free: 99.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006704/3.534, allocations: 250.8 kB / 0.8654 GB, free: 99.75 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001523/3.536, allocations: 247.7 kB / 0.8656 GB, free: 99.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005124/3.536, allocations: 92.73 kB / 0.8657 GB, free: 99.69 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01246/3.549, allocations: 4.452 MB / 0.87 GB, free: 98.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.72e-07/3.549, allocations: 2.969 kB / 0.87 GB, free: 98.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01229/3.561, allocations: 1.97 MB / 0.872 GB, free: 98 MB / 442.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.05004/3.611, allocations: 18.48 MB / 0.89 GB, free: 88.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02464/3.636, allocations: 9.986 MB / 0.8998 GB, free: 79.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-05/3.636, allocations: 6.953 kB / 0.8998 GB, free: 79.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0125/3.648, allocations: 4.419 MB / 0.9041 GB, free: 75.56 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008438/3.657, allocations: 0.9809 MB / 0.905 GB, free: 74.76 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06076/3.718, allocations: 19.1 MB / 0.9237 GB, free: 58.31 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01305/3.731, allocations: 5.715 MB / 0.9293 GB, free: 54.17 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008675/3.739, allocations: 3.798 MB / 0.933 GB, free: 50.63 MB / 442.7 MB Notification: Performance of SimCode: time 1.373e-06/3.74, allocations: 2.219 kB / 0.933 GB, free: 50.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.656/10.4, allocations: 243 MB / 1.17 GB, free: 98.1 MB / 442.7 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