Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",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.775/1.775, allocations: 171.2 MB / 178.1 MB, free: 8.293 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2071/1.982, allocations: 41.11 MB / 219.3 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0849/2.067, allocations: 38.76 MB / 258 MB, free: 4.371 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3597/2.427, allocations: 82.59 MB / 340.6 MB, free: 5.719 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/2.427, allocations: 83.25 kB / 340.7 MB, free: 5.676 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2049 * Number of variables: 2049 Notification: Performance of Generate backend data structure: time 0.748/3.175, allocations: 124.7 MB / 465.4 MB, free: 71.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/3.175, allocations: 11.34 kB / 465.4 MB, free: 71.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07679/3.252, allocations: 9.009 MB / 474.4 MB, free: 69.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03458/3.287, allocations: 8.635 MB / 483 MB, free: 64.95 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004156/3.287, allocations: 184.5 kB / 483.2 MB, free: 64.8 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0033/3.291, allocations: 347.8 kB / 483.6 MB, free: 64.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02349/3.314, allocations: 9.176 MB / 492.7 MB, free: 55.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03547/3.35, allocations: 13.31 MB / 0.4942 GB, free: 40.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006338/3.35, allocations: 79.22 kB / 0.4943 GB, free: 40.74 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003261/3.354, allocations: 36 kB / 0.4943 GB, free: 40.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003401/3.357, allocations: 1.539 MB / 0.4958 GB, free: 39.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2599/3.617, allocations: 64.42 MB / 0.5587 GB, free: 70.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.014/3.631, allocations: 7.171 MB / 0.5657 GB, free: 70.22 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01041/3.642, allocations: 5.507 MB / 0.5711 GB, free: 70.17 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03752/3.679, allocations: 14.15 MB / 0.5849 GB, free: 64.39 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.253e-05/3.679, allocations: 75.91 kB / 0.585 GB, free: 64.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=340): time 7.795e-06/3.679, allocations: 2.625 kB / 0.585 GB, free: 64.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=604): time 0.4004/4.08, allocations: 72.71 MB / 0.656 GB, free: 13.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/4.08, allocations: 276.9 kB / 0.6562 GB, free: 12.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01022/4.09, allocations: 4.043 MB / 0.6602 GB, free: 8.957 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00218/4.092, allocations: 25.7 kB / 0.6602 GB, free: 8.926 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003064/4.095, allocations: 3.545 MB / 0.6637 GB, free: 5.328 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004166/4.1, allocations: 2.033 MB / 0.6657 GB, free: 3.266 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002554/4.102, allocations: 0 / 0.6657 GB, free: 3.266 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0008211/4.103, allocations: 0.7189 MB / 0.6664 GB, free: 2.539 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1626/4.266, allocations: 8.575 MB / 0.6747 GB, free: 92.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02535/4.291, allocations: 12.75 MB / 0.6872 GB, free: 87.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02994/4.321, allocations: 10.58 MB / 0.6975 GB, free: 84.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000221/4.321, allocations: 42.69 kB / 0.6976 GB, free: 84.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=1257) (initialization): time 0.182/4.503, allocations: 38.55 MB / 0.7352 GB, free: 73.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/4.504, allocations: 8 kB / 0.7352 GB, free: 73.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003294/4.504, allocations: 140 kB / 0.7354 GB, free: 73.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1361/4.64, allocations: 20.87 MB / 0.7557 GB, free: 58.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009924/4.65, allocations: 1.47 MB / 0.7572 GB, free: 57.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.575/5.225, allocations: 126.3 MB / 0.8805 GB, free: 41.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01948/5.245, allocations: 410.1 kB / 0.8809 GB, free: 41.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003779/5.248, allocations: 0.5377 MB / 0.8814 GB, free: 41.23 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[1,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 649 * Number of states: 0 () * Number of discrete variables: 51 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (796): * Single equations (assignments): 789 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.00557/5.254, allocations: 486.4 kB / 0.8819 GB, free: 40.99 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002566/5.257, allocations: 0.5485 MB / 0.8824 GB, free: 40.46 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3739/5.631, allocations: 35.52 MB / 0.9171 GB, free: 77.53 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001604/5.631, allocations: 55.81 kB / 0.9172 GB, free: 77.53 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000138/5.631, allocations: 62 kB / 0.9172 GB, free: 77.53 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000139/5.631, allocations: 30.14 kB / 0.9173 GB, free: 77.53 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.221/5.852, allocations: 55.09 MB / 0.9711 GB, free: 65.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.428e-05/5.852, allocations: 3.938 kB / 0.9711 GB, free: 65.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003804/5.856, allocations: 266.2 kB / 0.9713 GB, free: 65.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1235/5.98, allocations: 20.12 MB / 0.991 GB, free: 53.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002406/5.982, allocations: 14.8 kB / 0.991 GB, free: 53.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4933/6.476, allocations: 116.9 MB / 1.105 GB, free: 47.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/6.476, allocations: 2.469 kB / 1.105 GB, free: 47.54 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.3448/6.82, allocations: 47.81 MB / 1.152 GB, free: 67.93 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3045/7.125, allocations: 89.16 MB / 1.239 GB, free: 30.23 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01269/7.138, allocations: 2.336 MB / 1.241 GB, free: 28.15 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004378/7.142, allocations: 4 kB / 1.241 GB, free: 28.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01417/7.156, allocations: 266.6 kB / 1.241 GB, free: 28 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003124/7.16, allocations: 273.3 kB / 1.242 GB, free: 27.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002251/7.162, allocations: 148.5 kB / 1.242 GB, free: 27.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.008028/7.17, allocations: 2.786 MB / 1.245 GB, free: 25.28 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.02508/7.195, allocations: 2.838 MB / 1.247 GB, free: 22.45 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.003849/7.199, allocations: 142.5 kB / 1.247 GB, free: 22.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.234/7.433, allocations: 23.62 MB / 1.271 GB, free: 82.12 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.719e-06/7.433, allocations: 0 / 1.271 GB, free: 82.12 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04371/7.477, allocations: 12.44 MB / 1.283 GB, free: 81.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007391/7.484, allocations: 0.519 MB / 1.283 GB, free: 81.46 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08253/7.567, allocations: 21.42 MB / 1.304 GB, free: 75.71 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01595/7.583, allocations: 5.338 MB / 1.309 GB, free: 74.05 MB / 346.7 MB Notification: Performance of SimCode: time 1.663e-06/7.583, allocations: 0 / 1.309 GB, free: 74.05 MB / 346.7 MB