Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.844/1.844, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.07e-05/3.079e-05, allocations: 0 / 255.4 MB, free: 2.645 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08983/0.08989, allocations: 44.53 MB / 300 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5159/0.6059, allocations: 103.8 MB / 403.8 MB, free: 10.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/0.6062, allocations: 89.41 kB / 403.8 MB, free: 10.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.003/1.609, allocations: 182.4 MB / 0.5725 GB, free: 63.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.609, allocations: 0 / 0.5725 GB, free: 63.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008439/1.61, allocations: 184.2 kB / 0.5726 GB, free: 63.82 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.03813/1.648, allocations: 9.153 MB / 0.5816 GB, free: 60.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/1.648, allocations: 13.72 kB / 0.5816 GB, free: 60.46 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006716/1.655, allocations: 1.397 MB / 0.583 GB, free: 60.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1179/1.773, allocations: 16.65 MB / 0.5992 GB, free: 59.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04972/1.823, allocations: 14.59 MB / 0.6135 GB, free: 56.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008302/1.824, allocations: 0.6259 MB / 0.6141 GB, free: 56.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004758/1.829, allocations: 0.8657 MB / 0.6149 GB, free: 56.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06375/1.892, allocations: 19.24 MB / 0.6337 GB, free: 38.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007902/1.893, allocations: 118.5 kB / 0.6338 GB, free: 38.01 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004033/1.897, allocations: 394.6 kB / 0.6342 GB, free: 37.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003603/1.901, allocations: 1.596 MB / 0.6358 GB, free: 36.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05143/1.952, allocations: 15.35 MB / 0.6507 GB, free: 20.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4883/2.441, allocations: 80.56 MB / 0.7294 GB, free: 38.65 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03716/2.478, allocations: 7.825 MB / 0.7371 GB, free: 37.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008659/2.487, allocations: 4.003 MB / 0.741 GB, free: 37.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03353/2.52, allocations: 14.11 MB / 0.7547 GB, free: 34.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.301e-05/2.52, allocations: 67.12 kB / 0.7548 GB, free: 34.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=308): time 7.895e-06/2.52, allocations: 3.625 kB / 0.7548 GB, free: 34.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=408): time 0.2606/2.781, allocations: 38.05 MB / 0.792 GB, free: 24.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/2.781, allocations: 414.6 kB / 0.7924 GB, free: 24.05 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01797/2.799, allocations: 6.569 MB / 0.7988 GB, free: 21.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001145/2.8, allocations: 86.83 kB / 0.7989 GB, free: 21.72 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006193/2.807, allocations: 5.865 MB / 0.8046 GB, free: 17.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002397/2.809, allocations: 1.478 MB / 0.806 GB, free: 16.24 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001395/2.81, allocations: 187.5 kB / 0.8062 GB, free: 16.1 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008019/2.811, allocations: 0.7027 MB / 0.8069 GB, free: 15.62 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01009/2.821, allocations: 4.098 MB / 0.8109 GB, free: 13.08 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01439/2.836, allocations: 9.111 MB / 0.8198 GB, free: 2.238 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01954/2.855, allocations: 6.29 MB / 0.8259 GB, free: 13.88 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002/2.856, allocations: 56 kB / 0.826 GB, free: 13.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.06285/2.919, allocations: 17.07 MB / 0.8427 GB, free: 20 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006287/2.919, allocations: 108 kB / 0.8428 GB, free: 0 / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001711/2.921, allocations: 259.9 kB / 0.843 GB, free: 0 / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3439/3.265, allocations: 4.739 MB / 0.8476 GB, free: 95.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01374/3.279, allocations: 1.961 MB / 0.8496 GB, free: 95.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06306/3.342, allocations: 25.12 MB / 0.8741 GB, free: 94.42 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01242/3.354, allocations: 0.5265 MB / 0.8746 GB, free: 94.42 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002605/3.357, allocations: 0.5177 MB / 0.8751 GB, free: 94.42 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1061): * Single equations (assignments): 1056 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004471/3.362, allocations: 0.8017 MB / 0.8759 GB, free: 94.31 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002548/3.364, allocations: 0.7065 MB / 0.8766 GB, free: 94.31 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04303/3.407, allocations: 10.87 MB / 0.8872 GB, free: 91.88 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.813e-05/3.407, allocations: 41 kB / 0.8872 GB, free: 91.88 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.542e-05/3.407, allocations: 25.59 kB / 0.8872 GB, free: 91.88 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.108e-05/3.407, allocations: 20.2 kB / 0.8873 GB, free: 91.88 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08049/3.488, allocations: 23.71 MB / 0.9104 GB, free: 83.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-05/3.488, allocations: 12.98 kB / 0.9104 GB, free: 83.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005015/3.493, allocations: 0.5196 MB / 0.9109 GB, free: 83.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02479/3.518, allocations: 4.143 MB / 0.915 GB, free: 82.23 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001159/3.519, allocations: 75.22 kB / 0.9151 GB, free: 82.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05136/3.571, allocations: 21.84 MB / 0.9364 GB, free: 72.71 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.225e-05/3.571, allocations: 14.72 kB / 0.9364 GB, free: 72.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04975/3.62, allocations: 17.5 MB / 0.9535 GB, free: 58.55 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005499/3.626, allocations: 1.365 MB / 0.9548 GB, free: 57.28 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00258/3.629, allocations: 80.75 kB / 0.9549 GB, free: 57.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007507/3.636, allocations: 247.8 kB / 0.9551 GB, free: 57.05 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001848/3.638, allocations: 286.9 kB / 0.9554 GB, free: 56.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008117/3.639, allocations: 111.8 kB / 0.9555 GB, free: 56.77 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01344/3.652, allocations: 4.727 MB / 0.9601 GB, free: 52.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.876e-06/3.652, allocations: 0 / 0.9601 GB, free: 52.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.014/3.666, allocations: 2.201 MB / 0.9623 GB, free: 50.42 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (284): * Single equations (assignments): 280 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05137/3.718, allocations: 19.43 MB / 0.9813 GB, free: 33.26 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02464/3.743, allocations: 10.44 MB / 0.9915 GB, free: 23.89 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.98e-05/3.743, allocations: 6.406 kB / 0.9915 GB, free: 23.89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01087/3.753, allocations: 4.348 MB / 0.9957 GB, free: 19.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009438/3.763, allocations: 1.056 MB / 0.9967 GB, free: 19.05 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3998/4.163, allocations: 20.82 MB / 1.017 GB, free: 92.52 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02117/4.184, allocations: 6.566 MB / 1.023 GB, free: 91.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01454/4.199, allocations: 2.943 MB / 1.026 GB, free: 91.53 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01015/4.209, allocations: 4.268 MB / 1.031 GB, free: 91.52 MB / 458.7 MB Notification: Performance of SimCode: time 1.933e-06/4.209, allocations: 0 / 1.031 GB, free: 91.52 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.727/4.936, allocations: 178.1 MB / 1.204 GB, free: 80.71 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002213/4.936, allocations: 184.4 kB / 1.205 GB, free: 80.48 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.663/14.6, allocations: 1.203 kB / 1.205 GB, free: 80.48 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat