Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.861/1.861, allocations: 194.9 MB / 208 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.024e-05/3.031e-05, allocations: 0 / 255.5 MB, free: 2.602 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 44.49 MB / 300 MB, free: 6.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4509/0.5557, allocations: 92.16 MB / 392.1 MB, free: 12.28 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/0.556, allocations: 87.75 kB / 392.2 MB, free: 12.28 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9797/1.536, allocations: 165.2 MB / 0.5444 GB, free: 58.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.787e-06/1.536, allocations: 3.516 kB / 0.5444 GB, free: 58.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007763/1.537, allocations: 162 kB / 0.5445 GB, free: 58.51 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: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.03373/1.57, allocations: 8.191 MB / 0.5525 GB, free: 55.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/1.57, allocations: 11.06 kB / 0.5525 GB, free: 55.45 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005747/1.576, allocations: 1.251 MB / 0.5538 GB, free: 55.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1206/1.697, allocations: 16.56 MB / 0.5699 GB, free: 54.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04536/1.742, allocations: 13.76 MB / 0.5834 GB, free: 53.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007485/1.743, allocations: 0.5532 MB / 0.5839 GB, free: 53.56 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004194/1.747, allocations: 0.7567 MB / 0.5846 GB, free: 53.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0508/1.798, allocations: 16.74 MB / 0.601 GB, free: 49.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000591/1.799, allocations: 111.2 kB / 0.6011 GB, free: 49.91 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002893/1.802, allocations: 350.3 kB / 0.6014 GB, free: 49.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003367/1.805, allocations: 1.531 MB / 0.6029 GB, free: 49.89 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04156/1.847, allocations: 12.87 MB / 0.6155 GB, free: 45.05 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4663/2.313, allocations: 74.76 MB / 0.6885 GB, free: 45.97 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04106/2.354, allocations: 6.992 MB / 0.6953 GB, free: 45.29 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01135/2.366, allocations: 3.934 MB / 0.6992 GB, free: 45.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0423/2.408, allocations: 11.93 MB / 0.7108 GB, free: 42.98 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.543e-05/2.408, allocations: 79.06 kB / 0.7109 GB, free: 42.95 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 1.041e-05/2.408, allocations: 0 / 0.7109 GB, free: 42.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=366): time 0.2236/2.632, allocations: 35.28 MB / 0.7454 GB, free: 38.31 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001982/2.632, allocations: 398.3 kB / 0.7457 GB, free: 37.87 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.017/2.649, allocations: 6.34 MB / 0.7519 GB, free: 37.36 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009331/2.65, allocations: 82.8 kB / 0.752 GB, free: 37.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00554/2.656, allocations: 5.445 MB / 0.7573 GB, free: 35.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002129/2.658, allocations: 1.344 MB / 0.7586 GB, free: 34.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001112/2.659, allocations: 175.3 kB / 0.7588 GB, free: 34.23 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006685/2.66, allocations: 0.672 MB / 0.7595 GB, free: 33.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008491/2.668, allocations: 3.469 MB / 0.7628 GB, free: 33.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01233/2.68, allocations: 8.271 MB / 0.7709 GB, free: 26.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01207/2.693, allocations: 5.292 MB / 0.7761 GB, free: 24.51 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001659/2.693, allocations: 49.5 kB / 0.7761 GB, free: 24.51 MB / 442.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04572/2.738, allocations: 14.34 MB / 0.7901 GB, free: 17.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001251/2.739, allocations: 76 kB / 0.7902 GB, free: 16.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002369/2.739, allocations: 172.5 kB / 0.7904 GB, free: 16.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01929/2.758, allocations: 3.729 MB / 0.794 GB, free: 14.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01737/2.776, allocations: 1.864 MB / 0.7958 GB, free: 12.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0692/2.845, allocations: 24.03 MB / 0.8193 GB, free: 8.094 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.012/2.857, allocations: 0.4924 MB / 0.8198 GB, free: 7.668 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00234/2.859, allocations: 0.4933 MB / 0.8203 GB, free: 7.184 MB / 458.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.0029/2.862, allocations: 0.7699 MB / 0.821 GB, free: 6.418 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002344/2.865, allocations: 0.6787 MB / 0.8217 GB, free: 5.73 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03624/2.901, allocations: 9.062 MB / 0.8305 GB, free: 15.17 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001024/2.901, allocations: 40 kB / 0.8306 GB, free: 15.13 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.827e-05/2.901, allocations: 20 kB / 0.8306 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.83e-05/2.901, allocations: 22.38 kB / 0.8306 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08877/2.99, allocations: 19.43 MB / 0.8496 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-05/2.99, allocations: 8 kB / 0.8496 GB, free: 14.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004369/2.995, allocations: 443.4 kB / 0.85 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02005/3.015, allocations: 3.486 MB / 0.8534 GB, free: 10.91 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009184/3.016, allocations: 78.33 kB / 0.8535 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3824/3.398, allocations: 23.08 MB / 0.876 GB, free: 116.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-05/3.398, allocations: 15.66 kB / 0.876 GB, free: 116.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03786/3.436, allocations: 14.93 MB / 0.8906 GB, free: 114.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004747/3.441, allocations: 1.217 MB / 0.8918 GB, free: 114.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002104/3.443, allocations: 70.88 kB / 0.8919 GB, free: 114.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006168/3.449, allocations: 219.4 kB / 0.8921 GB, free: 114.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00138/3.45, allocations: 274.3 kB / 0.8924 GB, free: 114.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000419/3.451, allocations: 96.3 kB / 0.8924 GB, free: 114.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01216/3.463, allocations: 4.57 MB / 0.8969 GB, free: 113.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.493e-06/3.463, allocations: 0 / 0.8969 GB, free: 113.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01341/3.477, allocations: 2.004 MB / 0.8989 GB, free: 113.8 MB / 490.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.03928/3.516, allocations: 16.93 MB / 0.9154 GB, free: 109.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02153/3.537, allocations: 8.947 MB / 0.9241 GB, free: 107.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.639e-05/3.538, allocations: 5.906 kB / 0.9241 GB, free: 107.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01146/3.549, allocations: 4.059 MB / 0.9281 GB, free: 106.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009211/3.558, allocations: 1.014 MB / 0.9291 GB, free: 105.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05857/3.617, allocations: 17.91 MB / 0.9466 GB, free: 99.36 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01463/3.632, allocations: 5.935 MB / 0.9524 GB, free: 97.54 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01666/3.648, allocations: 2.786 MB / 0.9551 GB, free: 97.48 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0134/3.662, allocations: 3.959 MB / 0.959 GB, free: 94.18 MB / 490.7 MB Notification: Performance of SimCode: time 2.455e-06/3.662, allocations: 0 / 0.959 GB, free: 94.18 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7684/4.43, allocations: 161.1 MB / 1.116 GB, free: 110.1 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002321/4.431, allocations: 180.3 kB / 1.116 GB, free: 109.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.237/13.67, allocations: 0 / 1.116 GB, free: 109.9 MB / 490.7 MB