Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.61/1.61, allocations: 194.9 MB / 202.6 MB, free: 6.891 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1976/1.808, allocations: 46.82 MB / 249.4 MB, free: 5.344 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/1.895, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2977/2.193, allocations: 92.02 MB / 385.9 MB, free: 4.508 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/2.193, allocations: 94.09 kB / 386 MB, free: 4.488 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.4611/2.655, allocations: 107.9 MB / 493.9 MB, free: 9.426 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/2.655, allocations: 8 kB / 493.9 MB, free: 9.418 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05293/2.708, allocations: 6.563 MB / 0.4888 GB, free: 2.832 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1587/2.866, allocations: 6.88 MB / 0.4955 GB, free: 107.2 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002583/2.867, allocations: 173.2 kB / 0.4957 GB, free: 107.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002231/2.869, allocations: 328.1 kB / 0.496 GB, free: 107.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01955/2.889, allocations: 7.798 MB / 0.5036 GB, free: 107.1 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02658/2.915, allocations: 11.55 MB / 0.5149 GB, free: 104.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002762/2.915, allocations: 78.97 kB / 0.5149 GB, free: 104.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001176/2.917, allocations: 36.31 kB / 0.515 GB, free: 104.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002031/2.919, allocations: 1.2 MB / 0.5162 GB, free: 104.1 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08162/3, allocations: 57.18 MB / 0.572 GB, free: 67.51 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007015/3.007, allocations: 3.621 MB / 0.5755 GB, free: 65.61 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004897/3.012, allocations: 2.569 MB / 0.578 GB, free: 64.47 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01823/3.031, allocations: 7.991 MB / 0.5858 GB, free: 60.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/3.031, allocations: 57.38 kB / 0.5859 GB, free: 60.14 MB / 394.7 MB Notification: Performance of pre-optimization done (n=192): time 5.541e-06/3.031, allocations: 0 / 0.5859 GB, free: 60.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=218): time 0.0637/3.094, allocations: 18.05 MB / 0.6035 GB, free: 52.49 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.039e-05/3.095, allocations: 207.1 kB / 0.6037 GB, free: 52.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007884/3.102, allocations: 3.715 MB / 0.6073 GB, free: 49.62 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004858/3.103, allocations: 25.7 kB / 0.6074 GB, free: 49.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002269/3.105, allocations: 3.462 MB / 0.6108 GB, free: 46.48 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001157/3.106, allocations: 0.8042 MB / 0.6115 GB, free: 45.76 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000472/3.107, allocations: 0 / 0.6115 GB, free: 45.76 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003965/3.107, allocations: 0.597 MB / 0.6121 GB, free: 45.24 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004825/3.112, allocations: 2.172 MB / 0.6142 GB, free: 43.29 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006798/3.119, allocations: 6.253 MB / 0.6203 GB, free: 35.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008113/3.127, allocations: 3.697 MB / 0.624 GB, free: 32.28 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.46e-05/3.127, allocations: 48 kB / 0.624 GB, free: 32.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=887) (initialization): time 0.0229/3.15, allocations: 8.148 MB / 0.632 GB, free: 25.12 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/3.15, allocations: 4 kB / 0.632 GB, free: 25.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001474/3.15, allocations: 155.5 kB / 0.6321 GB, free: 24.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004753/3.155, allocations: 0.9149 MB / 0.633 GB, free: 24.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009976/3.165, allocations: 1.545 MB / 0.6345 GB, free: 22.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/3.178, allocations: 6.9 MB / 0.6413 GB, free: 16.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00799/3.186, allocations: 205.7 kB / 0.6415 GB, free: 16.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001049/3.187, allocations: 422.5 kB / 0.6419 GB, free: 15.83 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * 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 (825): * Single equations (assignments): 820 * 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.001194/3.189, allocations: 477.3 kB / 0.6423 GB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009319/3.19, allocations: 394.8 kB / 0.6427 GB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01063/3.2, allocations: 3.426 MB / 0.646 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.649e-05/3.2, allocations: 20 kB / 0.6461 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/3.2, allocations: 4 kB / 0.6461 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-05/3.2, allocations: 23 kB / 0.6461 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0232/3.224, allocations: 8.193 MB / 0.6541 GB, free: 5.414 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.749e-05/3.224, allocations: 1.688 kB / 0.6541 GB, free: 5.414 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003558/3.227, allocations: 333.3 kB / 0.6544 GB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004193/3.232, allocations: 0.6675 MB / 0.655 GB, free: 4.648 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002273/3.232, allocations: 15.89 kB / 0.6551 GB, free: 4.637 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1516/3.383, allocations: 6.065 MB / 0.661 GB, free: 94.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/3.383, allocations: 0 / 0.661 GB, free: 94.07 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01521/3.399, allocations: 6.257 MB / 0.6671 GB, free: 93.48 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01911/3.418, allocations: 8.793 MB / 0.6757 GB, free: 92.49 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002387/3.42, allocations: 0.6972 MB / 0.6764 GB, free: 92.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008613/3.421, allocations: 4.906 kB / 0.6764 GB, free: 92.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003061/3.424, allocations: 51.36 kB / 0.6764 GB, free: 92.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004036/3.425, allocations: 101.5 kB / 0.6765 GB, free: 92.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/3.425, allocations: 58.73 kB / 0.6766 GB, free: 92.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.005407/3.43, allocations: 2.533 MB / 0.679 GB, free: 92.22 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008891/3.439, allocations: 1.014 MB / 0.68 GB, free: 92.22 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (169): * Single equations (assignments): 164 * 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.0006217/3.44, allocations: 154.8 kB / 0.6802 GB, free: 92.13 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0128/3.453, allocations: 5.43 MB / 0.6855 GB, free: 91.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/3.453, allocations: 0 / 0.6855 GB, free: 91.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00479/3.458, allocations: 1.867 MB / 0.6873 GB, free: 91.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00368/3.461, allocations: 439.3 kB / 0.6877 GB, free: 91.68 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02676/3.488, allocations: 9.34 MB / 0.6968 GB, free: 89.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009742/3.498, allocations: 4.41 MB / 0.7012 GB, free: 89.09 MB / 394.7 MB Notification: Performance of SimCode: time 2.024e-06/3.498, allocations: 0 / 0.7012 GB, free: 89.09 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat