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.838/1.838, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.263e-05/3.273e-05, allocations: 3.984 kB / 255.5 MB, free: 2.605 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09035/0.09042, allocations: 44.51 MB / 300 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4297/0.5202, allocations: 92.15 MB / 392.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/0.5205, allocations: 88.08 kB / 392.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.089/1.61, allocations: 165.2 MB / 0.5443 GB, free: 58.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.834e-06/1.61, allocations: 0 / 0.5443 GB, free: 58.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008312/1.611, allocations: 171 kB / 0.5445 GB, free: 58.78 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.03467/1.645, allocations: 8.189 MB / 0.5525 GB, free: 55.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/1.645, allocations: 10.94 kB / 0.5525 GB, free: 55.71 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00607/1.651, allocations: 1.251 MB / 0.5537 GB, free: 55.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1184/1.77, allocations: 16.56 MB / 0.5699 GB, free: 55.06 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04628/1.816, allocations: 13.75 MB / 0.5833 GB, free: 53.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007143/1.817, allocations: 0.5498 MB / 0.5839 GB, free: 53.83 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004103/1.821, allocations: 0.7657 MB / 0.5846 GB, free: 53.81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05423/1.875, allocations: 16.82 MB / 0.601 GB, free: 50.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008252/1.876, allocations: 114.7 kB / 0.6011 GB, free: 50.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003728/1.88, allocations: 349 kB / 0.6015 GB, free: 50.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003637/1.884, allocations: 1.53 MB / 0.603 GB, free: 50.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04333/1.927, allocations: 13.12 MB / 0.6158 GB, free: 44.83 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.473/2.4, allocations: 74.78 MB / 0.6888 GB, free: 45.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03235/2.433, allocations: 7.021 MB / 0.6957 GB, free: 44.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007825/2.441, allocations: 3.922 MB / 0.6995 GB, free: 44.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02916/2.47, allocations: 11.93 MB / 0.7112 GB, free: 42.56 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.869e-05/2.47, allocations: 71.58 kB / 0.7112 GB, free: 42.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 6.943e-06/2.47, allocations: 0 / 0.7112 GB, free: 42.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=366): time 0.2359/2.706, allocations: 35.3 MB / 0.7457 GB, free: 37.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001832/2.706, allocations: 399.2 kB / 0.7461 GB, free: 37.44 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01647/2.723, allocations: 6.347 MB / 0.7523 GB, free: 36.92 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009308/2.723, allocations: 83.14 kB / 0.7524 GB, free: 36.89 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00552/2.729, allocations: 5.44 MB / 0.7577 GB, free: 34.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002149/2.731, allocations: 1.339 MB / 0.759 GB, free: 33.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001174/2.732, allocations: 174.5 kB / 0.7591 GB, free: 33.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006603/2.733, allocations: 0.6715 MB / 0.7598 GB, free: 33.47 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008707/2.742, allocations: 3.463 MB / 0.7632 GB, free: 33.45 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01232/2.754, allocations: 8.327 MB / 0.7713 GB, free: 26.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01206/2.766, allocations: 5.291 MB / 0.7765 GB, free: 24.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001724/2.767, allocations: 52.88 kB / 0.7765 GB, free: 24.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04907/2.816, allocations: 14.81 MB / 0.791 GB, free: 16.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001318/2.816, allocations: 82.53 kB / 0.7911 GB, free: 16.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002531/2.816, allocations: 168 kB / 0.7912 GB, free: 16.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01945/2.836, allocations: 3.732 MB / 0.7949 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01257/2.848, allocations: 1.86 MB / 0.7967 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07216/2.92, allocations: 24.34 MB / 0.8205 GB, free: 8.109 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01159/2.932, allocations: 0.4889 MB / 0.8209 GB, free: 7.688 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002391/2.934, allocations: 0.4967 MB / 0.8214 GB, free: 7.203 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.003936/2.938, allocations: 0.7719 MB / 0.8222 GB, free: 6.43 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00226/2.941, allocations: 0.686 MB / 0.8228 GB, free: 5.738 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03931/2.98, allocations: 9.044 MB / 0.8317 GB, free: 15.16 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.507e-05/2.98, allocations: 43.47 kB / 0.8317 GB, free: 15.12 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.356e-05/2.98, allocations: 20 kB / 0.8317 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.054e-05/2.98, allocations: 16.5 kB / 0.8318 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09157/3.072, allocations: 19.45 MB / 0.8508 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.939e-05/3.072, allocations: 8 kB / 0.8508 GB, free: 14.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00444/3.077, allocations: 451.3 kB / 0.8512 GB, free: 13.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02067/3.097, allocations: 3.486 MB / 0.8546 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001016/3.098, allocations: 68 kB / 0.8547 GB, free: 10.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3852/3.484, allocations: 23.08 MB / 0.8772 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.275e-05/3.484, allocations: 14.5 kB / 0.8772 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03948/3.523, allocations: 14.93 MB / 0.8918 GB, free: 115.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005069/3.528, allocations: 1.222 MB / 0.893 GB, free: 115.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002575/3.531, allocations: 66.16 kB / 0.893 GB, free: 115.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006901/3.538, allocations: 216.8 kB / 0.8933 GB, free: 115.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001622/3.54, allocations: 272.8 kB / 0.8935 GB, free: 115.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005127/3.54, allocations: 105.5 kB / 0.8936 GB, free: 115.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01302/3.553, allocations: 4.572 MB / 0.8981 GB, free: 115.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.042e-06/3.553, allocations: 0 / 0.8981 GB, free: 115.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01288/3.566, allocations: 2.001 MB / 0.9 GB, free: 115.4 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.04182/3.608, allocations: 16.93 MB / 0.9166 GB, free: 111 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0227/3.631, allocations: 9.252 MB / 0.9256 GB, free: 108.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.449e-05/3.631, allocations: 2.969 kB / 0.9256 GB, free: 108.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01191/3.643, allocations: 4.129 MB / 0.9296 GB, free: 107 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009376/3.652, allocations: 1.017 MB / 0.9306 GB, free: 106.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06104/3.713, allocations: 17.94 MB / 0.9481 GB, free: 100.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01414/3.727, allocations: 5.938 MB / 0.9539 GB, free: 98.48 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0142/3.742, allocations: 2.78 MB / 0.9567 GB, free: 98.42 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009174/3.751, allocations: 3.954 MB / 0.9605 GB, free: 95.12 MB / 490.7 MB Notification: Performance of SimCode: time 1.813e-06/3.751, allocations: 0 / 0.9605 GB, free: 95.12 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6861/4.437, allocations: 162.1 MB / 1.119 GB, free: 107.5 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000241/4.437, allocations: 185.6 kB / 1.119 GB, free: 107.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.402/13.84, allocations: 0 / 1.119 GB, free: 107.3 MB / 490.7 MB