Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.786/1.786, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 1.975e-05/1.973e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.256, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1505/0.4065, allocations: 85.77 MB / 344.1 MB, free: 8.016 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003254/0.4069, allocations: 79.95 kB / 344.2 MB, free: 7.938 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8505/1.257, allocations: 161.8 MB / 0.4942 GB, free: 1.391 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.257, allocations: 0 / 0.4942 GB, free: 1.391 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0008766/1.258, allocations: 164 kB / 0.4943 GB, free: 1.23 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: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.2946/1.553, allocations: 8.186 MB / 0.5023 GB, free: 37.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/1.553, allocations: 10.66 kB / 0.5023 GB, free: 37.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1167/1.67, allocations: 16.57 MB / 0.5185 GB, free: 36.47 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04609/1.716, allocations: 13.74 MB / 0.5319 GB, free: 35.33 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005032/1.716, allocations: 240.2 kB / 0.5321 GB, free: 35.33 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003671/1.72, allocations: 471.4 kB / 0.5326 GB, free: 35.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02479/1.745, allocations: 9.874 MB / 0.5422 GB, free: 35.28 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03835/1.783, allocations: 14.77 MB / 0.5567 GB, free: 31.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007165/1.784, allocations: 115.4 kB / 0.5568 GB, free: 31.69 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003058/1.787, allocations: 40.06 kB / 0.5568 GB, free: 31.69 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003486/1.791, allocations: 1.525 MB / 0.5583 GB, free: 31.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1218/1.913, allocations: 72.58 MB / 0.6292 GB, free: 2.961 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2858/2.198, allocations: 5.862 MB / 0.6349 GB, free: 66.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007363/2.206, allocations: 3.821 MB / 0.6386 GB, free: 66.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00172/2.208, allocations: 1.381 MB / 0.64 GB, free: 65.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.534e-05/2.208, allocations: 70.97 kB / 0.64 GB, free: 65.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=299): time 6.713e-06/2.208, allocations: 0 / 0.64 GB, free: 65.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=371): time 0.15/2.358, allocations: 35.78 MB / 0.675 GB, free: 60.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001489/2.358, allocations: 402.9 kB / 0.6754 GB, free: 60.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01467/2.373, allocations: 5.649 MB / 0.6809 GB, free: 59.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000987/2.374, allocations: 25.7 kB / 0.6809 GB, free: 59.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004849/2.378, allocations: 5.161 MB / 0.6859 GB, free: 57.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002138/2.381, allocations: 1.318 MB / 0.6872 GB, free: 56.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/2.382, allocations: 0 / 0.6872 GB, free: 56.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0006438/2.382, allocations: 0.6843 MB / 0.6879 GB, free: 55.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007945/2.39, allocations: 3.354 MB / 0.6912 GB, free: 55.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01167/2.402, allocations: 8.287 MB / 0.6993 GB, free: 49.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/2.414, allocations: 5.194 MB / 0.7043 GB, free: 47.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002032/2.414, allocations: 48.75 kB / 0.7044 GB, free: 47.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.04331/2.457, allocations: 13.48 MB / 0.7176 GB, free: 43.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001254/2.457, allocations: 76 kB / 0.7176 GB, free: 43.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002303/2.458, allocations: 176 kB / 0.7178 GB, free: 43.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01835/2.476, allocations: 3.69 MB / 0.7214 GB, free: 40.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01193/2.488, allocations: 1.915 MB / 0.7233 GB, free: 39.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04847/2.537, allocations: 22.22 MB / 0.745 GB, free: 19.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01109/2.548, allocations: 339.8 kB / 0.7453 GB, free: 19.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002189/2.55, allocations: 0.5099 MB / 0.7458 GB, free: 18.81 MB / 378.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.002847/2.553, allocations: 0.5509 MB / 0.7463 GB, free: 18.27 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02899/2.582, allocations: 8.511 MB / 0.7546 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002465/2.584, allocations: 0.6479 MB / 0.7553 GB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02951/2.614, allocations: 8.498 MB / 0.7636 GB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.528e-05/2.614, allocations: 36 kB / 0.7636 GB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.734e-05/2.614, allocations: 20 kB / 0.7636 GB, free: 3.867 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.728e-05/2.614, allocations: 17.77 kB / 0.7636 GB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3943/3.008, allocations: 18.22 MB / 0.7814 GB, free: 68.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.148e-05/3.009, allocations: 10.94 kB / 0.7814 GB, free: 68.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005361/3.014, allocations: 454.9 kB / 0.7819 GB, free: 68.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02477/3.039, allocations: 3.41 MB / 0.7852 GB, free: 68.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001113/3.04, allocations: 17.62 kB / 0.7852 GB, free: 68.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05301/3.093, allocations: 21.53 MB / 0.8062 GB, free: 65.06 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.524e-05/3.093, allocations: 15.81 kB / 0.8063 GB, free: 65.06 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03674/3.13, allocations: 14.59 MB / 0.8205 GB, free: 62.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004944/3.135, allocations: 1.191 MB / 0.8217 GB, free: 62.13 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002783/3.138, allocations: 15.16 kB / 0.8217 GB, free: 62.13 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006762/3.144, allocations: 157.4 kB / 0.8218 GB, free: 62.13 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00167/3.146, allocations: 276.2 kB / 0.8221 GB, free: 62.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006816/3.147, allocations: 99.78 kB / 0.8222 GB, free: 62.06 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.01037/3.157, allocations: 3.933 MB / 0.826 GB, free: 60.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.52e-07/3.157, allocations: 3.438 kB / 0.826 GB, free: 60.68 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01301/3.17, allocations: 1.753 MB / 0.8278 GB, free: 60.67 MB / 394.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.03801/3.208, allocations: 16.63 MB / 0.844 GB, free: 52.29 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02125/3.23, allocations: 8.959 MB / 0.8527 GB, free: 49.22 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.399e-05/3.23, allocations: 1.875 kB / 0.8527 GB, free: 49.22 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01024/3.24, allocations: 3.94 MB / 0.8566 GB, free: 47.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008837/3.249, allocations: 0.8783 MB / 0.8575 GB, free: 47.21 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05951/3.308, allocations: 18.44 MB / 0.8755 GB, free: 31.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01573/3.324, allocations: 5.934 MB / 0.8813 GB, free: 27.43 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01254/3.337, allocations: 3.971 MB / 0.8851 GB, free: 23.73 MB / 394.7 MB Notification: Performance of SimCode: time 1.694e-06/3.337, allocations: 0 / 0.8851 GB, free: 23.73 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.721/10.06, allocations: 247.3 MB / 1.127 GB, free: 75.59 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat