Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) [: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(ModelicaTest): time 2.201/2.201, allocations: 209.3 MB / 216.3 MB, free: 5.426 MB / 178.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1503/2.351, allocations: 51.03 MB / 267.3 MB, free: 2.305 MB / 226.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/2.621, allocations: 48.69 MB / 316 MB, free: 4.977 MB / 258.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.339/2.96, allocations: 91.15 MB / 407.1 MB, free: 31.32 MB / 338.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/2.96, allocations: 64.53 kB / 407.2 MB, free: 31.32 MB / 338.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 515 * Number of variables: 515 Notification: Performance of Generate backend data structure: time 0.223/3.183, allocations: 46.24 MB / 453.4 MB, free: 20.62 MB / 338.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/3.183, allocations: 12.19 kB / 453.4 MB, free: 20.62 MB / 338.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002306/3.186, allocations: 290.9 kB / 453.7 MB, free: 20.47 MB / 338.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003316/3.189, allocations: 0.9316 MB / 454.7 MB, free: 19.9 MB / 338.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001069/3.19, allocations: 339.3 kB / 455 MB, free: 19.68 MB / 338.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001003/3.191, allocations: 143.2 kB / 455.1 MB, free: 19.66 MB / 338.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00895/3.2, allocations: 2.024 MB / 457.1 MB, free: 19.42 MB / 338.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008765/3.209, allocations: 1.951 MB / 459.1 MB, free: 18.85 MB / 338.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002597/3.209, allocations: 24.34 kB / 459.1 MB, free: 18.84 MB / 338.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007525/3.21, allocations: 0 / 459.1 MB, free: 18.84 MB / 338.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001063/3.21, allocations: 58.05 kB / 459.2 MB, free: 18.83 MB / 338.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02694/3.237, allocations: 5.836 MB / 465 MB, free: 15.47 MB / 338.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004459/3.242, allocations: 1.388 MB / 466.4 MB, free: 14.18 MB / 338.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003605/3.245, allocations: 1.089 MB / 467.5 MB, free: 13.08 MB / 338.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000316/3.246, allocations: 38.38 kB / 467.5 MB, free: 13.04 MB / 338.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.087e-05/3.246, allocations: 72.75 kB / 467.6 MB, free: 12.96 MB / 338.8 MB Notification: Performance of pre-optimization done (n=260): time 5.541e-06/3.246, allocations: 0 / 467.6 MB, free: 12.96 MB / 338.8 MB Notification: Performance of matching and sorting (n=317): time 0.0314/3.277, allocations: 9.349 MB / 477 MB, free: 3.227 MB / 338.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.765e-05/3.277, allocations: 243.5 kB / 477.2 MB, free: 2.938 MB / 338.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00233/3.28, allocations: 0.7299 MB / 477.9 MB, free: 2.191 MB / 338.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001191/3.281, allocations: 37.7 kB / 478 MB, free: 2.148 MB / 338.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000906/3.282, allocations: 0.5219 MB / 478.5 MB, free: 1.617 MB / 338.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002552/3.284, allocations: 1.028 MB / 479.5 MB, free: 0.5742 MB / 338.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009185/3.285, allocations: 0 / 479.5 MB, free: 0.5742 MB / 338.8 MB Notification: Performance of setup shared object (initialization): time 0.0004478/3.286, allocations: 416.2 kB / 479.9 MB, free: 164 kB / 338.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00608/3.292, allocations: 0.9393 MB / 480.9 MB, free: 15.21 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004761/3.297, allocations: 1.3 MB / 482.1 MB, free: 13.8 MB / 354.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003909/3.301, allocations: 0.952 MB / 483.1 MB, free: 12.85 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-05/3.301, allocations: 4 kB / 483.1 MB, free: 12.84 MB / 354.8 MB Notification: Performance of matching and sorting (n=384) (initialization): time 0.01269/3.314, allocations: 3.143 MB / 486.2 MB, free: 9.676 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/3.314, allocations: 8 kB / 486.3 MB, free: 9.668 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.112e-05/3.314, allocations: 15.84 kB / 486.3 MB, free: 9.652 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004537/3.318, allocations: 1.162 MB / 487.4 MB, free: 8.477 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006533/3.325, allocations: 0.6944 MB / 488.1 MB, free: 7.781 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01612/3.341, allocations: 7.044 MB / 495.2 MB, free: 444 kB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004638/3.346, allocations: 243.8 kB / 495.4 MB, free: 200 kB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001147/3.347, allocations: 127.9 kB / 495.5 MB, free: 72 kB / 354.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.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: brake.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: 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: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.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: 35 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (315): * Single equations (assignments): 310 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001482/3.349, allocations: 181.5 kB / 495.7 MB, free: 15.89 MB / 370.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001314/3.35, allocations: 189.8 kB / 495.9 MB, free: 15.7 MB / 370.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002821/3.353, allocations: 0.5506 MB / 496.4 MB, free: 15.14 MB / 370.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-05/3.353, allocations: 32 kB / 496.5 MB, free: 15.11 MB / 370.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-05/3.353, allocations: 4 kB / 496.5 MB, free: 15.11 MB / 370.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-05/3.353, allocations: 15.94 kB / 496.5 MB, free: 15.09 MB / 370.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0277/3.381, allocations: 6.695 MB / 0.4914 GB, free: 8.219 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.033e-05/3.381, allocations: 8 kB / 0.4914 GB, free: 8.211 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006944/3.388, allocations: 0.6595 MB / 0.4921 GB, free: 7.551 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004913/3.393, allocations: 1.146 MB / 0.4932 GB, free: 6.383 MB / 370.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008069/3.394, allocations: 63.91 kB / 0.4932 GB, free: 6.32 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01829/3.412, allocations: 9.566 MB / 0.5026 GB, free: 12.2 MB / 386.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.499e-05/3.412, allocations: 11.94 kB / 0.5026 GB, free: 12.19 MB / 386.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01801/3.43, allocations: 5.174 MB / 0.5076 GB, free: 6.645 MB / 386.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02197/3.452, allocations: 6.915 MB / 0.5144 GB, free: 15.35 MB / 402.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00229/3.455, allocations: 0.5062 MB / 0.5149 GB, free: 14.82 MB / 402.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001062/3.456, allocations: 39.92 kB / 0.5149 GB, free: 14.78 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004638/3.46, allocations: 235.8 kB / 0.5151 GB, free: 14.55 MB / 402.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001547/3.462, allocations: 353.2 kB / 0.5155 GB, free: 14.21 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005698/3.462, allocations: 123.9 kB / 0.5156 GB, free: 14.09 MB / 402.8 MB Notification: Performance of sort global known variables: time 0.001373/3.464, allocations: 0.5418 MB / 0.5161 GB, free: 13.54 MB / 402.8 MB Notification: Performance of remove unused functions: time 0.005813/3.47, allocations: 0.5859 MB / 0.5167 GB, free: 12.95 MB / 402.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 27 (inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (252): * Single equations (assignments): 245 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001279/3.471, allocations: 242.8 kB / 0.5169 GB, free: 12.71 MB / 402.8 MB Notification: Performance of simCode: created initialization part: time 0.009156/3.48, allocations: 2.663 MB / 0.5195 GB, free: 10.02 MB / 402.8 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/3.48, allocations: 0 / 0.5195 GB, free: 10.02 MB / 402.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008971/3.489, allocations: 2.221 MB / 0.5217 GB, free: 7.746 MB / 402.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003981/3.493, allocations: 207.6 kB / 0.5219 GB, free: 7.543 MB / 402.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02444/3.518, allocations: 4.769 MB / 0.5266 GB, free: 2.617 MB / 402.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005624/3.524, allocations: 1.778 MB / 0.5283 GB, free: 0.8086 MB / 402.8 MB Notification: Performance of SimCode: time 2.053e-06/3.524, allocations: 0 / 0.5283 GB, free: 0.8086 MB / 402.8 MB