Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Rotational_TestBearingConversion",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(ModelicaTest): time 2.758/2.758, allocations: 235.1 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.175/2.933, allocations: 57.2 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/3.216, allocations: 54.84 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4162/3.632, allocations: 95.55 MB / 449.6 MB, free: 32.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/3.633, allocations: 64.58 kB / 449.7 MB, free: 32.6 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.4035/4.036, allocations: 66.12 MB / 0.5037 GB, free: 17.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/4.036, allocations: 9.344 kB / 0.5037 GB, free: 17.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004441/4.041, allocations: 407 kB / 0.5041 GB, free: 17.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007345/4.048, allocations: 1.294 MB / 0.5054 GB, free: 16.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003062/4.051, allocations: 0.4973 MB / 0.5059 GB, free: 16.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002862/4.054, allocations: 190.7 kB / 0.506 GB, free: 16.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01354/4.068, allocations: 2.921 MB / 0.5089 GB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/4.08, allocations: 2.782 MB / 0.5116 GB, free: 11.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003114/4.081, allocations: 39.55 kB / 0.5116 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007991/4.082, allocations: 4 kB / 0.5116 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.195e-05/4.082, allocations: 71.94 kB / 0.5117 GB, free: 11.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0333/4.115, allocations: 9.2 MB / 0.5207 GB, free: 1.668 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00734/4.122, allocations: 2.248 MB / 0.5229 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006169/4.129, allocations: 1.473 MB / 0.5243 GB, free: 13.8 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009287/4.13, allocations: 220.5 kB / 0.5245 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001078/4.13, allocations: 88.36 kB / 0.5246 GB, free: 13.46 MB / 394.7 MB Notification: Performance of pre-optimization done (n=366): time 8.797e-06/4.13, allocations: 0 / 0.5246 GB, free: 13.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=429): time 0.05722/4.187, allocations: 16.03 MB / 0.5403 GB, free: 12.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003726/4.188, allocations: 0.562 MB / 0.5408 GB, free: 11.65 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003164/4.191, allocations: 1.038 MB / 0.5418 GB, free: 10.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001261/4.192, allocations: 53.69 kB / 0.5419 GB, free: 10.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001366/4.193, allocations: 0.7026 MB / 0.5426 GB, free: 9.836 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003074/4.196, allocations: 1.378 MB / 0.5439 GB, free: 8.438 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009906/4.198, allocations: 11.92 kB / 0.5439 GB, free: 8.426 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005083/4.198, allocations: 475 kB / 0.5444 GB, free: 7.953 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006134/4.204, allocations: 1.27 MB / 0.5456 GB, free: 6.676 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007424/4.212, allocations: 1.973 MB / 0.5476 GB, free: 4.426 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007112/4.219, allocations: 1.317 MB / 0.5488 GB, free: 3.117 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001022/4.219, allocations: 15.84 kB / 0.5489 GB, free: 3.102 MB / 410.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.02197/4.241, allocations: 4.243 MB / 0.553 GB, free: 14.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/4.241, allocations: 8.031 kB / 0.553 GB, free: 14.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.703e-05/4.241, allocations: 24 kB / 0.553 GB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01009/4.251, allocations: 1.692 MB / 0.5547 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008798/4.26, allocations: 0.8347 MB / 0.5555 GB, free: 12.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03792/4.298, allocations: 15.15 MB / 0.5703 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008129/4.306, allocations: 331.7 kB / 0.5706 GB, free: 11.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001779/4.308, allocations: 180 kB / 0.5708 GB, free: 11.79 MB / 442.7 MB 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: lossyGear1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear1.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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_2.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_2.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: 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: brake1.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: bearingFriction1.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: 82 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,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,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * 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: 10 * 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%) 4} * Non-linear torn systems: 8 {1 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.002407/4.311, allocations: 247.2 kB / 0.571 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002551/4.313, allocations: 272.8 kB / 0.5713 GB, free: 11.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/4.324, allocations: 1.475 MB / 0.5727 GB, free: 9.754 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001728/4.324, allocations: 44 kB / 0.5728 GB, free: 9.711 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.221e-05/4.324, allocations: 4 kB / 0.5728 GB, free: 9.707 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001827/4.324, allocations: 27.83 kB / 0.5728 GB, free: 9.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05324/4.377, allocations: 9.553 MB / 0.5821 GB, free: 15.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.594e-05/4.378, allocations: 8 kB / 0.5821 GB, free: 15.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01202/4.39, allocations: 0.7614 MB / 0.5829 GB, free: 15.15 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01202/4.402, allocations: 1.562 MB / 0.5844 GB, free: 13.55 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001519/4.403, allocations: 79.88 kB / 0.5845 GB, free: 13.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04933/4.453, allocations: 14.66 MB / 0.5988 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-05/4.453, allocations: 15.94 kB / 0.5988 GB, free: 14 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03923/4.492, allocations: 7.374 MB / 0.606 GB, free: 6.176 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2683/4.76, allocations: 9.526 MB / 0.6153 GB, free: 160.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004404/4.765, allocations: 0.6776 MB / 0.616 GB, free: 160.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002306/4.767, allocations: 44.53 kB / 0.616 GB, free: 160.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0111/4.778, allocations: 317.2 kB / 0.6163 GB, free: 160.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003406/4.782, allocations: 499.8 kB / 0.6168 GB, free: 160.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001635/4.784, allocations: 161.9 kB / 0.6169 GB, free: 160.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.003141/4.787, allocations: 0.7645 MB / 0.6177 GB, free: 160.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01295/4.8, allocations: 0.7896 MB / 0.6185 GB, free: 160.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 293 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002306/4.802, allocations: 248.4 kB / 0.6187 GB, free: 160 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01853/4.821, allocations: 4.177 MB / 0.6228 GB, free: 159.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.047e-05/4.821, allocations: 2 kB / 0.6228 GB, free: 159.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01465/4.835, allocations: 3.208 MB / 0.6259 GB, free: 158.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005349/4.841, allocations: 274.4 kB / 0.6262 GB, free: 158.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02478/4.866, allocations: 6.717 MB / 0.6327 GB, free: 156.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005065/4.871, allocations: 2.158 MB / 0.6348 GB, free: 155.7 MB / 474.7 MB Notification: Performance of SimCode: time 2.305e-06/4.871, allocations: 0 / 0.6348 GB, free: 155.7 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat