Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",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.565/1.565, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2382/1.803, allocations: 46.83 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/1.888, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2909/2.179, allocations: 95.24 MB / 389.2 MB, free: 3.57 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/2.179, allocations: 82.98 kB / 389.2 MB, free: 3.559 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: 1752 * Number of variables: 1752 Notification: Performance of Generate backend data structure: time 0.4353/2.615, allocations: 98.67 MB / 487.9 MB, free: 15.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/2.615, allocations: 8 kB / 487.9 MB, free: 15.44 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03156/2.646, allocations: 4.049 MB / 492 MB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02143/2.668, allocations: 5.301 MB / 497.3 MB, free: 6.012 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003165/2.668, allocations: 160 kB / 497.4 MB, free: 5.855 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002694/2.671, allocations: 299.8 kB / 497.7 MB, free: 5.562 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1471/2.818, allocations: 7.851 MB / 0.4937 GB, free: 111.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02743/2.845, allocations: 11.55 MB / 0.505 GB, free: 108.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002364/2.846, allocations: 57.75 kB / 0.505 GB, free: 108.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001331/2.847, allocations: 34.88 kB / 0.5051 GB, free: 108.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002436/2.849, allocations: 1.15 MB / 0.5062 GB, free: 108.7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09112/2.941, allocations: 54.68 MB / 0.5596 GB, free: 77.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009148/2.95, allocations: 4.906 MB / 0.5644 GB, free: 75.54 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006757/2.957, allocations: 3.561 MB / 0.5679 GB, free: 74.15 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02558/2.982, allocations: 9.919 MB / 0.5776 GB, free: 69.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/2.982, allocations: 54.88 kB / 0.5776 GB, free: 69.2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=211): time 6.582e-06/2.982, allocations: 0 / 0.5776 GB, free: 69.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=250): time 0.1037/3.086, allocations: 25.82 MB / 0.6028 GB, free: 59.01 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.262e-05/3.086, allocations: 209.8 kB / 0.603 GB, free: 58.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00719/3.093, allocations: 3.362 MB / 0.6063 GB, free: 55.91 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008174/3.094, allocations: 25.7 kB / 0.6063 GB, free: 55.88 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002211/3.096, allocations: 3.257 MB / 0.6095 GB, free: 52.95 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001594/3.098, allocations: 0.9094 MB / 0.6104 GB, free: 52.14 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007712/3.099, allocations: 3.312 kB / 0.6104 GB, free: 52.14 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004472/3.099, allocations: 0.5994 MB / 0.611 GB, free: 51.61 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00805/3.107, allocations: 3.407 MB / 0.6143 GB, free: 48.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01044/3.118, allocations: 7.362 MB / 0.6215 GB, free: 39.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/3.129, allocations: 4.966 MB / 0.6264 GB, free: 35.71 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.905e-05/3.129, allocations: 50.89 kB / 0.6264 GB, free: 35.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=901) (initialization): time 0.03676/3.166, allocations: 11.81 MB / 0.6379 GB, free: 25.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/3.166, allocations: 8.188 kB / 0.6379 GB, free: 25.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001683/3.166, allocations: 144 kB / 0.6381 GB, free: 25.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01207/3.178, allocations: 2.175 MB / 0.6402 GB, free: 23.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01226/3.19, allocations: 1.637 MB / 0.6418 GB, free: 22.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03033/3.221, allocations: 13.92 MB / 0.6554 GB, free: 8.355 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009756/3.231, allocations: 267.5 kB / 0.6557 GB, free: 8.094 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00179/3.232, allocations: 447.8 kB / 0.6561 GB, free: 7.656 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 641 * Number of states: 0 () * Number of discrete variables: 33 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (828): * Single equations (assignments): 822 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 15,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00161/3.234, allocations: 457.1 kB / 0.6565 GB, free: 7.199 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001204/3.235, allocations: 371.2 kB / 0.6569 GB, free: 6.832 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1559/3.391, allocations: 7.448 MB / 0.6641 GB, free: 98.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001115/3.391, allocations: 22.06 kB / 0.6642 GB, free: 98.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.385e-05/3.391, allocations: 9.406 kB / 0.6642 GB, free: 98.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-05/3.392, allocations: 14.33 kB / 0.6642 GB, free: 98.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04262/3.434, allocations: 13.7 MB / 0.6776 GB, free: 98.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.064e-05/3.434, allocations: 3.281 kB / 0.6776 GB, free: 98.42 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00552/3.44, allocations: 399.1 kB / 0.6779 GB, free: 98.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01163/3.451, allocations: 1.932 MB / 0.6798 GB, free: 98.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007501/3.452, allocations: 13.12 kB / 0.6798 GB, free: 98.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02818/3.48, allocations: 12.81 MB / 0.6924 GB, free: 94.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/3.48, allocations: 3.938 kB / 0.6924 GB, free: 94.86 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03209/3.513, allocations: 11.87 MB / 0.704 GB, free: 94.28 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04044/3.553, allocations: 16.49 MB / 0.7201 GB, free: 87.92 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003449/3.557, allocations: 0.9304 MB / 0.721 GB, free: 87.58 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001307/3.558, allocations: 0 / 0.721 GB, free: 87.58 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004837/3.563, allocations: 115.2 kB / 0.7211 GB, free: 87.58 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007064/3.563, allocations: 119.1 kB / 0.7212 GB, free: 87.56 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004214/3.564, allocations: 64.23 kB / 0.7213 GB, free: 87.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.005054/3.569, allocations: 2.269 MB / 0.7235 GB, free: 86.74 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009775/3.579, allocations: 1.19 MB / 0.7246 GB, free: 86.73 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (193): * Single equations (assignments): 187 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009555/3.58, allocations: 157.6 kB / 0.7248 GB, free: 86.65 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01989/3.6, allocations: 8.368 MB / 0.733 GB, free: 83.94 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/3.6, allocations: 0 / 0.733 GB, free: 83.94 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009121/3.609, allocations: 3.545 MB / 0.7364 GB, free: 82.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003389/3.612, allocations: 358.1 kB / 0.7368 GB, free: 82.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03231/3.645, allocations: 10.2 MB / 0.7467 GB, free: 77.54 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01039/3.655, allocations: 4.179 MB / 0.7508 GB, free: 74.36 MB / 394.7 MB Notification: Performance of SimCode: time 1.542e-06/3.655, allocations: 0 / 0.7508 GB, free: 74.36 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.BevelGear1D_res.mat does not exist to compare? outputFormat=mat