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.654/1.654, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.209e-05/3.224e-05, allocations: 4 kB / 225.1 MB, free: 2.605 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2545, allocations: 38.76 MB / 263.9 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1518/0.4063, allocations: 86.44 MB / 350.3 MB, free: 3.281 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003254/0.4067, allocations: 83.95 kB / 350.4 MB, free: 3.199 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.299/1.705, allocations: 165.2 MB / 0.5035 GB, free: 34.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.315e-06/1.706, allocations: 0 / 0.5035 GB, free: 34.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007761/1.706, allocations: 166.1 kB / 0.5037 GB, free: 34.48 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.03446/1.741, allocations: 8.193 MB / 0.5117 GB, free: 31.42 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/1.741, allocations: 11.28 kB / 0.5117 GB, free: 31.42 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006259/1.747, allocations: 1.255 MB / 0.5129 GB, free: 31.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1827/1.93, allocations: 16.57 MB / 0.5291 GB, free: 30.76 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04698/1.977, allocations: 13.75 MB / 0.5425 GB, free: 29.54 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007349/1.978, allocations: 0.5487 MB / 0.543 GB, free: 29.53 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004099/1.982, allocations: 0.7653 MB / 0.5438 GB, free: 29.51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05373/2.036, allocations: 16.73 MB / 0.5601 GB, free: 25.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007551/2.036, allocations: 112 kB / 0.5602 GB, free: 25.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003665/2.04, allocations: 350.8 kB / 0.5606 GB, free: 25.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0036/2.044, allocations: 1.527 MB / 0.5621 GB, free: 25.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04235/2.086, allocations: 12.88 MB / 0.5746 GB, free: 20.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4297/2.516, allocations: 74.76 MB / 0.6476 GB, free: 20.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0311/2.547, allocations: 7.002 MB / 0.6545 GB, free: 19.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007725/2.555, allocations: 3.928 MB / 0.6583 GB, free: 19.87 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02979/2.585, allocations: 11.93 MB / 0.67 GB, free: 17.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.346e-05/2.585, allocations: 68.5 kB / 0.67 GB, free: 17.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=293): time 6.993e-06/2.585, allocations: 0 / 0.67 GB, free: 17.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=366): time 0.2192/2.804, allocations: 35.31 MB / 0.7045 GB, free: 12.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001585/2.804, allocations: 399.1 kB / 0.7049 GB, free: 12.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01847/2.823, allocations: 6.357 MB / 0.7111 GB, free: 11.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001081/2.824, allocations: 85.48 kB / 0.7112 GB, free: 11.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005696/2.83, allocations: 5.073 MB / 0.7161 GB, free: 9.211 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002607/2.832, allocations: 1.341 MB / 0.7174 GB, free: 8.219 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001701/2.834, allocations: 170.8 kB / 0.7176 GB, free: 8.086 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000956/2.835, allocations: 0.6811 MB / 0.7183 GB, free: 7.609 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009636/2.845, allocations: 3.462 MB / 0.7216 GB, free: 6.383 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01406/2.859, allocations: 8.272 MB / 0.7297 GB, free: 14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01412/2.873, allocations: 5.297 MB / 0.7349 GB, free: 9.832 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002295/2.873, allocations: 48 kB / 0.7349 GB, free: 9.785 MB / 394.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.05189/2.925, allocations: 14 MB / 0.7486 GB, free: 14.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001695/2.925, allocations: 76.94 kB / 0.7487 GB, free: 14.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00038/2.926, allocations: 168 kB / 0.7488 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02085/2.947, allocations: 3.732 MB / 0.7525 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01301/2.96, allocations: 1.863 MB / 0.7543 GB, free: 10.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06703/3.027, allocations: 24.08 MB / 0.7778 GB, free: 5.918 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01205/3.039, allocations: 498.8 kB / 0.7783 GB, free: 5.496 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002547/3.042, allocations: 0.4919 MB / 0.7788 GB, free: 5.012 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 768 * 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 (1001): * Single equations (assignments): 995 * 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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.004124/3.046, allocations: 0.7698 MB / 0.7795 GB, free: 4.246 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002778/3.049, allocations: 0.6826 MB / 0.7802 GB, free: 3.555 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.333/3.382, allocations: 9.404 MB / 0.7894 GB, free: 96.56 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001136/3.382, allocations: 40.88 kB / 0.7894 GB, free: 96.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001205/3.382, allocations: 21.09 kB / 0.7894 GB, free: 96.56 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001005/3.382, allocations: 15.89 kB / 0.7895 GB, free: 96.56 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06565/3.448, allocations: 19.42 MB / 0.8084 GB, free: 95.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.636e-05/3.448, allocations: 9.719 kB / 0.8084 GB, free: 95.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004596/3.452, allocations: 449.2 kB / 0.8089 GB, free: 95.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01903/3.471, allocations: 3.485 MB / 0.8123 GB, free: 95.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009223/3.472, allocations: 74.36 kB / 0.8123 GB, free: 95.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0513/3.524, allocations: 23.08 MB / 0.8349 GB, free: 91.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-05/3.524, allocations: 13.66 kB / 0.8349 GB, free: 91.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03949/3.563, allocations: 14.94 MB / 0.8495 GB, free: 84.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005147/3.569, allocations: 1.229 MB / 0.8507 GB, free: 84.26 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002577/3.571, allocations: 75 kB / 0.8507 GB, free: 84.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007173/3.578, allocations: 214.2 kB / 0.8509 GB, free: 84.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001609/3.58, allocations: 270.1 kB / 0.8512 GB, free: 84.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004861/3.581, allocations: 100.1 kB / 0.8513 GB, free: 84.11 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01298/3.594, allocations: 4.575 MB / 0.8558 GB, free: 82.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.72e-07/3.594, allocations: 0 / 0.8558 GB, free: 82.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01348/3.607, allocations: 2.008 MB / 0.8577 GB, free: 82.38 MB / 426.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 (243): * Single equations (assignments): 237 * 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 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0616/3.669, allocations: 16.93 MB / 0.8743 GB, free: 73.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.04721/3.716, allocations: 8.945 MB / 0.883 GB, free: 67.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.629e-05/3.716, allocations: 4 kB / 0.883 GB, free: 67.24 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01135/3.728, allocations: 4.053 MB / 0.887 GB, free: 63.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00947/3.737, allocations: 1.016 MB / 0.888 GB, free: 62.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06256/3.8, allocations: 18.82 MB / 0.9063 GB, free: 46.59 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01375/3.813, allocations: 5.944 MB / 0.9121 GB, free: 42.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009074/3.823, allocations: 4.013 MB / 0.9161 GB, free: 38.55 MB / 426.7 MB Notification: Performance of SimCode: time 1.953e-06/3.823, allocations: 0 / 0.9161 GB, free: 38.55 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.807/10.63, allocations: 249.4 MB / 1.16 GB, free: 70.18 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