Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.005/2.005, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.427e-05/3.433e-05, allocations: 4 kB / 255.5 MB, free: 2.633 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09819/0.09827, allocations: 44.5 MB / 300 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4466/0.5449, allocations: 90.65 MB / 390.6 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/0.5453, allocations: 82.08 kB / 390.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9469/1.492, allocations: 160 MB / 0.5378 GB, free: 58.81 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.844e-06/1.492, allocations: 0 / 0.5378 GB, free: 58.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007246/1.493, allocations: 156.1 kB / 0.538 GB, free: 58.81 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: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.03245/1.525, allocations: 7.892 MB / 0.5457 GB, free: 55.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/1.526, allocations: 10.22 kB / 0.5457 GB, free: 55.86 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005922/1.531, allocations: 1.206 MB / 0.5468 GB, free: 55.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.118/1.65, allocations: 16.48 MB / 0.5629 GB, free: 55.22 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04388/1.693, allocations: 13.48 MB / 0.5761 GB, free: 54.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000677/1.694, allocations: 0.5238 MB / 0.5766 GB, free: 54.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003844/1.698, allocations: 0.7229 MB / 0.5773 GB, free: 54.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05132/1.749, allocations: 16.17 MB / 0.5931 GB, free: 50.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007446/1.75, allocations: 113.9 kB / 0.5932 GB, free: 50.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003669/1.754, allocations: 333 kB / 0.5935 GB, free: 50.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003484/1.757, allocations: 1.485 MB / 0.595 GB, free: 50.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05164/1.809, allocations: 12.48 MB / 0.6072 GB, free: 48.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4211/2.23, allocations: 73.38 MB / 0.6788 GB, free: 63.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03418/2.265, allocations: 7.426 MB / 0.6861 GB, free: 63.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007557/2.272, allocations: 3.969 MB / 0.69 GB, free: 63.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02774/2.3, allocations: 11.58 MB / 0.7013 GB, free: 61.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.056e-05/2.3, allocations: 68.69 kB / 0.7013 GB, free: 61.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 6.723e-06/2.3, allocations: 0 / 0.7013 GB, free: 61.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.2241/2.524, allocations: 37.92 MB / 0.7384 GB, free: 57.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/2.524, allocations: 402.2 kB / 0.7387 GB, free: 56.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01733/2.542, allocations: 6.167 MB / 0.7448 GB, free: 56.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009613/2.543, allocations: 81.42 kB / 0.7448 GB, free: 56.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005817/2.549, allocations: 5.223 MB / 0.7499 GB, free: 54.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00227/2.551, allocations: 1.247 MB / 0.7512 GB, free: 53.29 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001265/2.552, allocations: 164.3 kB / 0.7513 GB, free: 53.29 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006665/2.553, allocations: 0.6582 MB / 0.752 GB, free: 52.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009392/2.562, allocations: 3.718 MB / 0.7556 GB, free: 52.27 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01302/2.575, allocations: 8.323 MB / 0.7637 GB, free: 44.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01292/2.588, allocations: 5.484 MB / 0.7691 GB, free: 42.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002832/2.589, allocations: 48.22 kB / 0.7691 GB, free: 42.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.05631/2.645, allocations: 16.09 MB / 0.7848 GB, free: 33.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001183/2.645, allocations: 76 kB / 0.7849 GB, free: 33.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002209/2.645, allocations: 160 kB / 0.7851 GB, free: 33.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0289/2.674, allocations: 5.51 MB / 0.7904 GB, free: 29.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01123/2.686, allocations: 1.786 MB / 0.7922 GB, free: 28.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06251/2.748, allocations: 28 MB / 0.8195 GB, free: 3.859 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01158/2.76, allocations: 0.5157 MB / 0.82 GB, free: 3.434 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002222/2.762, allocations: 480.1 kB / 0.8205 GB, free: 2.973 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (944): * Single equations (assignments): 938 * 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,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003226/2.765, allocations: 0.7372 MB / 0.8212 GB, free: 2.238 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002231/2.768, allocations: 0.6556 MB / 0.8219 GB, free: 1.574 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06244/2.83, allocations: 11.46 MB / 0.833 GB, free: 10.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.3283/3.159, allocations: 35.72 kB / 0.8331 GB, free: 73.73 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.095e-05/3.159, allocations: 20.75 kB / 0.8331 GB, free: 73.73 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001074/3.159, allocations: 18.94 kB / 0.8331 GB, free: 73.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08342/3.242, allocations: 23.9 MB / 0.8565 GB, free: 70.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.398e-05/3.242, allocations: 9.641 kB / 0.8565 GB, free: 70.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003973/3.246, allocations: 431.3 kB / 0.8569 GB, free: 70.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02887/3.275, allocations: 5.08 MB / 0.8618 GB, free: 70.88 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001053/3.276, allocations: 68 kB / 0.8619 GB, free: 70.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06082/3.337, allocations: 26.72 MB / 0.888 GB, free: 66.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/3.337, allocations: 10.09 kB / 0.888 GB, free: 66.09 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04838/3.386, allocations: 16.76 MB / 0.9044 GB, free: 59.29 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005105/3.391, allocations: 1.26 MB / 0.9056 GB, free: 58.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00237/3.393, allocations: 61.19 kB / 0.9057 GB, free: 58.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00699/3.4, allocations: 262.7 kB / 0.9059 GB, free: 58.85 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001511/3.402, allocations: 247.9 kB / 0.9062 GB, free: 58.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004791/3.402, allocations: 89.03 kB / 0.9062 GB, free: 58.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01149/3.414, allocations: 4.455 MB / 0.9106 GB, free: 57.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.964e-06/3.414, allocations: 2.297 kB / 0.9106 GB, free: 57.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0118/3.426, allocations: 1.961 MB / 0.9125 GB, free: 57.11 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.04818/3.474, allocations: 18.49 MB / 0.9306 GB, free: 48.71 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02398/3.498, allocations: 9.699 MB / 0.94 GB, free: 45.05 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/3.498, allocations: 0 / 0.94 GB, free: 45.05 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01195/3.51, allocations: 4.341 MB / 0.9443 GB, free: 41.22 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008352/3.518, allocations: 0.9844 MB / 0.9452 GB, free: 40.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05908/3.578, allocations: 18.2 MB / 0.963 GB, free: 24.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01297/3.591, allocations: 5.707 MB / 0.9686 GB, free: 20.57 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01221/3.603, allocations: 2.632 MB / 0.9712 GB, free: 19.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008027/3.611, allocations: 3.748 MB / 0.9748 GB, free: 15.54 MB / 442.7 MB Notification: Performance of SimCode: time 1.873e-06/3.611, allocations: 0 / 0.9748 GB, free: 15.54 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7789/4.39, allocations: 158.3 MB / 1.129 GB, free: 1.062 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002485/4.39, allocations: 180.3 kB / 1.13 GB, free: 0.8438 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.979/13.37, allocations: 0 / 1.13 GB, free: 0.8438 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat