Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.338/2.338, allocations: 209.4 MB / 216.9 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.676e-05/2.675e-05, allocations: 0 / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1027, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4308/0.5335, allocations: 94.74 MB / 411 MB, free: 13.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.5339, allocations: 86.38 kB / 411.1 MB, free: 13.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7298/1.264, allocations: 103.9 MB / 0.5029 GB, free: 83.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.264, allocations: 0 / 0.5029 GB, free: 83.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004322/1.264, allocations: 108.3 kB / 0.503 GB, free: 83.24 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: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.02212/1.286, allocations: 5.266 MB / 0.5082 GB, free: 81.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/1.286, allocations: 7.5 kB / 0.5082 GB, free: 81.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05003/1.336, allocations: 6.899 MB / 0.5149 GB, free: 80.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02547/1.362, allocations: 6.853 MB / 0.5216 GB, free: 79.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004058/1.362, allocations: 173.8 kB / 0.5218 GB, free: 79.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002824/1.365, allocations: 327.8 kB / 0.5221 GB, free: 79.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01871/1.384, allocations: 7.217 MB / 0.5291 GB, free: 79.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03031/1.414, allocations: 11.15 MB / 0.54 GB, free: 74.19 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003806/1.415, allocations: 72.84 kB / 0.5401 GB, free: 74.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002544/1.417, allocations: 41.28 kB / 0.5401 GB, free: 74.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002549/1.42, allocations: 1.13 MB / 0.5412 GB, free: 73.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0812/1.501, allocations: 55.34 MB / 0.5953 GB, free: 28.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006507/1.508, allocations: 3.393 MB / 0.5986 GB, free: 25.04 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004364/1.512, allocations: 2.174 MB / 0.6007 GB, free: 23.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006015/1.513, allocations: 337.1 kB / 0.601 GB, free: 22.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.476e-05/1.513, allocations: 47.88 kB / 0.6011 GB, free: 22.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=200): time 6.242e-06/1.513, allocations: 4 kB / 0.6011 GB, free: 22.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=227): time 0.06436/1.577, allocations: 19.59 MB / 0.6202 GB, free: 3.734 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.864e-05/1.577, allocations: 205.9 kB / 0.6204 GB, free: 3.488 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007847/1.585, allocations: 3.668 MB / 0.624 GB, free: 15.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005498/1.586, allocations: 25.7 kB / 0.624 GB, free: 15.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004239/1.59, allocations: 3.722 MB / 0.6277 GB, free: 12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001614/1.592, allocations: 0.8365 MB / 0.6285 GB, free: 11.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008471/1.593, allocations: 4 kB / 0.6285 GB, free: 11.15 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006974/1.593, allocations: 0.5998 MB / 0.6291 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006165/1.6, allocations: 2.153 MB / 0.6312 GB, free: 8.387 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01045/1.61, allocations: 6.217 MB / 0.6372 GB, free: 132 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3522/1.962, allocations: 3.632 MB / 0.6408 GB, free: 87.22 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001757/1.963, allocations: 43.94 kB / 0.6408 GB, free: 87.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.02692/1.99, allocations: 8.052 MB / 0.6487 GB, free: 86.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001366/1.99, allocations: 70.61 kB / 0.6488 GB, free: 86.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003195/1.99, allocations: 150.3 kB / 0.6489 GB, free: 86.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005203/1.995, allocations: 0.9501 MB / 0.6498 GB, free: 86.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01037/2.006, allocations: 1.577 MB / 0.6514 GB, free: 86.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01395/2.02, allocations: 7.258 MB / 0.6585 GB, free: 84.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008038/2.028, allocations: 237.7 kB / 0.6587 GB, free: 84.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001719/2.03, allocations: 410.8 kB / 0.6591 GB, free: 84.05 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (831): * Single equations (assignments): 826 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002523/2.032, allocations: 492.3 kB / 0.6595 GB, free: 83.8 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01096/2.043, allocations: 3.712 MB / 0.6632 GB, free: 83.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001383/2.045, allocations: 398.5 kB / 0.6635 GB, free: 83.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01072/2.055, allocations: 3.446 MB / 0.6669 GB, free: 83.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-05/2.056, allocations: 26 kB / 0.6669 GB, free: 83.48 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.34e-05/2.056, allocations: 7.938 kB / 0.6669 GB, free: 83.48 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.765e-05/2.056, allocations: 9.75 kB / 0.6669 GB, free: 83.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02657/2.082, allocations: 8.497 MB / 0.6752 GB, free: 81.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.519e-05/2.082, allocations: 3.625 kB / 0.6753 GB, free: 81.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003461/2.086, allocations: 365.5 kB / 0.6756 GB, free: 81.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003841/2.09, allocations: 0.6659 MB / 0.6762 GB, free: 81.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004905/2.09, allocations: 9.578 kB / 0.6763 GB, free: 81.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01144/2.102, allocations: 6.205 MB / 0.6823 GB, free: 77.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.667e-06/2.102, allocations: 7.578 kB / 0.6823 GB, free: 77.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01477/2.117, allocations: 6.262 MB / 0.6884 GB, free: 74.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002831/2.119, allocations: 0.7115 MB / 0.6891 GB, free: 74.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001469/2.121, allocations: 2.875 kB / 0.6891 GB, free: 74.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003739/2.125, allocations: 82.05 kB / 0.6892 GB, free: 74.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008505/2.126, allocations: 144.6 kB / 0.6894 GB, free: 74.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002489/2.126, allocations: 57.53 kB / 0.6894 GB, free: 74.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006592/2.132, allocations: 2.487 MB / 0.6918 GB, free: 73.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.11e-07/2.133, allocations: 3.719 kB / 0.6918 GB, free: 73.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009029/2.142, allocations: 1.031 MB / 0.6928 GB, free: 73.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01575/2.157, allocations: 7.245 MB / 0.6999 GB, free: 69.69 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01279/2.17, allocations: 5.435 MB / 0.7052 GB, free: 67.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.957e-05/2.17, allocations: 0 / 0.7052 GB, free: 67.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004651/2.175, allocations: 1.917 MB / 0.7071 GB, free: 66.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004051/2.179, allocations: 442 kB / 0.7075 GB, free: 66.62 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03808/2.217, allocations: 11.42 MB / 0.7187 GB, free: 59.11 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009241/2.226, allocations: 4.11 MB / 0.7227 GB, free: 56.04 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005897/2.232, allocations: 2.489 MB / 0.7251 GB, free: 53.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.884e-06/2.232, allocations: 4.844 kB / 0.7251 GB, free: 53.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.192/7.425, allocations: 142.1 MB / 0.8639 GB, free: 81.51 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat