Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_HalfAdder",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.761/1.761, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1932/1.954, allocations: 46.82 MB / 249.3 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08669/2.041, allocations: 44.52 MB / 293.8 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2753/2.316, allocations: 78.26 MB / 372.1 MB, free: 7.184 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/2.317, allocations: 69.2 kB / 372.2 MB, free: 7.184 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.1072/2.424, allocations: 34.61 MB / 406.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/2.424, allocations: 8.844 kB / 406.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003601/2.424, allocations: 84.53 kB / 406.9 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009325/2.425, allocations: 411.8 kB / 407.3 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.794e-05/2.425, allocations: 12 kB / 407.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.534e-05/2.426, allocations: 12 kB / 407.3 MB, free: 12.17 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006633/2.426, allocations: 195.3 kB / 407.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007665/2.427, allocations: 284.3 kB / 407.8 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/2.427, allocations: 0 / 407.8 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.092e-05/2.427, allocations: 4 kB / 407.8 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/2.427, allocations: 4 kB / 407.8 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002305/2.429, allocations: 0.8528 MB / 408.6 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005951/2.43, allocations: 209.2 kB / 408.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003552/2.43, allocations: 147.6 kB / 409 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/2.43, allocations: 0 / 409 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005772/2.431, allocations: 339.4 kB / 409.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.806e-06/2.431, allocations: 0 / 409.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001724/2.433, allocations: 362.9 kB / 409.7 MB, free: 10.29 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001887/2.433, allocations: 177.5 kB / 409.8 MB, free: 10.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00349/2.437, allocations: 0.8436 MB / 410.7 MB, free: 9.402 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002226/2.437, allocations: 37.2 kB / 410.7 MB, free: 9.363 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/2.437, allocations: 124 kB / 410.8 MB, free: 9.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001858/2.437, allocations: 49.67 kB / 410.9 MB, free: 9.207 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.678e-05/2.437, allocations: 7.312 kB / 410.9 MB, free: 9.203 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000257/2.438, allocations: 337.4 kB / 411.2 MB, free: 8.875 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005992/2.438, allocations: 110.7 kB / 411.3 MB, free: 8.812 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006779/2.439, allocations: 149.4 kB / 411.5 MB, free: 8.707 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004754/2.439, allocations: 92.45 kB / 411.6 MB, free: 8.648 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/2.439, allocations: 0 / 411.6 MB, free: 8.648 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001552/2.441, allocations: 344.8 kB / 411.9 MB, free: 8.379 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/2.441, allocations: 4 kB / 411.9 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/2.441, allocations: 0 / 411.9 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/2.441, allocations: 4 kB / 411.9 MB, free: 8.371 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/2.441, allocations: 15.42 kB / 411.9 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/2.441, allocations: 4 kB / 411.9 MB, free: 8.355 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009323/2.442, allocations: 35.81 kB / 412 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002997/2.443, allocations: 107.9 kB / 412.1 MB, free: 8.215 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.y,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,Adder.AND.G2.x,$PRE.Adder.AND.G2.y,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004723/2.443, allocations: 260.3 kB / 412.3 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002498/2.443, allocations: 83.05 kB / 412.4 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006166/2.444, allocations: 133.3 kB / 412.5 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/2.444, allocations: 4 kB / 412.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/2.444, allocations: 128 / 412.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/2.444, allocations: 0 / 412.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/2.446, allocations: 0.5932 MB / 413.1 MB, free: 7.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/2.446, allocations: 4 kB / 413.1 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/2.446, allocations: 8 kB / 413.2 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.37e-05/2.446, allocations: 3.984 kB / 413.2 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001333/2.446, allocations: 27.86 kB / 413.2 MB, free: 7.191 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/2.446, allocations: 0 / 413.2 MB, free: 7.191 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.986e-06/2.446, allocations: 11.84 kB / 413.2 MB, free: 7.18 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001566/2.448, allocations: 420.6 kB / 413.6 MB, free: 6.836 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001736/2.449, allocations: 0.7969 MB / 414.4 MB, free: 6.105 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001972/2.451, allocations: 0.5033 MB / 414.9 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002979/2.452, allocations: 20.06 kB / 414.9 MB, free: 5.723 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007128/2.452, allocations: 37.12 kB / 415 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003486/2.453, allocations: 49.69 kB / 415 MB, free: 5.652 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003057/2.453, allocations: 114.7 kB / 415.1 MB, free: 5.543 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.002516/2.456, allocations: 0.6878 MB / 415.8 MB, free: 5.004 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002247/2.458, allocations: 76 kB / 415.9 MB, free: 4.93 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.XOR.G1.auxiliary_n,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,Adder.AND.G1.auxiliary_n,b.y,a.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003588/2.458, allocations: 129.2 kB / 416 MB, free: 4.805 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001521/2.46, allocations: 434.6 kB / 416.4 MB, free: 4.391 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/2.46, allocations: 0 / 416.4 MB, free: 4.391 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/2.461, allocations: 418.7 kB / 416.8 MB, free: 3.957 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002003/2.463, allocations: 177 kB / 417 MB, free: 3.793 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003678/2.467, allocations: 1.059 MB / 418.1 MB, free: 2.699 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001618/2.468, allocations: 1.142 MB / 419.2 MB, free: 1.523 MB / 314.7 MB Notification: Performance of SimCode: time 1.072e-06/2.468, allocations: 3.938 kB / 419.2 MB, free: 1.52 MB / 314.7 MB