Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",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(Modelica): time 1.676/1.676, allocations: 171.2 MB / 178.1 MB, free: 8.293 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2196/1.896, allocations: 41.11 MB / 219.3 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08748/1.983, allocations: 38.76 MB / 258 MB, free: 4.367 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3653/2.349, allocations: 87.97 MB / 346 MB, free: 436 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004111/2.349, allocations: 76.95 kB / 346.1 MB, free: 396 kB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.7268/3.076, allocations: 128.2 MB / 474.3 MB, free: 54.85 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/3.076, allocations: 12.56 kB / 474.3 MB, free: 54.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06119/3.137, allocations: 7.631 MB / 481.9 MB, free: 52.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03051/3.168, allocations: 7.314 MB / 489.3 MB, free: 48.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004069/3.168, allocations: 188 kB / 489.4 MB, free: 48.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003822/3.172, allocations: 355.8 kB / 489.8 MB, free: 47.94 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02689/3.199, allocations: 10.38 MB / 0.4884 GB, free: 37.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03971/3.239, allocations: 14.31 MB / 0.5024 GB, free: 22.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004019/3.239, allocations: 79.33 kB / 0.5025 GB, free: 22.01 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00333/3.243, allocations: 32 kB / 0.5025 GB, free: 21.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003199/3.246, allocations: 1.725 MB / 0.5042 GB, free: 20.26 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2705/3.516, allocations: 62.34 MB / 0.5651 GB, free: 73.17 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009185/3.526, allocations: 4.62 MB / 0.5696 GB, free: 72.52 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007427/3.533, allocations: 3.552 MB / 0.5731 GB, free: 72.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04002/3.573, allocations: 15.41 MB / 0.5881 GB, free: 68.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.101e-05/3.573, allocations: 64.12 kB / 0.5882 GB, free: 68.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=292): time 8.456e-06/3.573, allocations: 0 / 0.5882 GB, free: 68.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=342): time 0.1761/3.749, allocations: 29.1 MB / 0.6166 GB, free: 59.15 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/3.75, allocations: 212.5 kB / 0.6168 GB, free: 58.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01611/3.766, allocations: 4.347 MB / 0.621 GB, free: 57.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001268/3.767, allocations: 29.67 kB / 0.6211 GB, free: 57.28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004556/3.772, allocations: 4.166 MB / 0.6251 GB, free: 54.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002713/3.774, allocations: 1.233 MB / 0.6264 GB, free: 53.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001846/3.776, allocations: 3.469 kB / 0.6264 GB, free: 53.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.001069/3.777, allocations: 0.7007 MB / 0.627 GB, free: 52.69 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0168/3.794, allocations: 4.513 MB / 0.6314 GB, free: 51.01 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02095/3.815, allocations: 9.708 MB / 0.6409 GB, free: 40.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01963/3.835, allocations: 6.588 MB / 0.6474 GB, free: 34.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001479/3.835, allocations: 52 kB / 0.6474 GB, free: 34.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.09067/3.926, allocations: 17.64 MB / 0.6646 GB, free: 20.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/3.926, allocations: 8 kB / 0.6646 GB, free: 20.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003053/3.926, allocations: 184 kB / 0.6648 GB, free: 20.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04479/3.971, allocations: 5.332 MB / 0.67 GB, free: 17.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0149/3.986, allocations: 2.074 MB / 0.6721 GB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1897/4.176, allocations: 20.87 MB / 0.6924 GB, free: 93.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01249/4.188, allocations: 310.4 kB / 0.6927 GB, free: 93.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002643/4.191, allocations: 0.5256 MB / 0.6932 GB, free: 93.59 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (1111): * Single equations (assignments): 1103 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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 prepare postOptimizeDAE: time 0.003107/4.194, allocations: 0.5588 MB / 0.6938 GB, free: 93.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001607/4.196, allocations: 481.9 kB / 0.6942 GB, free: 93.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07892/4.275, allocations: 12 MB / 0.706 GB, free: 93.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000258/4.275, allocations: 46.61 kB / 0.706 GB, free: 93.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.643e-05/4.275, allocations: 10.53 kB / 0.706 GB, free: 93.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.039e-05/4.275, allocations: 13.88 kB / 0.706 GB, free: 93.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0932/4.368, allocations: 22.44 MB / 0.728 GB, free: 89.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.043e-05/4.369, allocations: 3.844 kB / 0.728 GB, free: 89.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006023/4.375, allocations: 0.5116 MB / 0.7285 GB, free: 89.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05532/4.43, allocations: 4.323 MB / 0.7327 GB, free: 88.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009383/4.431, allocations: 15.48 kB / 0.7327 GB, free: 88.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03896/4.47, allocations: 16.8 MB / 0.7491 GB, free: 80.42 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-05/4.47, allocations: 7.969 kB / 0.7491 GB, free: 80.42 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06595/4.536, allocations: 17.18 MB / 0.7659 GB, free: 74 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.09619/4.632, allocations: 33.24 MB / 0.7983 GB, free: 45.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004682/4.637, allocations: 1.193 MB / 0.7995 GB, free: 43.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002361/4.639, allocations: 8 kB / 0.7995 GB, free: 43.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006459/4.646, allocations: 123.8 kB / 0.7996 GB, free: 43.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001362/4.647, allocations: 157.9 kB / 0.7998 GB, free: 43.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008674/4.648, allocations: 87.98 kB / 0.7999 GB, free: 43.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.008089/4.656, allocations: 2.909 MB / 0.8027 GB, free: 40.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01245/4.669, allocations: 1.474 MB / 0.8041 GB, free: 39.27 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001322/4.67, allocations: 163.6 kB / 0.8043 GB, free: 39.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0236/4.694, allocations: 10.23 MB / 0.8143 GB, free: 29.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/4.694, allocations: 4 kB / 0.8143 GB, free: 29.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.148/4.842, allocations: 3.855 MB / 0.8181 GB, free: 104.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005081/4.847, allocations: 448.3 kB / 0.8185 GB, free: 104.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04407/4.891, allocations: 13.66 MB / 0.8318 GB, free: 102 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0222/4.913, allocations: 5.142 MB / 0.8369 GB, free: 101.2 MB / 362.7 MB Notification: Performance of SimCode: time 1.794e-06/4.913, allocations: 3.969 kB / 0.8369 GB, free: 101.2 MB / 362.7 MB