Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.303e-05/3.313e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09289/0.09296, allocations: 44.5 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4511/0.5441, allocations: 103.8 MB / 403.7 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/0.5445, allocations: 95.19 kB / 403.8 MB, free: 10.63 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.027/1.572, allocations: 182.4 MB / 0.5724 GB, free: 63.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.843e-06/1.572, allocations: 0 / 0.5724 GB, free: 63.67 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009354/1.573, allocations: 189.5 kB / 0.5726 GB, free: 63.66 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.03893/1.612, allocations: 9.153 MB / 0.5816 GB, free: 60.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/1.612, allocations: 10.47 kB / 0.5816 GB, free: 60.31 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007179/1.619, allocations: 1.395 MB / 0.5829 GB, free: 60.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1581/1.777, allocations: 16.65 MB / 0.5992 GB, free: 59.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06294/1.84, allocations: 14.6 MB / 0.6134 GB, free: 56.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001093/1.841, allocations: 0.626 MB / 0.6141 GB, free: 56.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005768/1.847, allocations: 0.8584 MB / 0.6149 GB, free: 56.33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06525/1.913, allocations: 19.25 MB / 0.6337 GB, free: 38.53 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008023/1.913, allocations: 105.3 kB / 0.6338 GB, free: 38.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004159/1.918, allocations: 396.9 kB / 0.6342 GB, free: 38.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003733/1.921, allocations: 1.6 MB / 0.6357 GB, free: 36.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05359/1.975, allocations: 15.36 MB / 0.6507 GB, free: 21.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4934/2.468, allocations: 80.54 MB / 0.7294 GB, free: 38.22 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04634/2.515, allocations: 7.829 MB / 0.737 GB, free: 37.52 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008931/2.524, allocations: 3.998 MB / 0.7409 GB, free: 37.47 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0369/2.561, allocations: 14.11 MB / 0.7547 GB, free: 33.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.068e-05/2.561, allocations: 68.5 kB / 0.7548 GB, free: 33.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=308): time 7.534e-06/2.561, allocations: 2.125 kB / 0.7548 GB, free: 33.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=408): time 0.2338/2.795, allocations: 38.05 MB / 0.7919 GB, free: 24.38 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002167/2.795, allocations: 407.7 kB / 0.7923 GB, free: 23.94 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01866/2.814, allocations: 6.569 MB / 0.7987 GB, free: 21.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001119/2.815, allocations: 90.48 kB / 0.7988 GB, free: 21.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005513/2.82, allocations: 5.487 MB / 0.8042 GB, free: 17.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002489/2.823, allocations: 1.487 MB / 0.8056 GB, free: 16.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001691/2.825, allocations: 186.2 kB / 0.8058 GB, free: 16.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008974/2.826, allocations: 0.7048 MB / 0.8065 GB, free: 15.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01033/2.836, allocations: 4.094 MB / 0.8105 GB, free: 13.72 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01438/2.85, allocations: 9.115 MB / 0.8194 GB, free: 2.879 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01725/2.868, allocations: 6.137 MB / 0.8254 GB, free: 14.11 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002047/2.868, allocations: 48 kB / 0.8254 GB, free: 14.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.0888/2.957, allocations: 16.73 MB / 0.8418 GB, free: 0.6172 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001694/2.957, allocations: 80 kB / 0.8419 GB, free: 0.5391 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003412/2.957, allocations: 172 kB / 0.842 GB, free: 380 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3726/3.33, allocations: 5.041 MB / 0.8469 GB, free: 95.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01361/3.344, allocations: 1.967 MB / 0.8489 GB, free: 95.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06437/3.408, allocations: 25.12 MB / 0.8734 GB, free: 94.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01209/3.42, allocations: 0.5355 MB / 0.8739 GB, free: 94.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002379/3.423, allocations: 0.5145 MB / 0.8744 GB, free: 94.32 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1061): * Single equations (assignments): 1056 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003344/3.426, allocations: 0.8045 MB / 0.8752 GB, free: 94.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0021/3.428, allocations: 0.7068 MB / 0.8759 GB, free: 94.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.041/3.469, allocations: 10.87 MB / 0.8865 GB, free: 92.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.807e-05/3.469, allocations: 41.34 kB / 0.8865 GB, free: 92.39 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-05/3.469, allocations: 23.98 kB / 0.8866 GB, free: 92.39 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.565e-05/3.47, allocations: 17.67 kB / 0.8866 GB, free: 92.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08328/3.553, allocations: 23.71 MB / 0.9097 GB, free: 83.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.603e-05/3.553, allocations: 9.531 kB / 0.9097 GB, free: 83.65 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004917/3.558, allocations: 0.519 MB / 0.9102 GB, free: 83.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02495/3.583, allocations: 4.15 MB / 0.9143 GB, free: 82.75 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0011/3.584, allocations: 76.31 kB / 0.9144 GB, free: 82.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05547/3.64, allocations: 21.83 MB / 0.9357 GB, free: 73.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/3.64, allocations: 14.47 kB / 0.9357 GB, free: 73.23 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04983/3.689, allocations: 17.5 MB / 0.9528 GB, free: 59.84 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005725/3.695, allocations: 1.369 MB / 0.9541 GB, free: 58.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002605/3.698, allocations: 75.69 kB / 0.9542 GB, free: 58.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007571/3.706, allocations: 246.6 kB / 0.9544 GB, free: 58.34 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001859/3.707, allocations: 291.8 kB / 0.9547 GB, free: 58.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006291/3.708, allocations: 112.5 kB / 0.9548 GB, free: 58.06 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01395/3.722, allocations: 4.725 MB / 0.9594 GB, free: 53.89 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.143e-06/3.722, allocations: 4 kB / 0.9594 GB, free: 53.89 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01455/3.737, allocations: 2.195 MB / 0.9616 GB, free: 51.71 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (284): * Single equations (assignments): 280 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05004/3.787, allocations: 19.44 MB / 0.9806 GB, free: 34.54 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02408/3.811, allocations: 10.44 MB / 0.9908 GB, free: 25.18 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.848e-05/3.811, allocations: 4 kB / 0.9908 GB, free: 25.17 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01095/3.822, allocations: 4.355 MB / 0.995 GB, free: 21.18 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009226/3.831, allocations: 1.046 MB / 0.996 GB, free: 20.33 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4123/4.244, allocations: 21.88 MB / 1.017 GB, free: 91.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01756/4.261, allocations: 6.567 MB / 1.024 GB, free: 90.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01114/4.272, allocations: 4.341 MB / 1.028 GB, free: 90.38 MB / 458.7 MB Notification: Performance of SimCode: time 2.174e-06/4.272, allocations: 0 / 1.028 GB, free: 90.38 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.473/10.75, allocations: 209.1 MB / 1.232 GB, free: 85.38 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat