Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.998/1.998, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.624e-05/2.622e-05, allocations: 8 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.313, allocations: 44.49 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2643/0.5774, allocations: 103.1 MB / 397.3 MB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004652/0.5779, allocations: 87.94 kB / 397.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.591/2.168, allocations: 178.6 MB / 0.5626 GB, free: 30.81 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.284e-06/2.168, allocations: 1.094 kB / 0.5626 GB, free: 30.81 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.000882/2.169, allocations: 187.6 kB / 0.5627 GB, free: 30.81 MB / 378.8 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.03764/2.207, allocations: 9.151 MB / 0.5717 GB, free: 27.51 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/2.207, allocations: 11.47 kB / 0.5717 GB, free: 27.51 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1153/2.322, allocations: 16.65 MB / 0.5879 GB, free: 26.9 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04641/2.369, allocations: 14.58 MB / 0.6022 GB, free: 25.62 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004932/2.369, allocations: 274.3 kB / 0.6024 GB, free: 25.62 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004006/2.373, allocations: 0.5162 MB / 0.6029 GB, free: 25.61 MB / 378.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02832/2.402, allocations: 11.7 MB / 0.6144 GB, free: 25.56 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04206/2.444, allocations: 16.53 MB / 0.6305 GB, free: 21.96 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006145/2.445, allocations: 107.4 kB / 0.6306 GB, free: 21.94 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003195/2.448, allocations: 40.62 kB / 0.6307 GB, free: 21.94 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003405/2.451, allocations: 1.603 MB / 0.6322 GB, free: 21.93 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.14/2.591, allocations: 78.17 MB / 0.7086 GB, free: 2.324 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.334/2.925, allocations: 6.12 MB / 0.7145 GB, free: 71.76 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008041/2.933, allocations: 3.886 MB / 0.7183 GB, free: 71.71 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004153/2.938, allocations: 2.857 MB / 0.7211 GB, free: 69.35 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.552e-05/2.938, allocations: 65.22 kB / 0.7212 GB, free: 69.31 MB / 426.8 MB Notification: Performance of pre-optimization done (n=314): time 8.346e-06/2.938, allocations: 1.156 kB / 0.7212 GB, free: 69.31 MB / 426.8 MB Notification: Performance of matching and sorting (n=415): time 0.1683/3.106, allocations: 40.65 MB / 0.7609 GB, free: 64.8 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/3.106, allocations: 404.3 kB / 0.7613 GB, free: 64.36 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0152/3.122, allocations: 5.919 MB / 0.767 GB, free: 63.86 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001013/3.123, allocations: 25.7 kB / 0.7671 GB, free: 63.83 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005233/3.128, allocations: 5.552 MB / 0.7725 GB, free: 61.24 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002423/3.13, allocations: 1.452 MB / 0.7739 GB, free: 60.34 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001338/3.132, allocations: 3.781 kB / 0.7739 GB, free: 60.34 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0008255/3.133, allocations: 0.7091 MB / 0.7746 GB, free: 60.01 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009124/3.142, allocations: 3.98 MB / 0.7785 GB, free: 59.98 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01275/3.154, allocations: 9.085 MB / 0.7874 GB, free: 53.02 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01269/3.167, allocations: 5.96 MB / 0.7932 GB, free: 50.95 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000212/3.168, allocations: 49.91 kB / 0.7932 GB, free: 50.95 MB / 426.8 MB Notification: Performance of matching and sorting (n=1244) (initialization): time 0.05324/3.221, allocations: 15.72 MB / 0.8086 GB, free: 46.5 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001389/3.221, allocations: 81.5 kB / 0.8087 GB, free: 46.5 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002667/3.221, allocations: 183.3 kB / 0.8088 GB, free: 46.5 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02532/3.247, allocations: 4.557 MB / 0.8133 GB, free: 43.9 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01249/3.259, allocations: 2.02 MB / 0.8153 GB, free: 42.13 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05602/3.315, allocations: 23.43 MB / 0.8381 GB, free: 22.04 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01236/3.328, allocations: 368.6 kB / 0.8385 GB, free: 21.77 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002548/3.33, allocations: 0.5291 MB / 0.839 GB, free: 21.25 MB / 426.8 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.004037/3.334, allocations: 0.5754 MB / 0.8396 GB, free: 20.68 MB / 426.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03836/3.373, allocations: 10.44 MB / 0.8498 GB, free: 12.2 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00257/3.375, allocations: 0.6898 MB / 0.8504 GB, free: 11.5 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03972/3.415, allocations: 10.5 MB / 0.8607 GB, free: 3.254 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.933e-05/3.415, allocations: 40 kB / 0.8607 GB, free: 3.215 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.543e-05/3.415, allocations: 30.77 kB / 0.8608 GB, free: 3.191 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.974e-05/3.415, allocations: 20.28 kB / 0.8608 GB, free: 3.191 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3964/3.812, allocations: 22.15 MB / 0.8824 GB, free: 74.35 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.273e-05/3.812, allocations: 7.781 kB / 0.8824 GB, free: 74.35 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004812/3.817, allocations: 0.5358 MB / 0.8829 GB, free: 74.35 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0237/3.84, allocations: 4.04 MB / 0.8869 GB, free: 74.32 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009662/3.841, allocations: 19.66 kB / 0.8869 GB, free: 74.32 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04805/3.889, allocations: 20.29 MB / 0.9067 GB, free: 73 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.625e-05/3.89, allocations: 11.81 kB / 0.9067 GB, free: 73 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04708/3.937, allocations: 17.21 MB / 0.9235 GB, free: 68.99 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005611/3.942, allocations: 1.343 MB / 0.9248 GB, free: 68.59 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003054/3.945, allocations: 15.36 kB / 0.9249 GB, free: 68.58 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007295/3.953, allocations: 187.5 kB / 0.925 GB, free: 68.58 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001815/3.955, allocations: 287.2 kB / 0.9253 GB, free: 68.54 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007931/3.955, allocations: 115.6 kB / 0.9254 GB, free: 68.51 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.01144/3.967, allocations: 4.132 MB / 0.9295 GB, free: 67.04 MB / 442.8 MB Notification: Performance of sort global known variables: time 8.02e-07/3.967, allocations: 3.875 kB / 0.9295 GB, free: 67.04 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01461/3.982, allocations: 1.931 MB / 0.9313 GB, free: 67.04 MB / 442.8 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.04848/4.03, allocations: 19.14 MB / 0.95 GB, free: 57.6 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.02237/4.053, allocations: 10.05 MB / 0.9598 GB, free: 53.92 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/4.053, allocations: 2.062 kB / 0.9599 GB, free: 53.92 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009755/4.062, allocations: 4.252 MB / 0.964 GB, free: 52.04 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009982/4.072, allocations: 0.901 MB / 0.9649 GB, free: 51.73 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08473/4.157, allocations: 21.46 MB / 0.9858 GB, free: 35.61 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02037/4.178, allocations: 6.57 MB / 0.9923 GB, free: 30.85 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01347/4.191, allocations: 4.325 MB / 0.9965 GB, free: 26.82 MB / 442.8 MB Notification: Performance of SimCode: time 2.134e-06/4.191, allocations: 0 / 0.9965 GB, free: 26.82 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.382/10.57, allocations: 205.8 MB / 1.197 GB, free: 67.09 MB / 474.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat