Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.416/2.416, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.772e-05/3.777e-05, allocations: 4 kB / 323.5 MB, free: 4.219 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4378/0.4378, allocations: 58.83 MB / 382.3 MB, free: 10.22 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2182/0.6561, allocations: 110.3 MB / 492.6 MB, free: 14.03 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.6564, allocations: 71.97 kB / 492.7 MB, free: 13.96 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.9459/1.602, allocations: 164.3 MB / 0.6416 GB, free: 31.96 MB / 458.8 MB Notification: Performance of FrontEnd: time 1.894e-06/1.602, allocations: 0 / 0.6416 GB, free: 31.96 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0004565/1.603, allocations: 160 kB / 0.6417 GB, free: 31.8 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.02987/1.633, allocations: 7.511 MB / 0.649 GB, free: 24.2 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/1.633, allocations: 12.03 kB / 0.6491 GB, free: 24.19 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007148/1.64, allocations: 1.541 MB / 0.6506 GB, free: 22.64 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08968/1.73, allocations: 10.05 MB / 0.6604 GB, free: 12.56 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03011/1.76, allocations: 8.43 MB / 0.6686 GB, free: 4.043 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008372/1.761, allocations: 0.6257 MB / 0.6692 GB, free: 3.414 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004857/1.766, allocations: 0.8277 MB / 0.67 GB, free: 2.586 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06682/1.833, allocations: 20.27 MB / 0.6898 GB, free: 12.86 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000581/1.833, allocations: 95.11 kB / 0.6899 GB, free: 12.76 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004536/1.838, allocations: 395.8 kB / 0.6903 GB, free: 12.38 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005145/1.843, allocations: 2.105 MB / 0.6923 GB, free: 10.26 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07432/1.917, allocations: 17.48 MB / 0.7094 GB, free: 8.766 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5082/2.426, allocations: 85.15 MB / 0.7926 GB, free: 46.55 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02614/2.452, allocations: 7.932 MB / 0.8003 GB, free: 45.29 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009778/2.462, allocations: 5.082 MB / 0.8053 GB, free: 44.46 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003718/2.462, allocations: 64.28 kB / 0.8053 GB, free: 44.46 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.105e-05/2.462, allocations: 84.53 kB / 0.8054 GB, free: 44.39 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=450): time 1.011e-05/2.462, allocations: 0 / 0.8054 GB, free: 44.39 MB / 0.4949 GB Notification: Performance of matching and sorting (n=501): time 0.1835/2.646, allocations: 37.66 MB / 0.8422 GB, free: 31.53 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/2.646, allocations: 223.5 kB / 0.8424 GB, free: 31.3 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02002/2.666, allocations: 5.702 MB / 0.848 GB, free: 26.82 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001392/2.667, allocations: 93.7 kB / 0.8481 GB, free: 26.72 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006662/2.674, allocations: 5.701 MB / 0.8536 GB, free: 21.87 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003917/2.678, allocations: 1.821 MB / 0.8554 GB, free: 20.26 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001893/2.68, allocations: 220 kB / 0.8556 GB, free: 20.04 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001458/2.681, allocations: 0.7957 MB / 0.8564 GB, free: 19.38 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01753/2.699, allocations: 4.811 MB / 0.8611 GB, free: 15.02 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02016/2.719, allocations: 10.9 MB / 0.8717 GB, free: 2.043 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02539/2.745, allocations: 7.762 MB / 0.8793 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002701/2.745, allocations: 67.75 kB / 0.8794 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1490) (initialization): time 0.0522/2.797, allocations: 16.37 MB / 0.8954 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001933/2.797, allocations: 96 kB / 0.8955 GB, free: 14.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004074/2.798, allocations: 216 kB / 0.8957 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008258/2.806, allocations: 1.714 MB / 0.8973 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01825/2.824, allocations: 2.612 MB / 0.8999 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02898/2.853, allocations: 14.01 MB / 0.9136 GB, free: 13.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01343/2.867, allocations: 0.6591 MB / 0.9142 GB, free: 13.35 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003186/2.87, allocations: 0.6331 MB / 0.9148 GB, free: 12.73 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 979 * Number of states: 0 () * Number of discrete variables: 51 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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.groundColor[3],world.groundColor[2],world.groundColor[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 (1366): * Single equations (assignments): 1353 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005102/2.875, allocations: 0.9262 MB / 0.9157 GB, free: 11.8 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002592/2.878, allocations: 0.6204 MB / 0.9164 GB, free: 11.18 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03172/2.91, allocations: 9.608 MB / 0.9257 GB, free: 3.121 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002053/2.91, allocations: 90.25 kB / 0.9258 GB, free: 3.039 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.442e-05/2.91, allocations: 8 kB / 0.9258 GB, free: 3.031 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001091/2.91, allocations: 25.94 kB / 0.9259 GB, free: 3.027 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4893/3.4, allocations: 21.55 MB / 0.9469 GB, free: 133.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.487e-05/3.4, allocations: 17.06 kB / 0.9469 GB, free: 133.7 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01074/3.41, allocations: 0.7914 MB / 0.9477 GB, free: 133.7 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01055/3.421, allocations: 1.354 MB / 0.949 GB, free: 133.6 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00154/3.423, allocations: 93.2 kB / 0.9491 GB, free: 133.6 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03351/3.456, allocations: 12.89 MB / 0.9617 GB, free: 128.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.771e-05/3.456, allocations: 18.16 kB / 0.9617 GB, free: 128.5 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04073/3.497, allocations: 17.14 MB / 0.9784 GB, free: 125.3 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00521/3.502, allocations: 1.389 MB / 0.9798 GB, free: 125 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002311/3.505, allocations: 87.34 kB / 0.9799 GB, free: 125 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00681/3.512, allocations: 308.5 kB / 0.9802 GB, free: 124.9 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001716/3.513, allocations: 305.3 kB / 0.9805 GB, free: 124.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008382/3.514, allocations: 131.3 kB / 0.9806 GB, free: 124.9 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.01029/3.525, allocations: 3.945 MB / 0.9844 GB, free: 123.5 MB / 0.5418 GB Notification: Performance of sort global known variables: time 6.82e-07/3.525, allocations: 0 / 0.9844 GB, free: 123.5 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01451/3.539, allocations: 2.041 MB / 0.9864 GB, free: 123.3 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (385): * Single equations (assignments): 372 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03859/3.578, allocations: 19.88 MB / 1.006 GB, free: 112.8 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0263/3.604, allocations: 11.63 MB / 1.017 GB, free: 107.9 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.879e-05/3.604, allocations: 4 kB / 1.017 GB, free: 107.9 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01124/3.615, allocations: 4.805 MB / 1.022 GB, free: 103.5 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006371/3.622, allocations: 0.7329 MB / 1.023 GB, free: 102.8 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06449/3.686, allocations: 20.17 MB / 1.042 GB, free: 85.23 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01675/3.703, allocations: 6.283 MB / 1.048 GB, free: 80.61 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.01873/3.722, allocations: 4.11 MB / 1.052 GB, free: 78.17 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01069/3.733, allocations: 4.084 MB / 1.056 GB, free: 74.39 MB / 0.5418 GB Notification: Performance of SimCode: time 1.823e-06/3.733, allocations: 4 kB / 1.056 GB, free: 74.39 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7658/4.498, allocations: 148.9 MB / 1.202 GB, free: 114 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001553/4.499, allocations: 180.1 kB / 1.202 GB, free: 113.8 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.322/12.82, allocations: 0 / 1.202 GB, free: 113.8 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat