Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.355/2.355, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.327e-05/3.341e-05, allocations: 3.906 kB / 249.8 MB, free: 5.211 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1011, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5009/0.6021, allocations: 91.48 MB / 385.8 MB, free: 4.594 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003154/0.6025, allocations: 86.11 kB / 385.9 MB, free: 4.582 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.204/1.806, allocations: 161.9 MB / 0.5349 GB, free: 63.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.806, allocations: 4 kB / 0.5349 GB, free: 63.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008928/1.807, allocations: 166.4 kB / 0.535 GB, free: 63.29 MB / 394.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.03859/1.846, allocations: 8.191 MB / 0.543 GB, free: 60.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.951e-05/1.846, allocations: 11.59 kB / 0.5431 GB, free: 60.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1423/1.988, allocations: 16.56 MB / 0.5592 GB, free: 59.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05517/2.044, allocations: 13.73 MB / 0.5726 GB, free: 58.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005429/2.044, allocations: 240.5 kB / 0.5729 GB, free: 58.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004604/2.049, allocations: 473.1 kB / 0.5733 GB, free: 58.24 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02819/2.077, allocations: 9.868 MB / 0.583 GB, free: 50.65 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04448/2.122, allocations: 14.78 MB / 0.5974 GB, free: 35.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009048/2.123, allocations: 109.7 kB / 0.5975 GB, free: 35.56 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003977/2.127, allocations: 43.94 kB / 0.5975 GB, free: 35.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004068/2.131, allocations: 1.532 MB / 0.599 GB, free: 33.99 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6216/2.752, allocations: 72.58 MB / 0.6699 GB, free: 50.81 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01249/2.765, allocations: 5.4 MB / 0.6752 GB, free: 50.14 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008241/2.773, allocations: 3.819 MB / 0.6789 GB, free: 50.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002122/2.775, allocations: 1.377 MB / 0.6803 GB, free: 48.87 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001128/2.776, allocations: 67.47 kB / 0.6803 GB, free: 48.83 MB / 426.7 MB Notification: Performance of pre-optimization done (n=299): time 8.867e-06/2.776, allocations: 0 / 0.6803 GB, free: 48.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=371): time 0.1784/2.954, allocations: 35.78 MB / 0.7153 GB, free: 44.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001571/2.954, allocations: 405.5 kB / 0.7157 GB, free: 43.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01698/2.971, allocations: 5.634 MB / 0.7212 GB, free: 42.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001048/2.972, allocations: 25.7 kB / 0.7212 GB, free: 42.15 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006461/2.979, allocations: 5.475 MB / 0.7265 GB, free: 38.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002443/2.981, allocations: 1.31 MB / 0.7278 GB, free: 37.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001667/2.983, allocations: 0 / 0.7278 GB, free: 37.28 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001107/2.984, allocations: 0.6843 MB / 0.7285 GB, free: 36.81 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009261/2.994, allocations: 3.353 MB / 0.7317 GB, free: 35.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01304/3.007, allocations: 8.288 MB / 0.7398 GB, free: 27.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01301/3.02, allocations: 5.195 MB / 0.7449 GB, free: 26.03 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002444/3.02, allocations: 50.41 kB / 0.745 GB, free: 26.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.05062/3.071, allocations: 13.8 MB / 0.7584 GB, free: 16.24 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001414/3.071, allocations: 80 kB / 0.7585 GB, free: 16.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000259/3.071, allocations: 172.5 kB / 0.7587 GB, free: 16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02301/3.094, allocations: 3.682 MB / 0.7623 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01504/3.109, allocations: 1.915 MB / 0.7641 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0722/3.181, allocations: 22.43 MB / 0.786 GB, free: 8.656 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01385/3.195, allocations: 329.7 kB / 0.7864 GB, free: 8.402 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002825/3.198, allocations: 0.5062 MB / 0.7868 GB, free: 7.906 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * 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 (1030): * Single equations (assignments): 1024 * 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 {(8,64.1%) 98,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.004181/3.202, allocations: 0.5661 MB / 0.7874 GB, free: 7.348 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.037/3.239, allocations: 8.505 MB / 0.7957 GB, free: 416 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002936/3.242, allocations: 0.6443 MB / 0.7963 GB, free: 15.75 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03684/3.279, allocations: 8.514 MB / 0.8047 GB, free: 9.039 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001112/3.28, allocations: 40 kB / 0.8047 GB, free: 9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.74e-05/3.28, allocations: 20 kB / 0.8047 GB, free: 8.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.645e-05/3.28, allocations: 17.39 kB / 0.8047 GB, free: 8.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5588/3.838, allocations: 18.71 MB / 0.823 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-05/3.839, allocations: 11.47 kB / 0.823 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004962/3.844, allocations: 455.3 kB / 0.8234 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02251/3.866, allocations: 3.408 MB / 0.8268 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001014/3.867, allocations: 18.62 kB / 0.8268 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05852/3.926, allocations: 21.54 MB / 0.8478 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.719e-05/3.926, allocations: 10.94 kB / 0.8478 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04646/3.972, allocations: 14.59 MB / 0.8621 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005507/3.978, allocations: 1.187 MB / 0.8632 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003137/3.981, allocations: 11.91 kB / 0.8632 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007775/3.989, allocations: 160.8 kB / 0.8634 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001935/3.991, allocations: 273.1 kB / 0.8637 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007171/3.992, allocations: 102.9 kB / 0.8638 GB, free: 100.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.012/4.004, allocations: 3.939 MB / 0.8676 GB, free: 99.33 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.383e-06/4.004, allocations: 0 / 0.8676 GB, free: 99.33 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01509/4.019, allocations: 1.747 MB / 0.8693 GB, free: 99.33 MB / 458.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 (248): * Single equations (assignments): 242 * 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 {(8,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.04657/4.065, allocations: 16.62 MB / 0.8855 GB, free: 90.93 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02517/4.091, allocations: 8.975 MB / 0.8943 GB, free: 87.85 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.388e-05/4.091, allocations: 4.312 kB / 0.8943 GB, free: 87.85 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01222/4.103, allocations: 3.93 MB / 0.8981 GB, free: 86.14 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009691/4.113, allocations: 0.8787 MB / 0.899 GB, free: 85.83 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06775/4.18, allocations: 17.54 MB / 0.9161 GB, free: 74.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01628/4.197, allocations: 5.923 MB / 0.9219 GB, free: 70.19 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01718/4.214, allocations: 2.847 MB / 0.9247 GB, free: 68.56 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01034/4.224, allocations: 3.917 MB / 0.9285 GB, free: 64.91 MB / 458.7 MB Notification: Performance of SimCode: time 2.835e-06/4.224, allocations: 0 / 0.9285 GB, free: 64.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8344/5.059, allocations: 151.8 MB / 1.077 GB, free: 58.85 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000326/5.059, allocations: 141.3 kB / 1.077 GB, free: 58.66 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.63/15.69, allocations: 4 kB / 1.077 GB, free: 58.66 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat