Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.667/1.667, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2438/1.911, allocations: 46.82 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08918/2, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2801/2.28, allocations: 78.26 MB / 372.2 MB, free: 7.164 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/2.28, allocations: 72.11 kB / 372.2 MB, free: 7.164 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.1097/2.39, allocations: 34.62 MB / 406.9 MB, free: 12.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/2.39, allocations: 8.75 kB / 406.9 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002459/2.39, allocations: 82.84 kB / 406.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008824/2.391, allocations: 406.7 kB / 407.3 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.129e-05/2.391, allocations: 16 kB / 407.4 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.055e-05/2.391, allocations: 15.98 kB / 407.4 MB, free: 12.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006541/2.392, allocations: 194 kB / 407.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008019/2.393, allocations: 282.8 kB / 407.8 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/2.393, allocations: 0 / 407.8 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.204e-05/2.393, allocations: 4.5 kB / 407.8 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/2.393, allocations: 8 kB / 407.9 MB, free: 11.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002153/2.395, allocations: 0.8609 MB / 408.7 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005748/2.396, allocations: 207.8 kB / 408.9 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003632/2.396, allocations: 145.8 kB / 409.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/2.396, allocations: 0 / 409.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005902/2.397, allocations: 329.4 kB / 409.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.235e-06/2.397, allocations: 4 kB / 409.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001071/2.398, allocations: 364.8 kB / 409.7 MB, free: 10.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/2.398, allocations: 176.6 kB / 409.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001932/2.4, allocations: 0.8374 MB / 410.8 MB, free: 9.465 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001471/2.4, allocations: 33.7 kB / 410.8 MB, free: 9.426 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/2.4, allocations: 124.9 kB / 410.9 MB, free: 9.312 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/2.4, allocations: 57.73 kB / 411 MB, free: 9.266 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.655e-05/2.401, allocations: 4 kB / 411 MB, free: 9.262 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/2.401, allocations: 336.9 kB / 411.3 MB, free: 8.934 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003667/2.401, allocations: 120.4 kB / 411.4 MB, free: 8.863 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004124/2.402, allocations: 146 kB / 411.6 MB, free: 8.762 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00028/2.402, allocations: 86.78 kB / 411.6 MB, free: 8.707 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/2.402, allocations: 0 / 411.6 MB, free: 8.707 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009689/2.403, allocations: 344 kB / 412 MB, free: 8.441 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/2.403, allocations: 4 kB / 412 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/2.403, allocations: 3.984 kB / 412 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/2.403, allocations: 4 kB / 412 MB, free: 8.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/2.403, allocations: 12 kB / 412 MB, free: 8.418 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/2.403, allocations: 4 kB / 412 MB, free: 8.414 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005326/2.404, allocations: 27.88 kB / 412 MB, free: 8.387 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000198/2.404, allocations: 115.7 kB / 412.1 MB, free: 8.277 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.0003484/2.404, allocations: 271.6 kB / 412.4 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/2.404, allocations: 79.06 kB / 412.5 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005045/2.405, allocations: 124.8 kB / 412.6 MB, free: 7.801 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/2.405, allocations: 7.984 kB / 412.6 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/2.405, allocations: 0 / 412.6 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/2.405, allocations: 0 / 412.6 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/2.406, allocations: 0.5848 MB / 413.2 MB, free: 7.297 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/2.406, allocations: 4 kB / 413.2 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.981e-05/2.406, allocations: 11.98 kB / 413.2 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/2.406, allocations: 0 / 413.2 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.921e-05/2.406, allocations: 31.05 kB / 413.2 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/2.406, allocations: 0 / 413.2 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/2.406, allocations: 3.906 kB / 413.2 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001089/2.407, allocations: 432.5 kB / 413.7 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001281/2.409, allocations: 0.7921 MB / 414.5 MB, free: 6.168 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/2.41, allocations: 0.5075 MB / 415 MB, free: 5.793 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002185/2.411, allocations: 24.44 kB / 415 MB, free: 5.777 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004737/2.411, allocations: 32.02 kB / 415 MB, free: 5.746 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002653/2.411, allocations: 50 kB / 415.1 MB, free: 5.711 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002297/2.412, allocations: 115.2 kB / 415.2 MB, free: 5.602 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.001756/2.413, allocations: 0.6848 MB / 415.9 MB, free: 4.992 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001624/2.415, allocations: 76 kB / 415.9 MB, free: 4.918 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.0003119/2.415, allocations: 130.8 kB / 416.1 MB, free: 4.785 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001083/2.416, allocations: 422.7 kB / 416.5 MB, free: 4.348 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/2.416, allocations: 4.188 kB / 416.5 MB, free: 4.344 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007766/2.417, allocations: 426.6 kB / 416.9 MB, free: 3.902 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/2.419, allocations: 166.5 kB / 417.1 MB, free: 3.746 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/2.422, allocations: 1.062 MB / 418.1 MB, free: 2.652 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001689/2.424, allocations: 1.15 MB / 419.3 MB, free: 1.469 MB / 314.7 MB Notification: Performance of SimCode: time 1.242e-06/2.424, allocations: 0 / 419.3 MB, free: 1.469 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat