Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_HeatLosses",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.827/1.827, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2463/2.073, allocations: 46.82 MB / 249.4 MB, free: 5.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09381/2.167, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3099/2.477, allocations: 82.19 MB / 376.1 MB, free: 7.043 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/2.477, allocations: 68.69 kB / 376.2 MB, free: 7.043 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.1224/2.6, allocations: 23.91 MB / 400.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/2.6, allocations: 13.38 kB / 400.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001296/2.601, allocations: 143.3 kB / 400.2 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002008/2.603, allocations: 0.5318 MB / 400.8 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006766/2.604, allocations: 169.4 kB / 400.9 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005268/2.604, allocations: 62.81 kB / 401 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004486/2.609, allocations: 1.098 MB / 402.1 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004505/2.613, allocations: 1.018 MB / 403.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000101/2.613, allocations: 11.12 kB / 403.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001769/2.614, allocations: 0 / 403.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-05/2.614, allocations: 23.53 kB / 403.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01584/2.63, allocations: 3.596 MB / 406.7 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002713/2.632, allocations: 0.6975 MB / 407.4 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002039/2.634, allocations: 0.5569 MB / 408 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002061/2.635, allocations: 24.5 kB / 408 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.135e-05/2.635, allocations: 54.19 kB / 408.1 MB, free: 10.29 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 5.159e-06/2.635, allocations: 0 / 408.1 MB, free: 10.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.01691/2.652, allocations: 3.492 MB / 411.5 MB, free: 7.523 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.619e-05/2.652, allocations: 96.98 kB / 411.6 MB, free: 7.414 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009368/2.653, allocations: 404.7 kB / 412 MB, free: 7.094 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004647/2.653, allocations: 44.44 kB / 412.1 MB, free: 7.051 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000296/2.654, allocations: 268.1 kB / 412.3 MB, free: 6.812 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009324/2.655, allocations: 477.3 kB / 412.8 MB, free: 6.406 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/2.655, allocations: 4 kB / 412.8 MB, free: 6.402 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002865/2.655, allocations: 389.6 kB / 413.2 MB, free: 6.047 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001902/2.657, allocations: 0.4953 MB / 413.7 MB, free: 5.754 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002228/2.659, allocations: 0.6094 MB / 414.3 MB, free: 5.344 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002303/2.662, allocations: 466.9 kB / 414.8 MB, free: 5.039 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.299e-05/2.662, allocations: 3.938 kB / 414.8 MB, free: 5.035 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.007054/2.669, allocations: 1.55 MB / 416.3 MB, free: 3.902 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/2.669, allocations: 4 kB / 416.3 MB, free: 3.898 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.399e-05/2.669, allocations: 11.92 kB / 416.3 MB, free: 3.887 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003409/2.672, allocations: 0.7618 MB / 417.1 MB, free: 3.305 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002611/2.675, allocations: 260.3 kB / 417.3 MB, free: 3.059 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005212/2.68, allocations: 2.041 MB / 419.4 MB, free: 1.371 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003076/2.683, allocations: 199.8 kB / 419.6 MB, free: 1.176 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004744/2.684, allocations: 57.78 kB / 419.6 MB, free: 1.129 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006309/2.684, allocations: 165.7 kB / 419.8 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004491/2.685, allocations: 90.97 kB / 419.9 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007051/2.692, allocations: 1.682 MB / 421.6 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.203e-05/2.692, allocations: 16 kB / 421.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/2.692, allocations: 0 / 421.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.334e-05/2.692, allocations: 7.969 kB / 421.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01193/2.704, allocations: 2.824 MB / 424.4 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.979e-05/2.704, allocations: 0 / 424.4 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003085/2.707, allocations: 275.8 kB / 424.7 MB, free: 12.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003364/2.711, allocations: 0.7191 MB / 425.4 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004163/2.711, allocations: 31.94 kB / 425.4 MB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004952/2.716, allocations: 1.948 MB / 427.4 MB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/2.716, allocations: 0 / 427.4 MB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00847/2.725, allocations: 2.182 MB / 429.6 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01104/2.736, allocations: 3.215 MB / 432.8 MB, free: 3.797 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/2.737, allocations: 299.8 kB / 433.1 MB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000495/2.738, allocations: 12 kB / 433.1 MB, free: 3.473 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003073/2.741, allocations: 223.8 kB / 433.3 MB, free: 3.254 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001015/2.742, allocations: 216.8 kB / 433.5 MB, free: 3.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002906/2.742, allocations: 63.94 kB / 433.6 MB, free: 2.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0008029/2.743, allocations: 322.9 kB / 433.9 MB, free: 2.664 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00291/2.746, allocations: 287.9 kB / 434.2 MB, free: 2.383 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008439/2.747, allocations: 168.4 kB / 434.3 MB, free: 2.215 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005065/2.752, allocations: 1.36 MB / 435.7 MB, free: 0.832 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/2.752, allocations: 0 / 435.7 MB, free: 0.832 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0033/2.755, allocations: 0.7281 MB / 436.4 MB, free: 112 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/2.757, allocations: 114.5 kB / 436.5 MB, free: 15.99 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01753/2.775, allocations: 2.831 MB / 439.4 MB, free: 13.11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001909/2.777, allocations: 1.171 MB / 440.5 MB, free: 11.91 MB / 346.7 MB Notification: Performance of SimCode: time 2.023e-06/2.777, allocations: 4 kB / 440.5 MB, free: 11.91 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat