Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",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.332 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.23/1.906, allocations: 41.11 MB / 219.3 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0966/2.002, allocations: 38.76 MB / 258 MB, free: 4.363 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3111/2.314, allocations: 86 MB / 344 MB, free: 2.297 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003855/2.314, allocations: 87.31 kB / 344.1 MB, free: 2.25 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: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.9779/3.292, allocations: 167.6 MB / 0.4997 GB, free: 37.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/3.292, allocations: 8 kB / 0.4997 GB, free: 37.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1467/3.439, allocations: 16.12 MB / 0.5154 GB, free: 21.46 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05531/3.494, allocations: 13.92 MB / 0.529 GB, free: 7.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005054/3.495, allocations: 243.9 kB / 0.5293 GB, free: 7.352 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003993/3.499, allocations: 467.7 kB / 0.5297 GB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3008/3.799, allocations: 10.34 MB / 0.5398 GB, free: 74.23 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05257/3.852, allocations: 15.25 MB / 0.5547 GB, free: 70.66 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007789/3.853, allocations: 111.5 kB / 0.5548 GB, free: 70.66 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004454/3.857, allocations: 38 kB / 0.5549 GB, free: 70.66 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004228/3.862, allocations: 1.674 MB / 0.5565 GB, free: 70.64 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1441/4.006, allocations: 75.56 MB / 0.6303 GB, free: 24.65 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01675/4.023, allocations: 5.632 MB / 0.6358 GB, free: 21.94 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00917/4.032, allocations: 4.569 MB / 0.6402 GB, free: 19.93 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.043/4.075, allocations: 14.14 MB / 0.654 GB, free: 12.07 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.285e-05/4.075, allocations: 68.59 kB / 0.6541 GB, free: 12.02 MB / 346.8 MB Notification: Performance of pre-optimization done (n=293): time 6.382e-06/4.075, allocations: 0 / 0.6541 GB, free: 12.02 MB / 346.8 MB Notification: Performance of matching and sorting (n=366): time 0.3568/4.432, allocations: 33.93 MB / 0.6872 GB, free: 69.75 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001638/4.432, allocations: 400.4 kB / 0.6876 GB, free: 69.31 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01668/4.449, allocations: 5.729 MB / 0.6932 GB, free: 68.82 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001076/4.45, allocations: 30.55 kB / 0.6933 GB, free: 68.79 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004705/4.455, allocations: 4.546 MB / 0.6977 GB, free: 66.21 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002332/4.457, allocations: 1.292 MB / 0.699 GB, free: 65.43 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00139/4.458, allocations: 0 / 0.699 GB, free: 65.43 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0007429/4.459, allocations: 0.6803 MB / 0.6996 GB, free: 65.1 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009289/4.469, allocations: 3.446 MB / 0.703 GB, free: 65.08 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0145/4.483, allocations: 8.395 MB / 0.7112 GB, free: 58.71 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01618/4.499, allocations: 5.347 MB / 0.7164 GB, free: 58.65 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002258/4.5, allocations: 50.22 kB / 0.7165 GB, free: 58.65 MB / 346.8 MB Notification: Performance of matching and sorting (n=1161) (initialization): time 0.05232/4.552, allocations: 13.79 MB / 0.7299 GB, free: 57.83 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/4.552, allocations: 3.906 kB / 0.7299 GB, free: 57.83 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005186/4.553, allocations: 174 kB / 0.7301 GB, free: 57.83 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.033/4.586, allocations: 3.619 MB / 0.7336 GB, free: 57.14 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01618/4.602, allocations: 1.893 MB / 0.7355 GB, free: 56.9 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06111/4.663, allocations: 21.07 MB / 0.756 GB, free: 46.73 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0162/4.679, allocations: 287 kB / 0.7563 GB, free: 46.7 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003981/4.683, allocations: 0.5074 MB / 0.7568 GB, free: 46.63 MB / 346.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 69 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1025): * Single equations (assignments): 1019 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,69.1%) 97,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.004742/4.688, allocations: 0.5542 MB / 0.7573 GB, free: 46.18 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002224/4.69, allocations: 0.6494 MB / 0.758 GB, free: 45.59 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03735/4.728, allocations: 8.545 MB / 0.7663 GB, free: 38.79 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001211/4.728, allocations: 36 kB / 0.7664 GB, free: 38.76 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.929e-05/4.728, allocations: 20 kB / 0.7664 GB, free: 38.74 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-05/4.728, allocations: 15.66 kB / 0.7664 GB, free: 38.74 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08315/4.811, allocations: 17.92 MB / 0.7839 GB, free: 24.08 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.768e-05/4.811, allocations: 8 kB / 0.7839 GB, free: 24.07 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004789/4.816, allocations: 433.7 kB / 0.7843 GB, free: 23.71 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2176/5.034, allocations: 3.61 MB / 0.7878 GB, free: 62.07 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001097/5.035, allocations: 20.7 kB / 0.7879 GB, free: 62.07 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05494/5.09, allocations: 20.43 MB / 0.8078 GB, free: 58.28 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.666e-05/5.09, allocations: 15.53 kB / 0.8078 GB, free: 58.28 MB / 346.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05317/5.143, allocations: 14.74 MB / 0.8222 GB, free: 55.72 MB / 346.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05722/5.201, allocations: 19.29 MB / 0.8411 GB, free: 49.52 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007713/5.208, allocations: 1.184 MB / 0.8422 GB, free: 49.2 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00484/5.213, allocations: 16.98 kB / 0.8422 GB, free: 49.2 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01013/5.223, allocations: 112.9 kB / 0.8423 GB, free: 49.2 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001816/5.225, allocations: 182 kB / 0.8425 GB, free: 49.17 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001379/5.227, allocations: 104.5 kB / 0.8426 GB, free: 49.15 MB / 346.8 MB Notification: Performance of sort global known variables: time 0.01554/5.242, allocations: 4.02 MB / 0.8465 GB, free: 47.76 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.02029/5.263, allocations: 1.694 MB / 0.8482 GB, free: 47.76 MB / 346.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 237 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002101/5.265, allocations: 178.5 kB / 0.8484 GB, free: 47.67 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.02696/5.292, allocations: 8.998 MB / 0.8572 GB, free: 44.78 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 1.497e-05/5.292, allocations: 5.656 kB / 0.8572 GB, free: 44.78 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01166/5.304, allocations: 3.786 MB / 0.8609 GB, free: 43.26 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01277/5.316, allocations: 0.8485 MB / 0.8617 GB, free: 42.96 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0713/5.388, allocations: 15.5 MB / 0.8768 GB, free: 32.45 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02614/5.414, allocations: 6.323 MB / 0.883 GB, free: 27.77 MB / 346.8 MB Notification: Performance of SimCode: time 3.257e-06/5.414, allocations: 7.844 kB / 0.883 GB, free: 27.76 MB / 346.8 MB