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 2.04/2.04, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.011e-05/3.021e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09061/0.09067, allocations: 44.5 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4698/0.5605, allocations: 103.8 MB / 403.8 MB, free: 11.03 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003083/0.5609, allocations: 97.61 kB / 403.9 MB, free: 11.01 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.191/1.752, allocations: 182.4 MB / 0.5725 GB, free: 64.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.752, allocations: 0.6875 kB / 0.5725 GB, free: 64.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007815/1.753, allocations: 188.7 kB / 0.5727 GB, free: 64.09 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.03731/1.79, allocations: 9.157 MB / 0.5816 GB, free: 60.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/1.791, allocations: 10.06 kB / 0.5816 GB, free: 60.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006292/1.797, allocations: 1.389 MB / 0.583 GB, free: 60.63 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1181/1.915, allocations: 16.65 MB / 0.5992 GB, free: 60 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04681/1.962, allocations: 14.59 MB / 0.6135 GB, free: 56.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000829/1.963, allocations: 0.6302 MB / 0.6141 GB, free: 56.69 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004393/1.967, allocations: 0.8572 MB / 0.6149 GB, free: 56.42 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0582/2.025, allocations: 19.15 MB / 0.6336 GB, free: 38.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005378/2.026, allocations: 107.5 kB / 0.6337 GB, free: 38.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002652/2.029, allocations: 399.9 kB / 0.6341 GB, free: 38.39 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003386/2.032, allocations: 1.593 MB / 0.6357 GB, free: 36.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05643/2.089, allocations: 15.09 MB / 0.6504 GB, free: 21.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4699/2.558, allocations: 80.56 MB / 0.7291 GB, free: 38.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03607/2.595, allocations: 7.798 MB / 0.7367 GB, free: 38.24 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007813/2.602, allocations: 4 MB / 0.7406 GB, free: 38.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03102/2.634, allocations: 14.11 MB / 0.7544 GB, free: 34.47 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.648e-05/2.634, allocations: 72.94 kB / 0.7544 GB, free: 34.43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=308): time 6.643e-06/2.634, allocations: 0 / 0.7544 GB, free: 34.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=408): time 0.2155/2.849, allocations: 38.04 MB / 0.7916 GB, free: 24.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/2.849, allocations: 402 kB / 0.792 GB, free: 24.09 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0146/2.864, allocations: 6.571 MB / 0.7984 GB, free: 21.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001034/2.865, allocations: 88.52 kB / 0.7985 GB, free: 21.76 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004797/2.87, allocations: 5.49 MB / 0.8038 GB, free: 17.49 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002241/2.872, allocations: 1.483 MB / 0.8053 GB, free: 16.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001155/2.873, allocations: 188.5 kB / 0.8055 GB, free: 16.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006908/2.874, allocations: 0.7025 MB / 0.8061 GB, free: 15.76 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009242/2.883, allocations: 4.096 MB / 0.8101 GB, free: 14.18 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01329/2.897, allocations: 9.061 MB / 0.819 GB, free: 3.547 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0196/2.916, allocations: 6.335 MB / 0.8252 GB, free: 15.26 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001925/2.917, allocations: 52 kB / 0.8252 GB, free: 15.21 MB / 458.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.05879/2.975, allocations: 16.24 MB / 0.8411 GB, free: 2.18 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001538/2.976, allocations: 80 kB / 0.8412 GB, free: 2.102 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002758/2.976, allocations: 172 kB / 0.8413 GB, free: 1.934 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3729/3.349, allocations: 5.178 MB / 0.8464 GB, free: 95.17 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01348/3.362, allocations: 1.967 MB / 0.8483 GB, free: 95.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06543/3.428, allocations: 25.12 MB / 0.8728 GB, free: 93.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01209/3.44, allocations: 0.5395 MB / 0.8734 GB, free: 93.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001973/3.442, allocations: 0.509 MB / 0.8739 GB, free: 93.73 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.002215/3.444, allocations: 0.8021 MB / 0.8746 GB, free: 93.62 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002036/3.446, allocations: 0.7123 MB / 0.8753 GB, free: 93.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03762/3.484, allocations: 10.86 MB / 0.886 GB, free: 91.86 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.438e-05/3.484, allocations: 41.73 kB / 0.886 GB, free: 91.86 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.709e-05/3.484, allocations: 25.34 kB / 0.886 GB, free: 91.86 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.277e-05/3.484, allocations: 19.97 kB / 0.886 GB, free: 91.86 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07408/3.558, allocations: 23.68 MB / 0.9092 GB, free: 83.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.313e-05/3.558, allocations: 7.469 kB / 0.9092 GB, free: 83.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004793/3.563, allocations: 0.5225 MB / 0.9097 GB, free: 83.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03182/3.595, allocations: 4.153 MB / 0.9137 GB, free: 82.22 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001317/3.596, allocations: 69.94 kB / 0.9138 GB, free: 82.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05536/3.652, allocations: 21.84 MB / 0.9351 GB, free: 72.71 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.275e-05/3.652, allocations: 17.03 kB / 0.9351 GB, free: 72.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04919/3.701, allocations: 17.5 MB / 0.9522 GB, free: 61.36 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007617/3.709, allocations: 1.367 MB / 0.9536 GB, free: 60.08 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003365/3.712, allocations: 80.92 kB / 0.9537 GB, free: 60.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01085/3.723, allocations: 241.4 kB / 0.9539 GB, free: 59.85 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002161/3.725, allocations: 290.6 kB / 0.9542 GB, free: 59.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007502/3.726, allocations: 113 kB / 0.9543 GB, free: 59.56 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01823/3.744, allocations: 4.727 MB / 0.9589 GB, free: 55.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.713e-06/3.744, allocations: 0 / 0.9589 GB, free: 55.39 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0193/3.764, allocations: 2.197 MB / 0.961 GB, free: 53.22 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.04933/3.813, allocations: 19.43 MB / 0.98 GB, free: 36.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02304/3.836, allocations: 10.14 MB / 0.9899 GB, free: 26.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-05/3.836, allocations: 4 kB / 0.9899 GB, free: 26.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01028/3.846, allocations: 4.289 MB / 0.9941 GB, free: 22.97 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009052/3.855, allocations: 1.048 MB / 0.9951 GB, free: 22.12 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4258/4.281, allocations: 22.69 MB / 1.017 GB, free: 89.59 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01811/4.299, allocations: 6.574 MB / 1.024 GB, free: 88.66 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01018/4.31, allocations: 4.333 MB / 1.028 GB, free: 88.66 MB / 458.7 MB Notification: Performance of SimCode: time 1.553e-06/4.31, allocations: 2.938 kB / 1.028 GB, free: 88.66 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.762/11.07, allocations: 207.4 MB / 1.23 GB, free: 86.86 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