Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.688/1.688, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2361/1.925, allocations: 46.83 MB / 249.4 MB, free: 5.285 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08889/2.013, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2876/2.301, allocations: 74.96 MB / 368.9 MB, free: 7.082 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/2.301, allocations: 70.8 kB / 368.9 MB, free: 7.082 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.04374/2.345, allocations: 9.483 MB / 378.4 MB, free: 5.492 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/2.345, allocations: 7.75 kB / 378.4 MB, free: 5.492 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004965/2.346, allocations: 50.91 kB / 378.5 MB, free: 5.469 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004738/2.346, allocations: 275.8 kB / 378.7 MB, free: 5.223 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/2.346, allocations: 83.08 kB / 378.8 MB, free: 5.152 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.987e-05/2.347, allocations: 15.75 kB / 378.8 MB, free: 5.152 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009516/2.347, allocations: 361 kB / 379.2 MB, free: 5.098 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000731/2.348, allocations: 322.2 kB / 379.5 MB, free: 4.965 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/2.348, allocations: 3.938 kB / 379.5 MB, free: 4.965 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.194e-05/2.348, allocations: 3.906 kB / 379.5 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/2.348, allocations: 7.812 kB / 379.5 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00258/2.351, allocations: 1.102 MB / 380.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006376/2.352, allocations: 258.1 kB / 380.9 MB, free: 4.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003831/2.352, allocations: 148.1 kB / 381 MB, free: 4.238 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.221e-05/2.352, allocations: 3.875 kB / 381 MB, free: 4.238 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/2.352, allocations: 38.38 kB / 381.1 MB, free: 4.199 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 3.076e-06/2.352, allocations: 0 / 381.1 MB, free: 4.199 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003731/2.356, allocations: 1.224 MB / 382.3 MB, free: 19.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.61e-05/2.356, allocations: 92.55 kB / 382.4 MB, free: 19.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/2.356, allocations: 183.7 kB / 382.6 MB, free: 19.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.939e-05/2.356, allocations: 29.69 kB / 382.6 MB, free: 19.33 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.521e-05/2.356, allocations: 131.1 kB / 382.7 MB, free: 19.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/2.357, allocations: 142.2 kB / 382.9 MB, free: 19.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.914e-05/2.357, allocations: 0 / 382.9 MB, free: 19.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/2.357, allocations: 335.6 kB / 383.2 MB, free: 18.78 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003938/2.357, allocations: 138.5 kB / 383.3 MB, free: 18.78 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004329/2.358, allocations: 194.1 kB / 383.5 MB, free: 18.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004977/2.358, allocations: 136.2 kB / 383.6 MB, free: 18.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/2.358, allocations: 0 / 383.6 MB, free: 18.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001441/2.36, allocations: 484.9 kB / 384.1 MB, free: 18.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/2.36, allocations: 7.875 kB / 384.1 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/2.36, allocations: 3.938 kB / 384.1 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/2.361, allocations: 234.7 kB / 384.4 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004835/2.361, allocations: 54.55 kB / 384.4 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005009/2.366, allocations: 2.408 MB / 386.8 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005696/2.367, allocations: 27.56 kB / 386.8 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.621e-05/2.367, allocations: 18.31 kB / 386.9 MB, free: 17 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * 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: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002304/2.367, allocations: 115.7 kB / 387 MB, free: 16.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/2.367, allocations: 27.28 kB / 387 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/2.367, allocations: 39.2 kB / 387 MB, free: 16.87 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/2.368, allocations: 3.75 kB / 387 MB, free: 16.87 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/2.368, allocations: 4 kB / 387 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/2.368, allocations: 3.984 kB / 387.1 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002474/2.37, allocations: 0.94 MB / 388 MB, free: 16.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/2.37, allocations: 3.938 kB / 388 MB, free: 16.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004767/2.371, allocations: 54.45 kB / 388 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/2.372, allocations: 220.9 kB / 388.3 MB, free: 16.38 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.997e-05/2.372, allocations: 11.39 kB / 388.3 MB, free: 16.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00475/2.376, allocations: 2.337 MB / 390.6 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/2.376, allocations: 0 / 390.6 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001828/2.378, allocations: 0.7211 MB / 391.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002384/2.381, allocations: 1.288 MB / 392.6 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002586/2.381, allocations: 139.3 kB / 392.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/2.381, allocations: 3.719 kB / 392.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005729/2.382, allocations: 27.16 kB / 392.8 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/2.382, allocations: 41.61 kB / 392.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.964e-05/2.382, allocations: 18.73 kB / 392.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001968/2.382, allocations: 148.1 kB / 393 MB, free: 13.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001812/2.384, allocations: 123 kB / 393.1 MB, free: 13.81 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * 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: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003211/2.384, allocations: 145 kB / 393.3 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001324/2.386, allocations: 493.5 kB / 393.7 MB, free: 13.56 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/2.386, allocations: 0 / 393.7 MB, free: 13.56 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007746/2.386, allocations: 327.5 kB / 394.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/2.387, allocations: 19.14 kB / 394.1 MB, free: 13.42 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/2.389, allocations: 0.5236 MB / 394.6 MB, free: 13.15 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006367/2.389, allocations: 0.82 MB / 395.4 MB, free: 12.39 MB / 314.7 MB Notification: Performance of SimCode: time 1.142e-06/2.389, allocations: 0 / 395.4 MB, free: 12.39 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat