Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.689/1.689, allocations: 194.9 MB / 202.6 MB, free: 6.891 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2286/1.917, allocations: 46.82 MB / 249.4 MB, free: 5.355 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09269/2.01, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.287/2.297, allocations: 75.56 MB / 369.5 MB, free: 7.016 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/2.297, allocations: 66.12 kB / 369.5 MB, free: 7.016 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.05007/2.348, allocations: 10.15 MB / 379.7 MB, free: 5.059 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/2.348, allocations: 11.72 kB / 379.7 MB, free: 5.055 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006248/2.348, allocations: 58.59 kB / 379.8 MB, free: 5.027 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006114/2.349, allocations: 281.1 kB / 380 MB, free: 4.781 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/2.349, allocations: 79.3 kB / 380.1 MB, free: 4.715 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/2.349, allocations: 15.59 kB / 380.1 MB, free: 4.715 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001164/2.35, allocations: 399.6 kB / 380.5 MB, free: 4.656 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009114/2.351, allocations: 342.8 kB / 380.8 MB, free: 4.535 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.004e-05/2.351, allocations: 7.359 kB / 380.9 MB, free: 4.531 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.194e-05/2.351, allocations: 0 / 380.9 MB, free: 4.531 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/2.351, allocations: 11.75 kB / 380.9 MB, free: 4.527 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002266/2.354, allocations: 0.8363 MB / 381.7 MB, free: 4.047 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007551/2.355, allocations: 290.2 kB / 382 MB, free: 4.008 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005177/2.355, allocations: 183.4 kB / 382.2 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.114e-05/2.355, allocations: 7.984 kB / 382.2 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/2.355, allocations: 37.53 kB / 382.2 MB, free: 3.957 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.857e-06/2.355, allocations: 4 kB / 382.2 MB, free: 3.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004819/2.36, allocations: 1.412 MB / 383.6 MB, free: 3.297 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/2.36, allocations: 85.33 kB / 383.7 MB, free: 3.203 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003057/2.36, allocations: 187.5 kB / 383.9 MB, free: 3.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001323/2.361, allocations: 25.7 kB / 383.9 MB, free: 19.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.831e-05/2.361, allocations: 127 kB / 384 MB, free: 18.95 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/2.361, allocations: 173 kB / 384.2 MB, free: 18.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.637e-05/2.361, allocations: 3.984 kB / 384.2 MB, free: 18.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001894/2.361, allocations: 343.8 kB / 384.5 MB, free: 18.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004785/2.362, allocations: 154.7 kB / 384.7 MB, free: 18.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005025/2.362, allocations: 202.4 kB / 384.9 MB, free: 18.44 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006134/2.363, allocations: 154.5 kB / 385 MB, free: 18.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/2.363, allocations: 0 / 385 MB, free: 18.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001676/2.365, allocations: 0.5145 MB / 385.6 MB, free: 18.31 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/2.365, allocations: 3.812 kB / 385.6 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/2.365, allocations: 0 / 385.6 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/2.366, allocations: 240.3 kB / 385.8 MB, free: 18.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007407/2.367, allocations: 81.28 kB / 385.9 MB, free: 18.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005659/2.372, allocations: 2.42 MB / 388.3 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007311/2.373, allocations: 30.88 kB / 388.3 MB, free: 16.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/2.373, allocations: 18.34 kB / 388.3 MB, free: 16.73 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: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002898/2.374, allocations: 124.9 kB / 388.5 MB, free: 16.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/2.374, allocations: 35 kB / 388.5 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001408/2.374, allocations: 37.31 kB / 388.5 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/2.374, allocations: 3.875 kB / 388.5 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/2.374, allocations: 4 kB / 388.5 MB, free: 16.58 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/2.374, allocations: 7.859 kB / 388.6 MB, free: 16.58 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003196/2.377, allocations: 1.094 MB / 389.7 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/2.377, allocations: 0 / 389.7 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007679/2.378, allocations: 73.61 kB / 389.7 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001156/2.379, allocations: 226.9 kB / 389.9 MB, free: 16.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/2.379, allocations: 11.8 kB / 390 MB, free: 16.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005248/2.385, allocations: 2.349 MB / 392.3 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/2.385, allocations: 3.984 kB / 392.3 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002256/2.387, allocations: 0.8261 MB / 393.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003069/2.39, allocations: 1.44 MB / 394.6 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003628/2.39, allocations: 153.4 kB / 394.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/2.391, allocations: 3.875 kB / 394.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000718/2.391, allocations: 34.41 kB / 394.8 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/2.391, allocations: 50.09 kB / 394.8 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.932e-05/2.392, allocations: 18.67 kB / 394.8 MB, free: 13.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002261/2.392, allocations: 148.8 kB / 395 MB, free: 13.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001994/2.394, allocations: 133.7 kB / 395.1 MB, free: 13.4 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.0004463/2.394, allocations: 137.1 kB / 395.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001681/2.396, allocations: 0.5403 MB / 395.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/2.396, allocations: 0 / 395.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/2.397, allocations: 371.9 kB / 396.1 MB, free: 13 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005621/2.398, allocations: 19.45 kB / 396.2 MB, free: 13 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002454/2.4, allocations: 0.607 MB / 396.8 MB, free: 12.69 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007986/2.401, allocations: 0.8316 MB / 397.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of SimCode: time 1.362e-06/2.401, allocations: 1.156 kB / 397.6 MB, free: 11.93 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat