Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",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.606/2.606, allocations: 235 MB / 242 MB, free: 9.668 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1916/2.797, allocations: 57.2 MB / 299.2 MB, free: 352 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/3.112, allocations: 54.86 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.42/3.532, allocations: 101.2 MB / 455.2 MB, free: 34.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/3.532, allocations: 88.36 kB / 455.3 MB, free: 34.32 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: 1525 * Number of variables: 1525 Notification: Performance of Generate backend data structure: time 0.4722/4.004, allocations: 85.78 MB / 0.5284 GB, free: 9.777 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.078e-05/4.005, allocations: 8 kB / 0.5284 GB, free: 9.77 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02935/4.034, allocations: 1.827 MB / 0.5302 GB, free: 7.934 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02206/4.056, allocations: 4.559 MB / 0.5347 GB, free: 3.309 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003742/4.056, allocations: 136 kB / 0.5348 GB, free: 3.176 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00265/4.059, allocations: 251.9 kB / 0.535 GB, free: 2.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02252/4.082, allocations: 6.599 MB / 0.5415 GB, free: 12.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03973/4.121, allocations: 9.805 MB / 0.5511 GB, free: 1.516 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003154/4.122, allocations: 55.47 kB / 0.5511 GB, free: 1.461 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002199/4.124, allocations: 28 kB / 0.5511 GB, free: 1.434 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003164/4.127, allocations: 1.072 MB / 0.5522 GB, free: 368 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1323/4.26, allocations: 46.11 MB / 0.5972 GB, free: 0.8867 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/4.27, allocations: 3.333 MB / 0.6005 GB, free: 13.4 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007945/4.278, allocations: 1.938 MB / 0.6024 GB, free: 11.45 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03133/4.31, allocations: 6.311 MB / 0.6085 GB, free: 4.809 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.403e-05/4.31, allocations: 47.34 kB / 0.6086 GB, free: 4.754 MB / 474.7 MB Notification: Performance of pre-optimization done (n=142): time 1.008e-05/4.31, allocations: 0 / 0.6086 GB, free: 4.754 MB / 474.7 MB Notification: Performance of matching and sorting (n=149): time 0.2428/4.553, allocations: 11.32 MB / 0.6196 GB, free: 149 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/4.553, allocations: 150.7 kB / 0.6198 GB, free: 148.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009215/4.562, allocations: 3.105 MB / 0.6228 GB, free: 148.6 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004602/4.562, allocations: 25.7 kB / 0.6228 GB, free: 148.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002917/4.565, allocations: 3.002 MB / 0.6258 GB, free: 146.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001151/4.567, allocations: 0.5827 MB / 0.6263 GB, free: 146.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009278/4.568, allocations: 3.969 kB / 0.6263 GB, free: 146.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001063/4.569, allocations: 0.5586 MB / 0.6269 GB, free: 146.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009275/4.578, allocations: 1.891 MB / 0.6287 GB, free: 146.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01272/4.591, allocations: 5.704 MB / 0.6343 GB, free: 141.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01297/4.604, allocations: 3.273 MB / 0.6375 GB, free: 141.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002198/4.604, allocations: 39.59 kB / 0.6375 GB, free: 141.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=781) (initialization): time 0.03786/4.642, allocations: 7.296 MB / 0.6447 GB, free: 140.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/4.642, allocations: 5.562 kB / 0.6447 GB, free: 140.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002522/4.642, allocations: 137.2 kB / 0.6448 GB, free: 140.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00527/4.648, allocations: 0.8607 MB / 0.6456 GB, free: 140.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01045/4.658, allocations: 1.394 MB / 0.647 GB, free: 140.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/4.669, allocations: 4.492 MB / 0.6514 GB, free: 139.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008109/4.677, allocations: 186.5 kB / 0.6516 GB, free: 139.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001645/4.679, allocations: 383.8 kB / 0.6519 GB, free: 139.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * Number of states: 0 () * Number of discrete variables: 33 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 738 * Array equations: 3 * 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: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001835/4.681, allocations: 449.7 kB / 0.6524 GB, free: 138.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009122/4.682, allocations: 308.2 kB / 0.6527 GB, free: 138.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/4.693, allocations: 2.706 MB / 0.6553 GB, free: 138.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001087/4.694, allocations: 14.12 kB / 0.6553 GB, free: 138.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.901e-05/4.694, allocations: 5.625 kB / 0.6553 GB, free: 138.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.297e-05/4.694, allocations: 14.48 kB / 0.6553 GB, free: 138.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02411/4.718, allocations: 6.216 MB / 0.6614 GB, free: 138.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.792e-05/4.718, allocations: 3.094 kB / 0.6614 GB, free: 138.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003196/4.721, allocations: 231.5 kB / 0.6616 GB, free: 138.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004974/4.726, allocations: 0.6396 MB / 0.6622 GB, free: 138.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004135/4.727, allocations: 4.562 kB / 0.6622 GB, free: 138.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01076/4.737, allocations: 4.112 MB / 0.6663 GB, free: 136.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/4.737, allocations: 0 / 0.6663 GB, free: 136.9 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01926/4.757, allocations: 5.09 MB / 0.6712 GB, free: 135 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0292/4.786, allocations: 7.177 MB / 0.6782 GB, free: 131.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003423/4.789, allocations: 0.5686 MB / 0.6788 GB, free: 131.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001832/4.791, allocations: 0 / 0.6788 GB, free: 131.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00541/4.797, allocations: 57.58 kB / 0.6789 GB, free: 131.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008543/4.798, allocations: 67.39 kB / 0.6789 GB, free: 131.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003591/4.798, allocations: 42.84 kB / 0.679 GB, free: 131.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.009136/4.807, allocations: 2.072 MB / 0.681 GB, free: 130.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01439/4.822, allocations: 0.8257 MB / 0.6818 GB, free: 130.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 114 * Array equations: 3 * 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: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001084/4.823, allocations: 135 kB / 0.6819 GB, free: 130.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01837/4.841, allocations: 4.504 MB / 0.6863 GB, free: 129.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/4.841, allocations: 0.9375 kB / 0.6863 GB, free: 129.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005708/4.847, allocations: 1.33 MB / 0.6876 GB, free: 128.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005304/4.852, allocations: 317.2 kB / 0.6879 GB, free: 128.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03281/4.885, allocations: 7.234 MB / 0.695 GB, free: 126 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01122/4.897, allocations: 3.584 MB / 0.6985 GB, free: 124.2 MB / 474.7 MB Notification: Performance of SimCode: time 2.986e-06/4.897, allocations: 0 / 0.6985 GB, free: 124.2 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat does not exist to compare? outputFormat=mat