Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.733/1.733, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.513e-05/2.523e-05, allocations: 0 / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2714, allocations: 38.76 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1746/0.446, allocations: 98.08 MB / 361.9 MB, free: 7.625 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003469/0.4464, allocations: 83.95 kB / 362 MB, free: 7.543 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.233/1.679, allocations: 182.4 MB / 0.5317 GB, free: 32.95 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.424e-06/1.679, allocations: 0 / 0.5317 GB, free: 32.95 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0008608/1.68, allocations: 188.1 kB / 0.5318 GB, free: 32.94 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.03934/1.72, allocations: 9.155 MB / 0.5408 GB, free: 29.62 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/1.72, allocations: 10.19 kB / 0.5408 GB, free: 29.62 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007032/1.727, allocations: 1.395 MB / 0.5421 GB, free: 29.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1205/1.847, allocations: 16.64 MB / 0.5584 GB, free: 28.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05101/1.898, allocations: 14.61 MB / 0.5727 GB, free: 27.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008251/1.899, allocations: 0.6236 MB / 0.5733 GB, free: 27.53 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004567/1.904, allocations: 0.856 MB / 0.5741 GB, free: 27.51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06255/1.966, allocations: 19.24 MB / 0.5929 GB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007689/1.967, allocations: 115.2 kB / 0.593 GB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004365/1.972, allocations: 390.8 kB / 0.5934 GB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003687/1.975, allocations: 1.591 MB / 0.5949 GB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05824/2.034, allocations: 15.68 MB / 0.6103 GB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4509/2.485, allocations: 80.53 MB / 0.6889 GB, free: 39.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03742/2.522, allocations: 7.842 MB / 0.6966 GB, free: 38.85 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008966/2.531, allocations: 3.998 MB / 0.7005 GB, free: 38.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03666/2.568, allocations: 14.1 MB / 0.7142 GB, free: 35.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.406e-05/2.568, allocations: 78.55 kB / 0.7143 GB, free: 35.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 7.344e-06/2.568, allocations: 0 / 0.7143 GB, free: 35.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=408): time 0.2426/2.811, allocations: 38.06 MB / 0.7515 GB, free: 28.22 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/2.811, allocations: 404 kB / 0.7519 GB, free: 27.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0182/2.829, allocations: 6.584 MB / 0.7583 GB, free: 25.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001133/2.83, allocations: 86.89 kB / 0.7584 GB, free: 25.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005627/2.836, allocations: 5.49 MB / 0.7637 GB, free: 21.31 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002524/2.838, allocations: 1.48 MB / 0.7652 GB, free: 20.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001775/2.84, allocations: 186 kB / 0.7654 GB, free: 20.06 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001033/2.841, allocations: 0.7053 MB / 0.766 GB, free: 19.58 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01077/2.852, allocations: 4.095 MB / 0.77 GB, free: 17.79 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0162/2.868, allocations: 9.109 MB / 0.7789 GB, free: 6.945 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01611/2.885, allocations: 6.071 MB / 0.7849 GB, free: 2.039 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002042/2.885, allocations: 52 kB / 0.7849 GB, free: 1.988 MB / 410.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.3654/3.25, allocations: 17.07 MB / 0.8016 GB, free: 80.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001446/3.25, allocations: 76.16 kB / 0.8017 GB, free: 80.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00029/3.251, allocations: 174.6 kB / 0.8018 GB, free: 80.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0266/3.277, allocations: 4.706 MB / 0.8064 GB, free: 80.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01256/3.29, allocations: 1.96 MB / 0.8083 GB, free: 80.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07557/3.366, allocations: 25.12 MB / 0.8329 GB, free: 78.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01466/3.38, allocations: 0.5374 MB / 0.8334 GB, free: 78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002237/3.383, allocations: 0.5164 MB / 0.8339 GB, free: 77.93 MB / 410.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.002685/3.385, allocations: 0.8047 MB / 0.8347 GB, free: 77.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002138/3.387, allocations: 0.707 MB / 0.8354 GB, free: 77.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04026/3.428, allocations: 10.86 MB / 0.846 GB, free: 73.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.799e-05/3.428, allocations: 52.34 kB / 0.846 GB, free: 73.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-05/3.428, allocations: 21.16 kB / 0.846 GB, free: 73.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001146/3.428, allocations: 22.94 kB / 0.8461 GB, free: 73.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08029/3.508, allocations: 23.71 MB / 0.8692 GB, free: 64.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.672e-05/3.509, allocations: 6.531 kB / 0.8692 GB, free: 64.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006697/3.515, allocations: 0.5213 MB / 0.8697 GB, free: 64.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03363/3.549, allocations: 4.141 MB / 0.8738 GB, free: 61.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001206/3.55, allocations: 76 kB / 0.8739 GB, free: 61.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06353/3.614, allocations: 21.84 MB / 0.8952 GB, free: 43.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-05/3.614, allocations: 8 kB / 0.8952 GB, free: 43.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05168/3.666, allocations: 17.5 MB / 0.9123 GB, free: 27.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005834/3.671, allocations: 1.381 MB / 0.9136 GB, free: 26.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00281/3.674, allocations: 75.91 kB / 0.9137 GB, free: 26.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007351/3.682, allocations: 245.8 kB / 0.9139 GB, free: 26.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001914/3.684, allocations: 280.5 kB / 0.9142 GB, free: 26.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007317/3.684, allocations: 118.7 kB / 0.9143 GB, free: 26.13 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01356/3.698, allocations: 4.735 MB / 0.9189 GB, free: 21.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.002e-06/3.698, allocations: 0 / 0.9189 GB, free: 21.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01518/3.713, allocations: 2.19 MB / 0.9211 GB, free: 19.78 MB / 410.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.3667/4.08, allocations: 19.69 MB / 0.9403 GB, free: 75.87 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02437/4.104, allocations: 10.45 MB / 0.9505 GB, free: 75.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.537e-05/4.104, allocations: 3.938 kB / 0.9505 GB, free: 75.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01064/4.115, allocations: 4.352 MB / 0.9548 GB, free: 75.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01016/4.125, allocations: 1.045 MB / 0.9558 GB, free: 75.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1145/4.24, allocations: 21.89 MB / 0.9772 GB, free: 71.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02135/4.261, allocations: 6.575 MB / 0.9836 GB, free: 70.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01482/4.276, allocations: 4.332 MB / 0.9878 GB, free: 67.43 MB / 410.7 MB Notification: Performance of SimCode: time 1.883e-06/4.276, allocations: 0 / 0.9878 GB, free: 67.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.375/10.65, allocations: 209.1 MB / 1.192 GB, free: 11.89 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat