Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.715/1.715, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.904e-05/4.922e-05, allocations: 4 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.2999, allocations: 38.77 MB / 263.9 MB, free: 9.82 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1742/0.4742, allocations: 86.43 MB / 350.3 MB, free: 3.254 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/0.4746, allocations: 87.94 kB / 350.4 MB, free: 3.168 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.225/1.699, allocations: 165.2 MB / 0.5035 GB, free: 34.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.073e-06/1.699, allocations: 0 / 0.5035 GB, free: 34.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007963/1.7, allocations: 164.6 kB / 0.5037 GB, free: 34.39 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.03303/1.733, allocations: 8.202 MB / 0.5117 GB, free: 31.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/1.733, allocations: 7.469 kB / 0.5117 GB, free: 31.34 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005765/1.739, allocations: 1.255 MB / 0.5129 GB, free: 31.24 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.117/1.856, allocations: 16.57 MB / 0.5291 GB, free: 30.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04738/1.904, allocations: 13.75 MB / 0.5425 GB, free: 29.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000784/1.904, allocations: 0.5472 MB / 0.543 GB, free: 29.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004127/1.909, allocations: 0.7673 MB / 0.5438 GB, free: 29.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05742/1.966, allocations: 16.82 MB / 0.5602 GB, free: 25.81 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008214/1.967, allocations: 115.4 kB / 0.5603 GB, free: 25.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003606/1.971, allocations: 350.6 kB / 0.5606 GB, free: 25.8 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003549/1.974, allocations: 1.529 MB / 0.5621 GB, free: 25.78 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04266/2.017, allocations: 13.12 MB / 0.575 GB, free: 20.06 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4379/2.455, allocations: 74.75 MB / 0.648 GB, free: 19.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03097/2.486, allocations: 7.032 MB / 0.6548 GB, free: 19.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007697/2.494, allocations: 3.922 MB / 0.6586 GB, free: 19.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02943/2.523, allocations: 11.93 MB / 0.6703 GB, free: 16.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.931e-05/2.523, allocations: 66.5 kB / 0.6704 GB, free: 16.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=293): time 8.566e-06/2.523, allocations: 0 / 0.6704 GB, free: 16.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=366): time 0.2137/2.737, allocations: 35.31 MB / 0.7049 GB, free: 12.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001544/2.737, allocations: 398.5 kB / 0.7052 GB, free: 11.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01632/2.753, allocations: 6.36 MB / 0.7114 GB, free: 11.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00093/2.754, allocations: 82.58 kB / 0.7115 GB, free: 11.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005304/2.76, allocations: 5.439 MB / 0.7168 GB, free: 8.844 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002117/2.762, allocations: 1.333 MB / 0.7181 GB, free: 7.855 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001083/2.763, allocations: 178.1 kB / 0.7183 GB, free: 7.719 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005656/2.764, allocations: 0.6671 MB / 0.719 GB, free: 7.254 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008718/2.772, allocations: 3.464 MB / 0.7223 GB, free: 6.027 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01258/2.785, allocations: 8.318 MB / 0.7305 GB, free: 13.37 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01375/2.799, allocations: 5.308 MB / 0.7356 GB, free: 9.195 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000197/2.799, allocations: 48 kB / 0.7357 GB, free: 9.148 MB / 394.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.05172/2.851, allocations: 14.81 MB / 0.7502 GB, free: 13.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001634/2.851, allocations: 78.03 kB / 0.7502 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000325/2.851, allocations: 171.8 kB / 0.7504 GB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02068/2.872, allocations: 3.729 MB / 0.754 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01242/2.884, allocations: 1.863 MB / 0.7559 GB, free: 8.766 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06254/2.947, allocations: 23.87 MB / 0.7792 GB, free: 4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01185/2.959, allocations: 0.4906 MB / 0.7796 GB, free: 3.574 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002317/2.961, allocations: 0.4981 MB / 0.7801 GB, free: 3.09 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.002979/2.964, allocations: 0.7683 MB / 0.7809 GB, free: 2.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002264/2.967, allocations: 0.6861 MB / 0.7815 GB, free: 1.629 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3295/3.296, allocations: 9.3 MB / 0.7906 GB, free: 97.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.077e-05/3.296, allocations: 40.48 kB / 0.7907 GB, free: 97.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.365e-05/3.296, allocations: 24.22 kB / 0.7907 GB, free: 97.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.706e-05/3.296, allocations: 15.75 kB / 0.7907 GB, free: 97.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06492/3.361, allocations: 19.44 MB / 0.8097 GB, free: 95.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.487e-05/3.361, allocations: 13.55 kB / 0.8097 GB, free: 95.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004108/3.366, allocations: 441.8 kB / 0.8101 GB, free: 95.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01886/3.384, allocations: 3.488 MB / 0.8135 GB, free: 95.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009285/3.385, allocations: 72.39 kB / 0.8136 GB, free: 95.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05315/3.439, allocations: 23.07 MB / 0.8361 GB, free: 90.94 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.394e-05/3.439, allocations: 12.53 kB / 0.8361 GB, free: 90.94 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03989/3.479, allocations: 14.93 MB / 0.8507 GB, free: 84.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005252/3.484, allocations: 1.237 MB / 0.8519 GB, free: 83.97 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002773/3.487, allocations: 72.66 kB / 0.852 GB, free: 83.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008007/3.495, allocations: 211.4 kB / 0.8522 GB, free: 83.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002049/3.497, allocations: 266.4 kB / 0.8525 GB, free: 83.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007599/3.498, allocations: 101 kB / 0.8526 GB, free: 83.81 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01799/3.516, allocations: 4.576 MB / 0.857 GB, free: 82.29 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.92e-07/3.516, allocations: 0 / 0.857 GB, free: 82.29 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01887/3.535, allocations: 2.011 MB / 0.859 GB, free: 82.08 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.05234/3.587, allocations: 16.93 MB / 0.8755 GB, free: 72.87 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02227/3.609, allocations: 9.256 MB / 0.8846 GB, free: 64.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.496e-05/3.609, allocations: 4 kB / 0.8846 GB, free: 64.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01182/3.621, allocations: 4.128 MB / 0.8886 GB, free: 61.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009301/3.631, allocations: 1.019 MB / 0.8896 GB, free: 60.39 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05999/3.691, allocations: 17.94 MB / 0.9071 GB, free: 44.87 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01372/3.704, allocations: 5.94 MB / 0.9129 GB, free: 40.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01297/3.717, allocations: 2.784 MB / 0.9156 GB, free: 38.97 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00869/3.726, allocations: 3.953 MB / 0.9195 GB, free: 35.29 MB / 426.7 MB Notification: Performance of SimCode: time 1.011e-06/3.726, allocations: 0 / 0.9195 GB, free: 35.29 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.141/4.867, allocations: 162 MB / 1.078 GB, free: 43.15 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002529/4.867, allocations: 193.5 kB / 1.078 GB, free: 42.92 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.818/14.69, allocations: 0 / 1.078 GB, free: 42.92 MB / 426.7 MB