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.75/1.75, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.411e-05/2.405e-05, allocations: 4 kB / 219.6 MB, free: 6.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2537, allocations: 38.77 MB / 258.3 MB, free: 12.27 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1691/0.4229, allocations: 97.41 MB / 355.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003203/0.4233, allocations: 87.95 kB / 355.8 MB, free: 12.31 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.188/1.611, allocations: 178.7 MB / 0.522 GB, free: 28.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.612, allocations: 2.25 kB / 0.522 GB, free: 28.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.001023/1.613, allocations: 186 kB / 0.5222 GB, free: 28.62 MB / 330.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.04951/1.662, allocations: 9.149 MB / 0.5311 GB, free: 25.31 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.718e-05/1.662, allocations: 7.812 kB / 0.5311 GB, free: 25.31 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1725/1.835, allocations: 16.65 MB / 0.5474 GB, free: 24.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06757/1.902, allocations: 14.58 MB / 0.5616 GB, free: 21.94 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008086/1.903, allocations: 276 kB / 0.5619 GB, free: 21.67 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005608/1.909, allocations: 0.5217 MB / 0.5624 GB, free: 21.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04212/1.951, allocations: 11.7 MB / 0.5738 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06308/2.014, allocations: 16.53 MB / 0.59 GB, free: 9.828 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001039/2.015, allocations: 110.7 kB / 0.5901 GB, free: 9.754 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00475/2.02, allocations: 40 kB / 0.5901 GB, free: 9.715 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005829/2.026, allocations: 1.603 MB / 0.5917 GB, free: 8.129 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4775/2.504, allocations: 78.1 MB / 0.668 GB, free: 26.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/2.515, allocations: 5.445 MB / 0.6733 GB, free: 26.28 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007801/2.523, allocations: 3.882 MB / 0.6771 GB, free: 26.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004154/2.527, allocations: 2.851 MB / 0.6798 GB, free: 23.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001107/2.527, allocations: 67.86 kB / 0.6799 GB, free: 23.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=314): time 7.534e-06/2.527, allocations: 0 / 0.6799 GB, free: 23.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=415): time 0.2238/2.751, allocations: 40.66 MB / 0.7196 GB, free: 13.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001725/2.751, allocations: 406.6 kB / 0.72 GB, free: 13.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01809/2.769, allocations: 5.922 MB / 0.7258 GB, free: 9.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001155/2.77, allocations: 33.31 kB / 0.7258 GB, free: 9.695 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0083/2.779, allocations: 5.866 MB / 0.7316 GB, free: 4.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002942/2.782, allocations: 1.456 MB / 0.733 GB, free: 3.449 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001436/2.783, allocations: 0 / 0.733 GB, free: 3.449 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.001013/2.784, allocations: 0.71 MB / 0.7337 GB, free: 2.848 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01628/2.801, allocations: 4.294 MB / 0.7379 GB, free: 0 / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01728/2.818, allocations: 9.091 MB / 0.7467 GB, free: 5.129 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0153/2.833, allocations: 5.958 MB / 0.7526 GB, free: 368 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002331/2.834, allocations: 52 kB / 0.7526 GB, free: 316 kB / 394.7 MB Notification: Performance of matching and sorting (n=1244) (initialization): time 0.3525/3.186, allocations: 16.11 MB / 0.7683 GB, free: 77.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001432/3.186, allocations: 83.09 kB / 0.7684 GB, free: 77.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003085/3.187, allocations: 180.4 kB / 0.7686 GB, free: 77.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02566/3.212, allocations: 4.55 MB / 0.773 GB, free: 77.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01298/3.225, allocations: 2.024 MB / 0.775 GB, free: 77.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06143/3.287, allocations: 23.44 MB / 0.7979 GB, free: 74.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01224/3.299, allocations: 371.5 kB / 0.7983 GB, free: 74.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002553/3.302, allocations: 0.5262 MB / 0.7988 GB, free: 74.06 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 815 * 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 (1092): * Single equations (assignments): 1087 * 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,77.8%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004055/3.306, allocations: 0.5708 MB / 0.7993 GB, free: 73.72 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03858/3.344, allocations: 10.43 MB / 0.8095 GB, free: 70.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002603/3.347, allocations: 0.6874 MB / 0.8102 GB, free: 70.12 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03941/3.386, allocations: 10.51 MB / 0.8205 GB, free: 66.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001221/3.387, allocations: 39.09 kB / 0.8205 GB, free: 66.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.507e-05/3.387, allocations: 23.47 kB / 0.8205 GB, free: 66.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001015/3.387, allocations: 24.67 kB / 0.8205 GB, free: 66.42 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07078/3.458, allocations: 22.13 MB / 0.8421 GB, free: 51.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.435e-05/3.458, allocations: 10.59 kB / 0.8422 GB, free: 51.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004924/3.463, allocations: 0.5368 MB / 0.8427 GB, free: 50.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02384/3.487, allocations: 4.046 MB / 0.8466 GB, free: 48.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00105/3.488, allocations: 16 kB / 0.8466 GB, free: 48.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05045/3.538, allocations: 20.29 MB / 0.8665 GB, free: 30.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.558e-05/3.538, allocations: 11.95 kB / 0.8665 GB, free: 30.69 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04852/3.587, allocations: 17.21 MB / 0.8833 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006464/3.593, allocations: 1.337 MB / 0.8846 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003522/3.597, allocations: 12 kB / 0.8846 GB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009578/3.607, allocations: 190 kB / 0.8848 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002501/3.609, allocations: 292.7 kB / 0.8851 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009952/3.61, allocations: 107.8 kB / 0.8852 GB, free: 13.91 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.01675/3.627, allocations: 4.139 MB / 0.8892 GB, free: 10.22 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.243e-06/3.627, allocations: 2.188 kB / 0.8892 GB, free: 10.22 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.02107/3.648, allocations: 1.938 MB / 0.8911 GB, free: 8.301 MB / 394.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 (291): * Single equations (assignments): 287 * 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.3513/3.999, allocations: 19.14 MB / 0.9098 GB, free: 74.45 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02254/4.022, allocations: 10.05 MB / 0.9196 GB, free: 74.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/4.022, allocations: 0 / 0.9196 GB, free: 74.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009961/4.032, allocations: 4.25 MB / 0.9237 GB, free: 73.99 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008692/4.041, allocations: 0.9189 MB / 0.9246 GB, free: 73.95 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08785/4.129, allocations: 20.39 MB / 0.9446 GB, free: 68.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02194/4.151, allocations: 6.573 MB / 0.951 GB, free: 66.64 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.02/4.171, allocations: 3.011 MB / 0.9539 GB, free: 66.57 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01082/4.182, allocations: 4.256 MB / 0.9581 GB, free: 63 MB / 394.7 MB Notification: Performance of SimCode: time 1.713e-06/4.182, allocations: 0 / 0.9581 GB, free: 63 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6987/4.88, allocations: 168.8 MB / 1.123 GB, free: 40.04 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002762/4.881, allocations: 151.6 kB / 1.123 GB, free: 39.85 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.348/14.23, allocations: 7.938 kB / 1.123 GB, free: 39.84 MB / 394.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