Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.709/1.709, allocations: 171.2 MB / 183.3 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.253e-05/4.274e-05, allocations: 7.984 kB / 225.1 MB, free: 2.203 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2758, allocations: 38.77 MB / 263.9 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1746/0.4504, allocations: 98.08 MB / 361.9 MB, free: 7.469 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/0.4508, allocations: 91.94 kB / 362 MB, free: 7.379 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.172/1.623, allocations: 182.4 MB / 0.5317 GB, free: 32.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.623, allocations: 0 / 0.5317 GB, free: 32.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0008164/1.624, allocations: 184.4 kB / 0.5319 GB, free: 32.85 MB / 346.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.0388/1.663, allocations: 9.167 MB / 0.5408 GB, free: 29.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/1.663, allocations: 7.344 kB / 0.5408 GB, free: 29.54 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006868/1.67, allocations: 1.389 MB / 0.5422 GB, free: 29.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1207/1.79, allocations: 16.65 MB / 0.5584 GB, free: 28.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05054/1.841, allocations: 14.6 MB / 0.5727 GB, free: 27.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009231/1.842, allocations: 0.6248 MB / 0.5733 GB, free: 27.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006465/1.848, allocations: 0.8589 MB / 0.5741 GB, free: 27.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07779/1.926, allocations: 19.24 MB / 0.5929 GB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009981/1.927, allocations: 114.4 kB / 0.593 GB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005122/1.932, allocations: 396.6 kB / 0.5934 GB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005037/1.937, allocations: 1.594 MB / 0.595 GB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07469/2.012, allocations: 15.65 MB / 0.6103 GB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4471/2.459, allocations: 80.54 MB / 0.6889 GB, free: 39.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03727/2.497, allocations: 7.856 MB / 0.6966 GB, free: 38.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008362/2.505, allocations: 3.996 MB / 0.7005 GB, free: 38.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0355/2.541, allocations: 14.09 MB / 0.7142 GB, free: 34.99 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.852e-05/2.541, allocations: 67.22 kB / 0.7143 GB, free: 34.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 7.094e-06/2.541, allocations: 0 / 0.7143 GB, free: 34.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=408): time 0.2273/2.768, allocations: 38.07 MB / 0.7515 GB, free: 28.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001754/2.768, allocations: 412 kB / 0.7519 GB, free: 27.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01917/2.788, allocations: 6.581 MB / 0.7583 GB, free: 25.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001136/2.789, allocations: 87.83 kB / 0.7584 GB, free: 25.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00641/2.795, allocations: 5.86 MB / 0.7641 GB, free: 21.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002548/2.798, allocations: 1.484 MB / 0.7656 GB, free: 19.92 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001832/2.8, allocations: 185.1 kB / 0.7657 GB, free: 19.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001087/2.801, allocations: 0.7041 MB / 0.7664 GB, free: 19.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01099/2.812, allocations: 4.093 MB / 0.7704 GB, free: 17.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01628/2.828, allocations: 9.107 MB / 0.7793 GB, free: 6.395 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01634/2.845, allocations: 6.055 MB / 0.7852 GB, free: 1.508 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002235/2.845, allocations: 48 kB / 0.7853 GB, free: 1.461 MB / 410.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.379/3.224, allocations: 17.63 MB / 0.8025 GB, free: 81.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001599/3.224, allocations: 78.5 kB / 0.8026 GB, free: 81.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000349/3.224, allocations: 176.1 kB / 0.8027 GB, free: 81.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02772/3.252, allocations: 4.707 MB / 0.8073 GB, free: 81.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01268/3.265, allocations: 1.963 MB / 0.8092 GB, free: 81.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06866/3.334, allocations: 25.12 MB / 0.8338 GB, free: 78.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01292/3.347, allocations: 0.5329 MB / 0.8343 GB, free: 78.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00242/3.349, allocations: 0.5153 MB / 0.8348 GB, free: 78.49 MB / 410.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.004142/3.353, allocations: 0.7982 MB / 0.8356 GB, free: 77.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002565/3.356, allocations: 0.7138 MB / 0.8363 GB, free: 77.96 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04317/3.399, allocations: 10.86 MB / 0.8469 GB, free: 74.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-05/3.399, allocations: 50.44 kB / 0.8469 GB, free: 74.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-05/3.399, allocations: 22.62 kB / 0.8469 GB, free: 74.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001047/3.399, allocations: 23.06 kB / 0.847 GB, free: 74.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1209/3.52, allocations: 23.71 MB / 0.8701 GB, free: 65.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001114/3.52, allocations: 6.688 kB / 0.8701 GB, free: 65.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007556/3.528, allocations: 0.5178 MB / 0.8706 GB, free: 64.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02688/3.555, allocations: 4.15 MB / 0.8747 GB, free: 61.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001312/3.556, allocations: 77.02 kB / 0.8748 GB, free: 61.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07961/3.636, allocations: 21.84 MB / 0.8961 GB, free: 43.05 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-05/3.636, allocations: 11.94 kB / 0.8961 GB, free: 43.04 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05097/3.687, allocations: 17.5 MB / 0.9132 GB, free: 27.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005695/3.693, allocations: 1.372 MB / 0.9145 GB, free: 26.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002797/3.696, allocations: 78.77 kB / 0.9146 GB, free: 26.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007649/3.703, allocations: 250.7 kB / 0.9148 GB, free: 26.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001766/3.705, allocations: 281.3 kB / 0.9151 GB, free: 25.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008126/3.706, allocations: 115.2 kB / 0.9152 GB, free: 25.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0134/3.719, allocations: 4.735 MB / 0.9198 GB, free: 21.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.92e-07/3.72, allocations: 0 / 0.9198 GB, free: 21.56 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0143/3.734, allocations: 2.195 MB / 0.922 GB, free: 19.38 MB / 410.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.3709/4.105, allocations: 19.75 MB / 0.9413 GB, free: 76.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02518/4.13, allocations: 10.45 MB / 0.9515 GB, free: 76.22 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.606e-05/4.13, allocations: 3.469 kB / 0.9515 GB, free: 76.22 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01083/4.141, allocations: 4.358 MB / 0.9557 GB, free: 76 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009416/4.15, allocations: 1.047 MB / 0.9568 GB, free: 75.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07784/4.228, allocations: 20.83 MB / 0.9771 GB, free: 72.49 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01646/4.245, allocations: 6.564 MB / 0.9835 GB, free: 71.57 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.01501/4.26, allocations: 2.939 MB / 0.9864 GB, free: 71.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0104/4.27, allocations: 4.271 MB / 0.9906 GB, free: 68.59 MB / 410.7 MB Notification: Performance of SimCode: time 1.443e-06/4.27, allocations: 0 / 0.9906 GB, free: 68.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7088/4.979, allocations: 178.1 MB / 1.165 GB, free: 51.52 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002146/4.979, allocations: 193.4 kB / 1.165 GB, free: 51.29 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.681/14.66, allocations: 2.438 kB / 1.165 GB, free: 51.29 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat