Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_Revolute2",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.644/2.644, allocations: 235 MB / 242 MB, free: 9.668 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1688/2.813, allocations: 57.2 MB / 299.2 MB, free: 360 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/3.154, allocations: 54.86 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4156/3.57, allocations: 98.46 MB / 452.5 MB, free: 32.92 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/3.57, allocations: 73.94 kB / 452.6 MB, free: 32.92 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: 2209 * Number of variables: 2209 Notification: Performance of Generate backend data structure: time 0.7291/4.3, allocations: 130.7 MB / 0.5696 GB, free: 15.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/4.3, allocations: 8 kB / 0.5696 GB, free: 15.19 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05693/4.357, allocations: 5.591 MB / 0.5751 GB, free: 9.578 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05209/4.409, allocations: 8.671 MB / 0.5836 GB, free: 0.8438 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007934/4.41, allocations: 184 kB / 0.5837 GB, free: 0.6641 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005982/4.416, allocations: 347.8 kB / 0.5841 GB, free: 332 kB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05668/4.472, allocations: 10.94 MB / 0.5947 GB, free: 5.371 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07295/4.545, allocations: 14.09 MB / 0.6085 GB, free: 6.566 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007184/4.546, allocations: 63.39 kB / 0.6086 GB, free: 6.504 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005073/4.551, allocations: 24 kB / 0.6086 GB, free: 6.48 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008857/4.56, allocations: 1.808 MB / 0.6103 GB, free: 4.668 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4453/5.006, allocations: 54.9 MB / 0.664 GB, free: 109.3 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0137/5.019, allocations: 5.781 MB / 0.6696 GB, free: 109.3 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01243/5.032, allocations: 5.142 MB / 0.6746 GB, free: 109.3 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05154/5.083, allocations: 18.26 MB / 0.6925 GB, free: 99.32 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.262e-05/5.084, allocations: 63.2 kB / 0.6925 GB, free: 99.26 MB / 474.7 MB Notification: Performance of pre-optimization done (n=336): time 7.854e-06/5.084, allocations: 0 / 0.6925 GB, free: 99.26 MB / 474.7 MB Notification: Performance of matching and sorting (n=389): time 0.1925/5.276, allocations: 34.04 MB / 0.7258 GB, free: 88.43 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/5.276, allocations: 111.8 kB / 0.7259 GB, free: 88.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01736/5.294, allocations: 3.774 MB / 0.7295 GB, free: 85.07 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001656/5.295, allocations: 25.7 kB / 0.7296 GB, free: 85.04 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005101/5.301, allocations: 3.741 MB / 0.7332 GB, free: 82.06 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004263/5.305, allocations: 1.357 MB / 0.7346 GB, free: 80.83 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002594/5.308, allocations: 0 / 0.7346 GB, free: 80.83 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009986/5.309, allocations: 0.6548 MB / 0.7352 GB, free: 80.27 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01261/5.321, allocations: 3.901 MB / 0.739 GB, free: 76.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01751/5.339, allocations: 7.915 MB / 0.7467 GB, free: 67.64 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01694/5.356, allocations: 5.613 MB / 0.7522 GB, free: 63.15 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001684/5.356, allocations: 40 kB / 0.7523 GB, free: 63.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=1065) (initialization): time 0.05976/5.416, allocations: 13.35 MB / 0.7653 GB, free: 52.22 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/5.416, allocations: 4 kB / 0.7653 GB, free: 52.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003375/5.416, allocations: 140 kB / 0.7654 GB, free: 52.08 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02312/5.439, allocations: 2.436 MB / 0.7678 GB, free: 50.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02345/5.463, allocations: 1.91 MB / 0.7697 GB, free: 48.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04092/5.504, allocations: 12.46 MB / 0.7818 GB, free: 37.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01305/5.517, allocations: 261.4 kB / 0.7821 GB, free: 37.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002845/5.52, allocations: 461.6 kB / 0.7825 GB, free: 37.22 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 639 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (968): * Single equations (assignments): 960 * Array equations: 6 * 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: 2 {(6,69.4%) 32,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004118/5.524, allocations: 469.7 kB / 0.783 GB, free: 36.75 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002344/5.526, allocations: 454.2 kB / 0.7834 GB, free: 36.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04456/5.571, allocations: 9.553 MB / 0.7927 GB, free: 28.66 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002031/5.571, allocations: 55.61 kB / 0.7928 GB, free: 28.61 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.524e-05/5.571, allocations: 8 kB / 0.7928 GB, free: 28.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-05/5.572, allocations: 19.41 kB / 0.7928 GB, free: 28.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08789/5.659, allocations: 17.7 MB / 0.8101 GB, free: 14.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.275e-05/5.66, allocations: 4 kB / 0.8101 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009083/5.669, allocations: 0.6455 MB / 0.8107 GB, free: 13.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01716/5.686, allocations: 2.202 MB / 0.8129 GB, free: 12.12 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001281/5.687, allocations: 12 kB / 0.8129 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03327/5.72, allocations: 11.37 MB / 0.824 GB, free: 0.5078 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-05/5.721, allocations: 8 kB / 0.824 GB, free: 0.5 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2425/5.963, allocations: 14.6 MB / 0.8383 GB, free: 117.5 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.06808/6.031, allocations: 20.03 MB / 0.8578 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005818/6.037, allocations: 1.117 MB / 0.8589 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002751/6.04, allocations: 10.53 kB / 0.8589 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009205/6.049, allocations: 144.9 kB / 0.8591 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001925/6.051, allocations: 179.6 kB / 0.8592 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001012/6.052, allocations: 98.94 kB / 0.8593 GB, free: 115.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.009616/6.062, allocations: 2.548 MB / 0.8618 GB, free: 115.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0361/6.098, allocations: 1.439 MB / 0.8632 GB, free: 115.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (306): * Single equations (assignments): 298 * Array equations: 6 * 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: 2 {(6,69.4%) 29,(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00818/6.106, allocations: 167.2 kB / 0.8634 GB, free: 115.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04224/6.148, allocations: 9.403 MB / 0.8726 GB, free: 115.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.709e-05/6.149, allocations: 0 / 0.8726 GB, free: 115.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01577/6.164, allocations: 3.964 MB / 0.8764 GB, free: 114.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00632/6.171, allocations: 472.9 kB / 0.8769 GB, free: 114.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05564/6.226, allocations: 12.97 MB / 0.8895 GB, free: 110.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02415/6.251, allocations: 5.097 MB / 0.8945 GB, free: 108.9 MB / 474.7 MB Notification: Performance of SimCode: time 2.324e-06/6.251, allocations: 0 / 0.8945 GB, free: 108.9 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat