Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.965/1.965, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.077e-05/3.091e-05, allocations: 2.812 kB / 292.2 MB, free: 8.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1042, allocations: 50.41 MB / 342.6 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4633/0.5675, allocations: 98.3 MB / 440.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/0.5679, allocations: 90 kB / 441 MB, free: 11.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9801/1.548, allocations: 163.2 MB / 0.5901 GB, free: 91.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.455e-06/1.548, allocations: 0 / 0.5901 GB, free: 91.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000758/1.549, allocations: 151.7 kB / 0.5902 GB, free: 91.63 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03326/1.582, allocations: 7.869 MB / 0.5979 GB, free: 87.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/1.582, allocations: 7.375 kB / 0.5979 GB, free: 87.61 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005979/1.588, allocations: 1.203 MB / 0.5991 GB, free: 86.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1197/1.708, allocations: 16.48 MB / 0.6152 GB, free: 74.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04215/1.75, allocations: 12.54 MB / 0.6274 GB, free: 61.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005968/1.751, allocations: 0.5266 MB / 0.628 GB, free: 61.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00359/1.754, allocations: 0.724 MB / 0.6287 GB, free: 60.69 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04942/1.804, allocations: 16.19 MB / 0.6445 GB, free: 43.29 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007055/1.805, allocations: 115 kB / 0.6446 GB, free: 43.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003454/1.808, allocations: 332.8 kB / 0.6449 GB, free: 42.89 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003538/1.812, allocations: 1.49 MB / 0.6464 GB, free: 41.4 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04123/1.853, allocations: 12.47 MB / 0.6585 GB, free: 28.92 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4595/2.312, allocations: 73.27 MB / 0.7301 GB, free: 37.63 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03303/2.346, allocations: 7.399 MB / 0.7373 GB, free: 36.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007392/2.353, allocations: 3.968 MB / 0.7412 GB, free: 36.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02756/2.381, allocations: 11.51 MB / 0.7524 GB, free: 34.92 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.858e-05/2.381, allocations: 69.84 kB / 0.7525 GB, free: 34.88 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 6.913e-06/2.381, allocations: 0 / 0.7525 GB, free: 34.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.2405/2.621, allocations: 37.52 MB / 0.7891 GB, free: 26.28 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001941/2.622, allocations: 402.2 kB / 0.7895 GB, free: 25.83 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02355/2.645, allocations: 6.112 MB / 0.7955 GB, free: 23.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001202/2.646, allocations: 76.98 kB / 0.7956 GB, free: 23.72 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00786/2.654, allocations: 5.236 MB / 0.8007 GB, free: 19.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002849/2.657, allocations: 1.244 MB / 0.8019 GB, free: 18.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00162/2.659, allocations: 169.5 kB / 0.8021 GB, free: 18.64 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009486/2.66, allocations: 0.6518 MB / 0.8027 GB, free: 18.19 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01386/2.674, allocations: 3.729 MB / 0.8063 GB, free: 16.06 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0172/2.691, allocations: 8.348 MB / 0.8145 GB, free: 5.996 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01755/2.709, allocations: 5.487 MB / 0.8198 GB, free: 1.379 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001878/2.709, allocations: 46.16 kB / 0.8199 GB, free: 1.336 MB / 442.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.06595/2.775, allocations: 16.41 MB / 0.8359 GB, free: 5.082 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001415/2.775, allocations: 76 kB / 0.836 GB, free: 5.008 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002767/2.775, allocations: 160 kB / 0.8361 GB, free: 4.852 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03044/2.806, allocations: 5.491 MB / 0.8415 GB, free: 1.031 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01204/2.818, allocations: 1.8 MB / 0.8433 GB, free: 15.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4852/3.303, allocations: 28.04 MB / 0.8706 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01183/3.315, allocations: 0.5155 MB / 0.8711 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002329/3.317, allocations: 482.6 kB / 0.8716 GB, free: 100.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (947): * Single equations (assignments): 941 * 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%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003124/3.32, allocations: 0.7377 MB / 0.8723 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002113/3.323, allocations: 0.6535 MB / 0.873 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05227/3.375, allocations: 10.88 MB / 0.8836 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.903e-05/3.375, allocations: 36.98 kB / 0.8836 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.497e-05/3.375, allocations: 17.88 kB / 0.8836 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.629e-05/3.375, allocations: 23.94 kB / 0.8837 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07934/3.455, allocations: 23.87 MB / 0.907 GB, free: 92.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.356e-05/3.455, allocations: 11.16 kB / 0.907 GB, free: 92.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004122/3.459, allocations: 440.3 kB / 0.9074 GB, free: 92.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0288/3.488, allocations: 5.086 MB / 0.9124 GB, free: 91.12 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009146/3.489, allocations: 58.69 kB / 0.9124 GB, free: 91.08 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06218/3.551, allocations: 26.75 MB / 0.9385 GB, free: 78.68 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.134e-05/3.551, allocations: 10.97 kB / 0.9386 GB, free: 78.68 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04857/3.599, allocations: 16.76 MB / 0.9549 GB, free: 69.36 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002477/3.602, allocations: 0.6676 MB / 0.9556 GB, free: 68.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00278/3.605, allocations: 70.34 kB / 0.9556 GB, free: 68.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007012/3.612, allocations: 249.6 kB / 0.9559 GB, free: 68.48 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00151/3.613, allocations: 244.3 kB / 0.9561 GB, free: 68.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006658/3.614, allocations: 84.94 kB / 0.9562 GB, free: 68.25 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01228/3.626, allocations: 4.406 MB / 0.9605 GB, free: 64.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.032e-06/3.627, allocations: 0 / 0.9605 GB, free: 64.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01275/3.639, allocations: 1.968 MB / 0.9624 GB, free: 62.45 MB / 474.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.04899/3.688, allocations: 18.49 MB / 0.9805 GB, free: 46.15 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02484/3.713, allocations: 9.694 MB / 0.9899 GB, free: 36.68 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.49e-05/3.713, allocations: 4 kB / 0.9899 GB, free: 36.68 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01278/3.726, allocations: 4.357 MB / 0.9942 GB, free: 32.29 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008768/3.735, allocations: 0.9762 MB / 0.9952 GB, free: 31.36 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06032/3.795, allocations: 18.13 MB / 1.013 GB, free: 13.19 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01389/3.809, allocations: 5.688 MB / 1.018 GB, free: 7.516 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01283/3.822, allocations: 2.639 MB / 1.021 GB, free: 4.965 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008874/3.831, allocations: 3.748 MB / 1.025 GB, free: 1.215 MB / 474.7 MB Notification: Performance of SimCode: time 1.674e-06/3.831, allocations: 0 / 1.025 GB, free: 1.215 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7315/4.563, allocations: 158 MB / 1.179 GB, free: 22.11 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/4.563, allocations: 192.2 kB / 1.179 GB, free: 21.88 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.787/13.35, allocations: 0 / 1.179 GB, free: 21.88 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat