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.972/1.972, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.289e-05/3.329e-05, allocations: 4 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09489/0.09494, allocations: 44.52 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.459/0.554, allocations: 90.64 MB / 390.6 MB, free: 12.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.5543, allocations: 85.72 kB / 390.7 MB, free: 12.72 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9627/1.517, allocations: 160 MB / 0.5378 GB, free: 58.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.517, allocations: 0 / 0.5378 GB, free: 58.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007942/1.518, allocations: 159.8 kB / 0.5379 GB, free: 58.54 MB / 410.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.0345/1.552, allocations: 7.883 MB / 0.5456 GB, free: 55.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/1.552, allocations: 10.75 kB / 0.5456 GB, free: 55.6 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006109/1.559, allocations: 1.194 MB / 0.5468 GB, free: 55.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1196/1.678, allocations: 16.49 MB / 0.5629 GB, free: 54.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04476/1.723, allocations: 13.48 MB / 0.576 GB, free: 53.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006782/1.724, allocations: 0.5219 MB / 0.5766 GB, free: 53.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003715/1.727, allocations: 0.7256 MB / 0.5773 GB, free: 53.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05118/1.779, allocations: 16.25 MB / 0.5931 GB, free: 50.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007658/1.78, allocations: 115.7 kB / 0.5932 GB, free: 50.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003563/1.783, allocations: 335.5 kB / 0.5936 GB, free: 50.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003497/1.787, allocations: 1.479 MB / 0.595 GB, free: 50.13 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04082/1.827, allocations: 12.72 MB / 0.6074 GB, free: 47.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5378/2.365, allocations: 73.34 MB / 0.6791 GB, free: 63.15 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03502/2.4, allocations: 7.447 MB / 0.6863 GB, free: 62.46 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007638/2.408, allocations: 3.97 MB / 0.6902 GB, free: 62.42 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02914/2.437, allocations: 11.59 MB / 0.7015 GB, free: 60.67 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.16e-05/2.437, allocations: 61.53 kB / 0.7016 GB, free: 60.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.183e-06/2.437, allocations: 3.75 kB / 0.7016 GB, free: 60.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.2226/2.66, allocations: 37.92 MB / 0.7386 GB, free: 56.31 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001662/2.66, allocations: 399.2 kB / 0.739 GB, free: 55.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01679/2.677, allocations: 6.174 MB / 0.745 GB, free: 55.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009346/2.678, allocations: 75.38 kB / 0.7451 GB, free: 55.33 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005087/2.683, allocations: 4.877 MB / 0.7499 GB, free: 53.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00222/2.685, allocations: 1.247 MB / 0.7511 GB, free: 52.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001353/2.687, allocations: 162.8 kB / 0.7512 GB, free: 52.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007104/2.688, allocations: 0.6643 MB / 0.7519 GB, free: 52.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009365/2.697, allocations: 3.725 MB / 0.7555 GB, free: 51.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01294/2.71, allocations: 8.371 MB / 0.7637 GB, free: 44.03 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01272/2.723, allocations: 5.481 MB / 0.769 GB, free: 42.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001906/2.723, allocations: 46.47 kB / 0.7691 GB, free: 42.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.05587/2.779, allocations: 16.2 MB / 0.7849 GB, free: 32.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001238/2.779, allocations: 75.94 kB / 0.785 GB, free: 32.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000237/2.779, allocations: 160 kB / 0.7851 GB, free: 32.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0292/2.809, allocations: 5.499 MB / 0.7905 GB, free: 28.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01111/2.82, allocations: 1.792 MB / 0.7923 GB, free: 27.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06151/2.881, allocations: 27.99 MB / 0.8196 GB, free: 2.914 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01152/2.893, allocations: 0.5133 MB / 0.8201 GB, free: 2.488 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002122/2.895, allocations: 479.4 kB / 0.8205 GB, free: 2.027 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.003755/2.899, allocations: 0.7523 MB / 0.8213 GB, free: 1.277 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002002/2.901, allocations: 0.6548 MB / 0.8219 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04667/2.948, allocations: 10.95 MB / 0.8326 GB, free: 8.512 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.471e-05/2.948, allocations: 32 kB / 0.8327 GB, free: 8.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.642e-05/2.948, allocations: 24.52 kB / 0.8327 GB, free: 8.457 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.925e-05/2.948, allocations: 15.56 kB / 0.8327 GB, free: 8.457 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3956/3.343, allocations: 23.92 MB / 0.8561 GB, free: 70.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.877e-05/3.344, allocations: 3.438 kB / 0.8561 GB, free: 70.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003873/3.347, allocations: 430.2 kB / 0.8565 GB, free: 70.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02854/3.376, allocations: 5.083 MB / 0.8614 GB, free: 70.83 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001/3.377, allocations: 59.03 kB / 0.8615 GB, free: 70.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0631/3.44, allocations: 26.73 MB / 0.8876 GB, free: 65.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.777e-06/3.44, allocations: 6.938 kB / 0.8876 GB, free: 65.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05175/3.492, allocations: 16.76 MB / 0.904 GB, free: 59.14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005476/3.498, allocations: 1.264 MB / 0.9052 GB, free: 58.78 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002596/3.5, allocations: 57.69 kB / 0.9053 GB, free: 58.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007199/3.507, allocations: 252.6 kB / 0.9055 GB, free: 58.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00162/3.509, allocations: 253.3 kB / 0.9057 GB, free: 58.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005195/3.51, allocations: 85.34 kB / 0.9058 GB, free: 58.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01255/3.522, allocations: 4.461 MB / 0.9102 GB, free: 57.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.61e-07/3.522, allocations: 0 / 0.9102 GB, free: 57.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01263/3.535, allocations: 1.961 MB / 0.9121 GB, free: 56.96 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.05179/3.587, allocations: 18.48 MB / 0.9301 GB, free: 48.58 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02649/3.613, allocations: 9.994 MB / 0.9399 GB, free: 44.67 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.631e-05/3.613, allocations: 4 kB / 0.9399 GB, free: 44.67 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.013/3.626, allocations: 4.418 MB / 0.9442 GB, free: 40.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009072/3.636, allocations: 0.9705 MB / 0.9452 GB, free: 39.98 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06473/3.7, allocations: 19.1 MB / 0.9638 GB, free: 23.52 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01361/3.714, allocations: 5.712 MB / 0.9694 GB, free: 19.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008859/3.723, allocations: 3.802 MB / 0.9731 GB, free: 15.84 MB / 442.7 MB Notification: Performance of SimCode: time 1.543e-06/3.723, allocations: 0 / 0.9731 GB, free: 15.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.851/10.57, allocations: 243.1 MB / 1.21 GB, free: 89.99 MB / 474.7 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