Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.658/1.658, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.802e-05/2.8e-05, allocations: 4 kB / 225.1 MB, free: 2.602 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2566, allocations: 38.76 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1701/0.4267, allocations: 98.09 MB / 361.9 MB, free: 7.621 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/0.4271, allocations: 87.95 kB / 362 MB, free: 7.535 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.344/1.771, allocations: 182.4 MB / 0.5317 GB, free: 32.7 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.771, allocations: 0 / 0.5317 GB, free: 32.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0008015/1.771, allocations: 188.6 kB / 0.5319 GB, free: 32.7 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.03791/1.809, allocations: 9.157 MB / 0.5408 GB, free: 29.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/1.809, allocations: 11.19 kB / 0.5408 GB, free: 29.38 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006629/1.816, allocations: 1.388 MB / 0.5422 GB, free: 29.28 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1227/1.939, allocations: 16.65 MB / 0.5584 GB, free: 28.67 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05048/1.989, allocations: 14.6 MB / 0.5727 GB, free: 27.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008136/1.99, allocations: 0.6266 MB / 0.5733 GB, free: 27.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004557/1.995, allocations: 0.8577 MB / 0.5741 GB, free: 27.28 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06179/2.057, allocations: 19.14 MB / 0.5928 GB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007977/2.058, allocations: 107.9 kB / 0.5929 GB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004029/2.062, allocations: 395.4 kB / 0.5933 GB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003624/2.065, allocations: 1.604 MB / 0.5949 GB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05701/2.122, allocations: 15.39 MB / 0.6099 GB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4477/2.57, allocations: 80.55 MB / 0.6886 GB, free: 39.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03808/2.608, allocations: 7.817 MB / 0.6962 GB, free: 39.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008285/2.616, allocations: 4 MB / 0.7001 GB, free: 39.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03428/2.651, allocations: 14.09 MB / 0.7139 GB, free: 35.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.597e-05/2.651, allocations: 65.66 kB / 0.7139 GB, free: 35.35 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 7.564e-06/2.651, allocations: 0 / 0.7139 GB, free: 35.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=408): time 0.2246/2.876, allocations: 38.06 MB / 0.7511 GB, free: 28.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/2.876, allocations: 407.6 kB / 0.7515 GB, free: 28.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.018/2.894, allocations: 6.581 MB / 0.7579 GB, free: 25.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001064/2.895, allocations: 89.3 kB / 0.758 GB, free: 25.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005326/2.9, allocations: 5.493 MB / 0.7634 GB, free: 21.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002385/2.903, allocations: 1.48 MB / 0.7648 GB, free: 20.45 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001481/2.904, allocations: 187.5 kB / 0.765 GB, free: 20.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0009285/2.905, allocations: 0.6948 MB / 0.7657 GB, free: 19.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01029/2.916, allocations: 4.099 MB / 0.7697 GB, free: 18.24 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01527/2.931, allocations: 9.061 MB / 0.7785 GB, free: 7.566 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01542/2.946, allocations: 6.055 MB / 0.7844 GB, free: 2.676 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002015/2.947, allocations: 48 kB / 0.7845 GB, free: 2.629 MB / 410.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.3659/3.312, allocations: 16.35 MB / 0.8005 GB, free: 80.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000147/3.313, allocations: 79.09 kB / 0.8005 GB, free: 80.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003311/3.313, allocations: 173.9 kB / 0.8007 GB, free: 80.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02649/3.339, allocations: 4.702 MB / 0.8053 GB, free: 80.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01323/3.353, allocations: 1.96 MB / 0.8072 GB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08458/3.437, allocations: 25.12 MB / 0.8317 GB, free: 78.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01344/3.451, allocations: 0.5475 MB / 0.8323 GB, free: 78.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002253/3.453, allocations: 0.5069 MB / 0.8328 GB, free: 78.15 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.002414/3.456, allocations: 0.8015 MB / 0.8335 GB, free: 77.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002084/3.458, allocations: 0.709 MB / 0.8342 GB, free: 77.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03989/3.498, allocations: 10.86 MB / 0.8448 GB, free: 73.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-05/3.498, allocations: 49.52 kB / 0.8449 GB, free: 73.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.813e-05/3.498, allocations: 21.59 kB / 0.8449 GB, free: 73.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.519e-05/3.498, allocations: 20.25 kB / 0.8449 GB, free: 73.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07912/3.577, allocations: 23.69 MB / 0.8681 GB, free: 64.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.819e-05/3.577, allocations: 10.09 kB / 0.8681 GB, free: 64.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004995/3.582, allocations: 0.5235 MB / 0.8686 GB, free: 64.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02497/3.607, allocations: 4.139 MB / 0.8726 GB, free: 62.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001048/3.608, allocations: 75.8 kB / 0.8727 GB, free: 62.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05359/3.662, allocations: 21.84 MB / 0.894 GB, free: 43.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-05/3.662, allocations: 15.94 kB / 0.894 GB, free: 43.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04953/3.712, allocations: 17.49 MB / 0.9111 GB, free: 28.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005535/3.717, allocations: 1.386 MB / 0.9125 GB, free: 27.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002606/3.72, allocations: 72 kB / 0.9125 GB, free: 27.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007812/3.728, allocations: 248.2 kB / 0.9128 GB, free: 26.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001843/3.73, allocations: 285 kB / 0.9131 GB, free: 26.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007595/3.73, allocations: 111.6 kB / 0.9132 GB, free: 26.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01289/3.743, allocations: 4.738 MB / 0.9178 GB, free: 22.42 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.303e-06/3.743, allocations: 0 / 0.9178 GB, free: 22.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01456/3.758, allocations: 2.199 MB / 0.9199 GB, free: 20.24 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.3671/4.125, allocations: 19.56 MB / 0.939 GB, free: 75.78 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02484/4.15, allocations: 10.14 MB / 0.9489 GB, free: 75.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.685e-05/4.15, allocations: 3.438 kB / 0.9489 GB, free: 75.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01088/4.161, allocations: 4.279 MB / 0.9531 GB, free: 75.31 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009744/4.171, allocations: 1.047 MB / 0.9541 GB, free: 75.28 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08039/4.251, allocations: 21.86 MB / 0.9755 GB, free: 71.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01688/4.268, allocations: 6.569 MB / 0.9819 GB, free: 70.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01047/4.279, allocations: 4.329 MB / 0.9861 GB, free: 67.59 MB / 410.7 MB Notification: Performance of SimCode: time 1.934e-06/4.279, allocations: 2.688 kB / 0.9861 GB, free: 67.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.388/10.67, allocations: 207.4 MB / 1.189 GB, free: 14.2 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat