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.978/1.978, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.773e-05/1.808e-05, allocations: 0 / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.296, allocations: 44.49 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1641/0.4601, allocations: 91.49 MB / 385.7 MB, free: 6.328 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003213/0.4605, allocations: 87.94 kB / 385.8 MB, free: 6.242 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9581/1.419, allocations: 161.8 MB / 0.5348 GB, free: 1.684 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.976e-06/1.419, allocations: 0 / 0.5348 GB, free: 1.684 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.001054/1.42, allocations: 168 kB / 0.535 GB, free: 1.52 MB / 362.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.04916/1.469, allocations: 8.184 MB / 0.543 GB, free: 9.254 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.892e-05/1.469, allocations: 12.03 kB / 0.543 GB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1314/1.601, allocations: 16.55 MB / 0.5591 GB, free: 8.648 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3753/1.976, allocations: 13.73 MB / 0.5725 GB, free: 55.74 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005611/1.977, allocations: 240.2 kB / 0.5728 GB, free: 55.74 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003904/1.98, allocations: 467 kB / 0.5732 GB, free: 55.74 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02466/2.005, allocations: 9.873 MB / 0.5829 GB, free: 55.7 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03686/2.042, allocations: 14.77 MB / 0.5973 GB, free: 52.13 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006384/2.043, allocations: 118.4 kB / 0.5974 GB, free: 52.13 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003037/2.046, allocations: 37.78 kB / 0.5974 GB, free: 52.13 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003463/2.049, allocations: 1.53 MB / 0.5989 GB, free: 52.12 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1128/2.162, allocations: 72.6 MB / 0.6698 GB, free: 5.48 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009917/2.172, allocations: 5.395 MB / 0.6751 GB, free: 2.832 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006816/2.179, allocations: 3.823 MB / 0.6788 GB, free: 1.164 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001808/2.181, allocations: 1.379 MB / 0.6802 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.822e-05/2.181, allocations: 65.62 kB / 0.6802 GB, free: 15.83 MB / 410.7 MB Notification: Performance of pre-optimization done (n=299): time 7.363e-06/2.181, allocations: 0 / 0.6802 GB, free: 15.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=371): time 0.1642/2.345, allocations: 35.93 MB / 0.7153 GB, free: 4.328 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002541/2.346, allocations: 405.2 kB / 0.7157 GB, free: 3.848 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3194/2.665, allocations: 5.766 MB / 0.7214 GB, free: 83.11 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009599/2.666, allocations: 26.89 kB / 0.7214 GB, free: 83.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006826/2.673, allocations: 5.478 MB / 0.7267 GB, free: 81.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002433/2.675, allocations: 1.315 MB / 0.728 GB, free: 81.06 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001545/2.677, allocations: 1.438 kB / 0.728 GB, free: 81.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008996/2.678, allocations: 0.6758 MB / 0.7287 GB, free: 80.74 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009273/2.687, allocations: 3.355 MB / 0.7319 GB, free: 80.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01258/2.7, allocations: 8.294 MB / 0.74 GB, free: 74.35 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01154/2.711, allocations: 5.189 MB / 0.7451 GB, free: 74.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002314/2.712, allocations: 52.5 kB / 0.7452 GB, free: 74.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.04496/2.757, allocations: 13.78 MB / 0.7586 GB, free: 73.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001667/2.757, allocations: 80.25 kB / 0.7587 GB, free: 73.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002961/2.757, allocations: 172.8 kB / 0.7589 GB, free: 73.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01894/2.776, allocations: 3.689 MB / 0.7625 GB, free: 73.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01201/2.788, allocations: 1.916 MB / 0.7643 GB, free: 73.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0484/2.837, allocations: 22.23 MB / 0.786 GB, free: 65.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01166/2.848, allocations: 331.3 kB / 0.7864 GB, free: 65.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002366/2.851, allocations: 0.506 MB / 0.7869 GB, free: 65.58 MB / 426.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.003673/2.855, allocations: 0.5587 MB / 0.7874 GB, free: 65.13 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02954/2.884, allocations: 8.518 MB / 0.7957 GB, free: 62.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002448/2.887, allocations: 0.6437 MB / 0.7963 GB, free: 61.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03048/2.917, allocations: 8.499 MB / 0.8046 GB, free: 59.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.562e-05/2.917, allocations: 39.12 kB / 0.8047 GB, free: 59.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.765e-05/2.917, allocations: 19.09 kB / 0.8047 GB, free: 59.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-05/2.917, allocations: 19.58 kB / 0.8047 GB, free: 59.07 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05875/2.976, allocations: 18.14 MB / 0.8224 GB, free: 48.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.802e-05/2.976, allocations: 14.14 kB / 0.8225 GB, free: 48.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004036/2.98, allocations: 451.3 kB / 0.8229 GB, free: 48.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01795/2.998, allocations: 3.41 MB / 0.8262 GB, free: 45.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008786/2.999, allocations: 17.59 kB / 0.8262 GB, free: 45.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04758/3.047, allocations: 21.54 MB / 0.8473 GB, free: 26.87 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-05/3.047, allocations: 15.94 kB / 0.8473 GB, free: 26.86 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03704/3.084, allocations: 14.59 MB / 0.8615 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004861/3.089, allocations: 1.181 MB / 0.8627 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002595/3.091, allocations: 19.05 kB / 0.8627 GB, free: 12.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006488/3.098, allocations: 155.9 kB / 0.8628 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00165/3.1, allocations: 271.5 kB / 0.8631 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006156/3.1, allocations: 101 kB / 0.8632 GB, free: 12.33 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01031/3.111, allocations: 3.936 MB / 0.867 GB, free: 8.941 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.41e-07/3.111, allocations: 0 / 0.867 GB, free: 8.941 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01269/3.123, allocations: 1.753 MB / 0.8688 GB, free: 7.195 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 (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.3527/3.476, allocations: 17.18 MB / 0.8855 GB, free: 72.74 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02257/3.499, allocations: 8.96 MB / 0.8943 GB, free: 72.27 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-05/3.499, allocations: 2.625 kB / 0.8943 GB, free: 72.27 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01035/3.509, allocations: 3.942 MB / 0.8981 GB, free: 71.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00851/3.518, allocations: 0.8811 MB / 0.899 GB, free: 71.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06998/3.588, allocations: 17.53 MB / 0.9161 GB, free: 68.59 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02014/3.608, allocations: 5.933 MB / 0.9219 GB, free: 67.68 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01756/3.626, allocations: 2.837 MB / 0.9247 GB, free: 67.62 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008921/3.635, allocations: 3.917 MB / 0.9285 GB, free: 67.61 MB / 426.7 MB Notification: Performance of SimCode: time 1.533e-06/3.635, allocations: 0 / 0.9285 GB, free: 67.61 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.737/4.372, allocations: 151.8 MB / 1.077 GB, free: 85.39 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002293/4.372, allocations: 146.2 kB / 1.077 GB, free: 85.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.49/12.86, allocations: 0 / 1.077 GB, free: 85.2 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat