Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",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.582/1.582, allocations: 171.2 MB / 178.1 MB, free: 8.277 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2234/1.806, allocations: 41.11 MB / 219.3 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09018/1.896, allocations: 38.76 MB / 258 MB, free: 4.352 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3169/2.213, allocations: 84.48 MB / 342.5 MB, free: 3.816 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/2.213, allocations: 82.95 kB / 342.6 MB, free: 3.773 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: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 1.031/3.244, allocations: 162.3 MB / 0.493 GB, free: 43.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.846e-05/3.244, allocations: 8 kB / 0.493 GB, free: 43.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1239/3.368, allocations: 16.05 MB / 0.5087 GB, free: 27.87 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05187/3.42, allocations: 13.64 MB / 0.522 GB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009633/3.421, allocations: 232 kB / 0.5223 GB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00423/3.426, allocations: 447.6 kB / 0.5227 GB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03013/3.456, allocations: 9.942 MB / 0.5324 GB, free: 3.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3597/3.816, allocations: 14.72 MB / 0.5468 GB, free: 73.6 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001106/3.817, allocations: 111.8 kB / 0.5469 GB, free: 73.6 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004533/3.821, allocations: 36.5 kB / 0.5469 GB, free: 73.6 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005447/3.827, allocations: 1.625 MB / 0.5485 GB, free: 73.58 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1638/3.991, allocations: 74.15 MB / 0.6209 GB, free: 29.81 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01633/4.007, allocations: 5.575 MB / 0.6264 GB, free: 27.07 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01301/4.02, allocations: 4.615 MB / 0.6309 GB, free: 25.04 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05084/4.071, allocations: 13.73 MB / 0.6443 GB, free: 17.65 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.388e-05/4.071, allocations: 75.72 kB / 0.6443 GB, free: 17.58 MB / 346.8 MB Notification: Performance of pre-optimization done (n=280): time 8.937e-06/4.071, allocations: 0 / 0.6443 GB, free: 17.58 MB / 346.8 MB Notification: Performance of matching and sorting (n=340): time 0.3833/4.455, allocations: 35.91 MB / 0.6794 GB, free: 76.65 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/4.455, allocations: 398.5 kB / 0.6798 GB, free: 76.21 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01658/4.471, allocations: 5.54 MB / 0.6852 GB, free: 75.87 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001012/4.472, allocations: 25.7 kB / 0.6852 GB, free: 75.84 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004385/4.477, allocations: 4.382 MB / 0.6895 GB, free: 74.63 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002785/4.48, allocations: 1.211 MB / 0.6907 GB, free: 73.89 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00131/4.481, allocations: 0 / 0.6907 GB, free: 73.89 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0006332/4.482, allocations: 0.6584 MB / 0.6913 GB, free: 73.57 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01079/4.492, allocations: 3.716 MB / 0.695 GB, free: 73.54 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01803/4.511, allocations: 8.462 MB / 0.7032 GB, free: 67.42 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01321/4.524, allocations: 5.545 MB / 0.7086 GB, free: 67.37 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002048/4.524, allocations: 45.5 kB / 0.7087 GB, free: 67.37 MB / 346.8 MB Notification: Performance of matching and sorting (n=1105) (initialization): time 0.06723/4.591, allocations: 15.33 MB / 0.7237 GB, free: 66.29 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/4.591, allocations: 6.531 kB / 0.7237 GB, free: 66.29 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000317/4.592, allocations: 164.4 kB / 0.7238 GB, free: 66.29 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0339/4.626, allocations: 4.987 MB / 0.7287 GB, free: 65.38 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01213/4.638, allocations: 1.807 MB / 0.7305 GB, free: 65.15 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0745/4.712, allocations: 24.81 MB / 0.7547 GB, free: 53.61 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01704/4.73, allocations: 301.3 kB / 0.755 GB, free: 53.58 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003727/4.733, allocations: 489.9 kB / 0.7554 GB, free: 53.52 MB / 346.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: B1.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 761 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (969): * Single equations (assignments): 963 * 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 {(7,55.1%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.00466/4.738, allocations: 0.5322 MB / 0.756 GB, free: 53.09 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002014/4.74, allocations: 0.6241 MB / 0.7566 GB, free: 52.57 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04799/4.788, allocations: 10.33 MB / 0.7666 GB, free: 44.48 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001286/4.788, allocations: 36 kB / 0.7667 GB, free: 44.45 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.297e-05/4.788, allocations: 16 kB / 0.7667 GB, free: 44.43 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-05/4.788, allocations: 26.98 kB / 0.7667 GB, free: 44.42 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07857/4.867, allocations: 22.27 MB / 0.7885 GB, free: 25.83 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.241e-05/4.867, allocations: 8 kB / 0.7885 GB, free: 25.82 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006093/4.873, allocations: 399.7 kB / 0.7889 GB, free: 25.49 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2058/5.079, allocations: 4.947 MB / 0.7937 GB, free: 67.75 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001239/5.08, allocations: 8.688 kB / 0.7937 GB, free: 67.75 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06958/5.15, allocations: 23.63 MB / 0.8168 GB, free: 64.04 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-05/5.15, allocations: 8.156 kB / 0.8168 GB, free: 64.04 MB / 346.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06539/5.216, allocations: 16.36 MB / 0.8328 GB, free: 61.53 MB / 346.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.07193/5.288, allocations: 21.39 MB / 0.8536 GB, free: 52.74 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007476/5.295, allocations: 1.222 MB / 0.8548 GB, free: 52.28 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004078/5.299, allocations: 10.25 kB / 0.8548 GB, free: 52.28 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01081/5.31, allocations: 137.2 kB / 0.855 GB, free: 52.28 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001754/5.312, allocations: 166.3 kB / 0.8551 GB, free: 52.25 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009439/5.313, allocations: 87.06 kB / 0.8552 GB, free: 52.23 MB / 346.8 MB Notification: Performance of sort global known variables: time 0.01169/5.325, allocations: 3.889 MB / 0.859 GB, free: 50.88 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.01424/5.339, allocations: 1.684 MB / 0.8607 GB, free: 50.88 MB / 346.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (215): * Single equations (assignments): 209 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001469/5.34, allocations: 170.1 kB / 0.8608 GB, free: 50.79 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.02722/5.368, allocations: 9.461 MB / 0.8701 GB, free: 46.41 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/5.368, allocations: 4 kB / 0.8701 GB, free: 46.4 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0141/5.382, allocations: 4.069 MB / 0.874 GB, free: 42.77 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008813/5.391, allocations: 0.8138 MB / 0.8748 GB, free: 42.11 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06109/5.452, allocations: 15.89 MB / 0.8904 GB, free: 27.94 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01807/5.47, allocations: 6.065 MB / 0.8963 GB, free: 23.44 MB / 346.8 MB Notification: Performance of SimCode: time 2.134e-06/5.47, allocations: 0 / 0.8963 GB, free: 23.44 MB / 346.8 MB