Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_FourbarVariants_JointUSR",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.598/2.598, allocations: 235.1 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1633/2.761, allocations: 57.2 MB / 299.2 MB, free: 448 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/3.055, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4749/3.53, allocations: 110.1 MB / 464.1 MB, free: 25.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/3.53, allocations: 80.88 kB / 464.2 MB, free: 25.68 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: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.9912/4.522, allocations: 174 MB / 0.6232 GB, free: 1.52 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.08e-05/4.522, allocations: 8 kB / 0.6233 GB, free: 1.512 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3259/4.848, allocations: 6.075 MB / 0.6292 GB, free: 123 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05759/4.905, allocations: 9.907 MB / 0.6389 GB, free: 122.6 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009536/4.906, allocations: 246.5 kB / 0.6391 GB, free: 122.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006393/4.913, allocations: 465.3 kB / 0.6395 GB, free: 122.6 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05493/4.968, allocations: 13.58 MB / 0.6528 GB, free: 122.6 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07752/5.045, allocations: 18.01 MB / 0.6704 GB, free: 118.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000912/5.046, allocations: 97.47 kB / 0.6705 GB, free: 118.7 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005576/5.052, allocations: 43.03 kB / 0.6705 GB, free: 118.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006881/5.059, allocations: 2.091 MB / 0.6726 GB, free: 118.7 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2141/5.273, allocations: 80.6 MB / 0.7513 GB, free: 69.67 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01375/5.287, allocations: 5.143 MB / 0.7563 GB, free: 67.24 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0118/5.299, allocations: 4.273 MB / 0.7605 GB, free: 65.49 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07665/5.376, allocations: 20.1 MB / 0.7801 GB, free: 53.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.079e-05/5.376, allocations: 68.41 kB / 0.7802 GB, free: 53.12 MB / 490.7 MB Notification: Performance of pre-optimization done (n=340): time 9.217e-06/5.376, allocations: 0 / 0.7802 GB, free: 53.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=432): time 0.1544/5.53, allocations: 25.91 MB / 0.8055 GB, free: 31.34 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/5.53, allocations: 204.9 kB / 0.8057 GB, free: 31.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01675/5.547, allocations: 5.13 MB / 0.8107 GB, free: 26.59 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001187/5.548, allocations: 29.2 kB / 0.8107 GB, free: 26.55 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007773/5.556, allocations: 5.075 MB / 0.8157 GB, free: 21.99 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004283/5.56, allocations: 1.544 MB / 0.8172 GB, free: 20.59 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002589/5.563, allocations: 1.688 kB / 0.8172 GB, free: 20.59 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.00199/5.565, allocations: 0.7712 MB / 0.8179 GB, free: 19.95 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01607/5.581, allocations: 4.12 MB / 0.8219 GB, free: 16.21 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02198/5.603, allocations: 10.17 MB / 0.8319 GB, free: 3.781 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2591/5.862, allocations: 6.547 MB / 0.8383 GB, free: 106.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003482/5.863, allocations: 63.94 kB / 0.8383 GB, free: 106.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=1437) (initialization): time 0.06373/5.927, allocations: 14.91 MB / 0.8529 GB, free: 106.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.394e-05/5.927, allocations: 6.625 kB / 0.8529 GB, free: 106.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005334/5.927, allocations: 219.3 kB / 0.8531 GB, free: 106.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01848/5.946, allocations: 2.223 MB / 0.8553 GB, free: 106.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02117/5.967, allocations: 2.502 MB / 0.8577 GB, free: 106.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03982/6.007, allocations: 10.65 MB / 0.8681 GB, free: 105 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01726/6.024, allocations: 425.8 kB / 0.8685 GB, free: 105 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002984/6.027, allocations: 0.6201 MB / 0.8691 GB, free: 105 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 979 * Number of states: 0 () * Number of discrete variables: 46 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1336): * Single equations (assignments): 1329 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002667/6.03, allocations: 0.6238 MB / 0.8697 GB, free: 104.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002299/6.032, allocations: 0.571 MB / 0.8703 GB, free: 104.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05286/6.085, allocations: 8.109 MB / 0.8782 GB, free: 104.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002141/6.085, allocations: 54.53 kB / 0.8783 GB, free: 104.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.118e-05/6.085, allocations: 10.12 kB / 0.8783 GB, free: 104.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.931e-05/6.086, allocations: 24.22 kB / 0.8783 GB, free: 104.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08318/6.169, allocations: 17.44 MB / 0.8953 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.255e-05/6.169, allocations: 11.75 kB / 0.8953 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008816/6.178, allocations: 0.6216 MB / 0.896 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01893/6.197, allocations: 1.745 MB / 0.8977 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001057/6.198, allocations: 22.25 kB / 0.8977 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03629/6.234, allocations: 8.989 MB / 0.9065 GB, free: 101.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.967e-05/6.234, allocations: 18.16 kB / 0.9065 GB, free: 101.3 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05935/6.294, allocations: 14.38 MB / 0.9205 GB, free: 94.34 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0995/6.393, allocations: 27.39 MB / 0.9473 GB, free: 81.66 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005698/6.399, allocations: 1.143 MB / 0.9484 GB, free: 81.02 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00296/6.402, allocations: 18.39 kB / 0.9484 GB, free: 81.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008408/6.41, allocations: 141.5 kB / 0.9485 GB, free: 81.02 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001693/6.412, allocations: 213 kB / 0.9487 GB, free: 80.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001217/6.413, allocations: 126.1 kB / 0.9488 GB, free: 80.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0132/6.427, allocations: 3.439 MB / 0.9522 GB, free: 79.29 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01787/6.445, allocations: 1.678 MB / 0.9538 GB, free: 77.63 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (343): * Single equations (assignments): 336 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002121/6.447, allocations: 219.2 kB / 0.9541 GB, free: 77.45 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02874/6.476, allocations: 9.609 MB / 0.9634 GB, free: 68.66 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.13e-05/6.476, allocations: 6.094 kB / 0.9634 GB, free: 68.66 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01072/6.486, allocations: 3.303 MB / 0.9667 GB, free: 65.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006815/6.493, allocations: 0.5625 MB / 0.9672 GB, free: 65.14 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05889/6.552, allocations: 15.05 MB / 0.9819 GB, free: 51.54 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02169/6.574, allocations: 6.235 MB / 0.988 GB, free: 46.86 MB / 490.7 MB Notification: Performance of SimCode: time 1.783e-06/6.574, allocations: 0 / 0.988 GB, free: 46.86 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat