Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",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.745/1.745, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2275/1.973, allocations: 46.82 MB / 249.4 MB, free: 5.293 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/2.066, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2943/2.36, allocations: 76.94 MB / 370.8 MB, free: 7.055 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/2.36, allocations: 71.19 kB / 370.9 MB, free: 7.055 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.06035/2.421, allocations: 11.92 MB / 382.8 MB, free: 4.035 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/2.421, allocations: 7.75 kB / 382.8 MB, free: 4.035 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006969/2.421, allocations: 66.38 kB / 382.9 MB, free: 4.004 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007979/2.422, allocations: 327.5 kB / 383.2 MB, free: 3.738 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/2.422, allocations: 90.7 kB / 383.3 MB, free: 3.664 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/2.423, allocations: 23.44 kB / 383.3 MB, free: 3.664 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00158/2.424, allocations: 0.5205 MB / 383.9 MB, free: 3.594 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/2.426, allocations: 467.2 kB / 384.3 MB, free: 3.441 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.098e-05/2.426, allocations: 3.906 kB / 384.3 MB, free: 3.438 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.552e-05/2.426, allocations: 0 / 384.3 MB, free: 3.438 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/2.426, allocations: 11.66 kB / 384.3 MB, free: 3.438 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003794/2.43, allocations: 1.088 MB / 385.4 MB, free: 2.879 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009675/2.431, allocations: 366 kB / 385.8 MB, free: 2.832 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007/2.431, allocations: 267.7 kB / 386 MB, free: 2.812 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.365e-05/2.431, allocations: 8.438 kB / 386.1 MB, free: 2.812 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/2.431, allocations: 42.88 kB / 386.1 MB, free: 2.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=63): time 4.448e-06/2.432, allocations: 0 / 386.1 MB, free: 2.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.007069/2.439, allocations: 1.856 MB / 387.9 MB, free: 1.996 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/2.439, allocations: 89.48 kB / 388 MB, free: 1.898 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004579/2.439, allocations: 216.2 kB / 388.2 MB, free: 17.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001805/2.439, allocations: 36.44 kB / 388.3 MB, free: 17.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/2.439, allocations: 135.7 kB / 388.4 MB, free: 17.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002363/2.44, allocations: 224.2 kB / 388.6 MB, free: 17.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.183e-05/2.44, allocations: 3.312 kB / 388.6 MB, free: 17.46 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/2.44, allocations: 355.2 kB / 389 MB, free: 17.13 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007403/2.441, allocations: 226.8 kB / 389.2 MB, free: 17.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007301/2.441, allocations: 281 kB / 389.5 MB, free: 17.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008866/2.442, allocations: 209.3 kB / 389.7 MB, free: 17.04 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/2.442, allocations: 3.844 kB / 389.7 MB, free: 17.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002801/2.445, allocations: 0.7587 MB / 390.4 MB, free: 16.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/2.445, allocations: 3.875 kB / 390.5 MB, free: 16.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.837e-05/2.445, allocations: 3.75 kB / 390.5 MB, free: 16.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001783/2.447, allocations: 414.5 kB / 390.9 MB, free: 16.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009217/2.448, allocations: 89.84 kB / 390.9 MB, free: 16.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002385/2.45, allocations: 1.073 MB / 392 MB, free: 16.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/2.452, allocations: 83.86 kB / 392.1 MB, free: 16.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/2.452, allocations: 25.97 kB / 392.1 MB, free: 16.16 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" 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: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003967/2.452, allocations: 139.6 kB / 392.3 MB, free: 16.03 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/2.453, allocations: 38.91 kB / 392.3 MB, free: 16.01 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002781/2.455, allocations: 0.7663 MB / 393.1 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.737e-05/2.455, allocations: 11.53 kB / 393.1 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/2.455, allocations: 0 / 393.1 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/2.455, allocations: 5.266 kB / 393.1 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005682/2.461, allocations: 1.539 MB / 394.6 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/2.461, allocations: 0 / 394.6 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009598/2.462, allocations: 92.25 kB / 394.7 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001826/2.464, allocations: 390.1 kB / 395.1 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001892/2.464, allocations: 19.03 kB / 395.1 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002299/2.467, allocations: 1.033 MB / 396.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.647e-06/2.467, allocations: 1.25 kB / 396.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004102/2.471, allocations: 1.159 MB / 397.3 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005164/2.476, allocations: 1.848 MB / 399.2 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000576/2.477, allocations: 180.8 kB / 399.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/2.477, allocations: 12.17 kB / 399.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/2.478, allocations: 63.94 kB / 399.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003966/2.478, allocations: 105.5 kB / 399.5 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/2.478, allocations: 37.47 kB / 399.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003213/2.479, allocations: 177.9 kB / 399.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002017/2.481, allocations: 121 kB / 399.8 MB, free: 13.08 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005239/2.481, allocations: 151.9 kB / 400 MB, free: 12.97 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002183/2.484, allocations: 0.6082 MB / 400.6 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/2.484, allocations: 4.062 kB / 400.6 MB, free: 12.88 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/2.485, allocations: 331.7 kB / 400.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007481/2.486, allocations: 27.28 kB / 400.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/2.489, allocations: 0.7245 MB / 401.7 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000999/2.49, allocations: 0.8817 MB / 402.6 MB, free: 11.71 MB / 314.7 MB Notification: Performance of SimCode: time 1.553e-06/2.49, allocations: 0 / 402.6 MB, free: 11.71 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat