Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.961/1.961, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.174e-05/3.191e-05, allocations: 4 kB / 292.2 MB, free: 8.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1048, allocations: 50.41 MB / 342.7 MB, free: 5.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4609/0.5657, allocations: 99.87 MB / 442.5 MB, free: 10.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.5661, allocations: 85.39 kB / 442.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.032/1.599, allocations: 168.1 MB / 0.5964 GB, free: 89.75 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.599, allocations: 0 / 0.5964 GB, free: 89.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007488/1.599, allocations: 169.2 kB / 0.5965 GB, free: 89.74 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.03441/1.634, allocations: 8.17 MB / 0.6045 GB, free: 84.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/1.634, allocations: 6.969 kB / 0.6045 GB, free: 84.57 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006376/1.64, allocations: 1.253 MB / 0.6058 GB, free: 83.73 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1197/1.76, allocations: 16.56 MB / 0.6219 GB, free: 68.11 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04552/1.806, allocations: 12.81 MB / 0.6344 GB, free: 55.41 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006829/1.806, allocations: 0.549 MB / 0.635 GB, free: 54.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00395/1.81, allocations: 0.7594 MB / 0.6357 GB, free: 54.17 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05202/1.862, allocations: 16.74 MB / 0.6521 GB, free: 36.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008549/1.863, allocations: 119 kB / 0.6522 GB, free: 36.11 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003725/1.867, allocations: 350.8 kB / 0.6525 GB, free: 35.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003481/1.871, allocations: 1.535 MB / 0.654 GB, free: 34.26 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04339/1.914, allocations: 12.88 MB / 0.6666 GB, free: 21.37 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4698/2.384, allocations: 75.16 MB / 0.74 GB, free: 31.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03457/2.418, allocations: 7.777 MB / 0.7476 GB, free: 30.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008101/2.427, allocations: 4.095 MB / 0.7516 GB, free: 30.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02947/2.456, allocations: 11.87 MB / 0.7632 GB, free: 27.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.043e-05/2.456, allocations: 72.25 kB / 0.7632 GB, free: 27.69 MB / 442.7 MB Notification: Performance of pre-optimization done (n=294): time 7.675e-06/2.456, allocations: 0 / 0.7632 GB, free: 27.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=361): time 0.2428/2.699, allocations: 40.42 MB / 0.8027 GB, free: 18.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001445/2.699, allocations: 404.8 kB / 0.8031 GB, free: 17.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01596/2.715, allocations: 6.242 MB / 0.8092 GB, free: 13.81 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009618/2.716, allocations: 81.08 kB / 0.8093 GB, free: 13.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005242/2.722, allocations: 5.41 MB / 0.8145 GB, free: 8.859 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002075/2.724, allocations: 1.319 MB / 0.8158 GB, free: 7.688 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001369/2.725, allocations: 172 kB / 0.816 GB, free: 7.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006553/2.726, allocations: 0.6715 MB / 0.8167 GB, free: 6.949 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009139/2.735, allocations: 3.894 MB / 0.8205 GB, free: 3.418 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01477/2.75, allocations: 8.664 MB / 0.8289 GB, free: 9.129 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01558/2.765, allocations: 5.697 MB / 0.8345 GB, free: 4.336 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000169/2.766, allocations: 48 kB / 0.8345 GB, free: 4.289 MB / 458.7 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.07393/2.84, allocations: 16.81 MB / 0.8509 GB, free: 6.758 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001565/2.84, allocations: 76 kB / 0.851 GB, free: 6.684 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003094/2.84, allocations: 164.8 kB / 0.8512 GB, free: 6.523 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04808/2.888, allocations: 5.748 MB / 0.8568 GB, free: 1.234 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.4113/3.299, allocations: 1.842 MB / 0.8586 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08499/3.385, allocations: 29.17 MB / 0.8871 GB, free: 99.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01731/3.402, allocations: 0.5382 MB / 0.8876 GB, free: 99.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002606/3.405, allocations: 495.6 kB / 0.8881 GB, free: 99.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * Number of states: 0 () * Number of discrete variables: 72 (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],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 976 * 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 {(7,55.1%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.01638/3.421, allocations: 0.7576 MB / 0.8888 GB, free: 99.63 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002795/3.424, allocations: 0.683 MB / 0.8895 GB, free: 99.63 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05082/3.475, allocations: 11.5 MB / 0.9007 GB, free: 95.97 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.811e-05/3.475, allocations: 39.53 kB / 0.9007 GB, free: 95.97 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.882e-05/3.475, allocations: 16.5 kB / 0.9008 GB, free: 95.97 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.459e-05/3.475, allocations: 23.52 kB / 0.9008 GB, free: 95.97 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08249/3.557, allocations: 25.06 MB / 0.9253 GB, free: 86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.842e-05/3.558, allocations: 3.906 kB / 0.9253 GB, free: 86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004454/3.562, allocations: 472.1 kB / 0.9257 GB, free: 85.99 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03062/3.593, allocations: 5.38 MB / 0.931 GB, free: 85.05 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000951/3.594, allocations: 71.02 kB / 0.931 GB, free: 85 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06547/3.659, allocations: 28.03 MB / 0.9584 GB, free: 66.34 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.368e-05/3.659, allocations: 17.23 kB / 0.9584 GB, free: 66.33 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05239/3.712, allocations: 17.63 MB / 0.9756 GB, free: 51.36 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005413/3.717, allocations: 1.31 MB / 0.9769 GB, free: 50.03 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002794/3.72, allocations: 72.52 kB / 0.977 GB, free: 49.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007511/3.728, allocations: 265.6 kB / 0.9772 GB, free: 49.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001621/3.729, allocations: 257.9 kB / 0.9775 GB, free: 49.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000781/3.73, allocations: 91.98 kB / 0.9776 GB, free: 49.37 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01212/3.742, allocations: 4.497 MB / 0.982 GB, free: 44.91 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.112e-06/3.742, allocations: 0 / 0.982 GB, free: 44.91 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01354/3.756, allocations: 2.047 MB / 0.984 GB, free: 42.87 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (233): * Single equations (assignments): 227 * 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 {(7,55.1%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0528/3.809, allocations: 19.28 MB / 1.003 GB, free: 23.51 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02699/3.836, allocations: 10.11 MB / 1.013 GB, free: 13.52 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.938e-05/3.836, allocations: 4 kB / 1.013 GB, free: 13.52 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01456/3.85, allocations: 4.621 MB / 1.017 GB, free: 8.875 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009327/3.86, allocations: 0.9993 MB / 1.018 GB, free: 7.922 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4424/4.302, allocations: 18.91 MB / 1.037 GB, free: 114.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01949/4.322, allocations: 5.905 MB / 1.042 GB, free: 113.8 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01704/4.339, allocations: 2.736 MB / 1.045 GB, free: 113.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01097/4.35, allocations: 3.902 MB / 1.049 GB, free: 113.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.884e-06/4.35, allocations: 2.188 kB / 1.049 GB, free: 113.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9035/5.254, allocations: 164.9 MB / 1.21 GB, free: 73.41 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000178/5.254, allocations: 190.2 kB / 1.21 GB, free: 73.19 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.581/14.83, allocations: 1 kB / 1.21 GB, free: 73.19 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat