Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_RAM",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.612/1.612, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1916/1.804, allocations: 46.82 MB / 249.4 MB, free: 5.328 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/1.907, allocations: 44.51 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3027/2.21, allocations: 79.35 MB / 373.3 MB, free: 7.09 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/2.21, allocations: 70.33 kB / 373.3 MB, free: 7.09 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.1305/2.341, allocations: 41.2 MB / 414.5 MB, free: 6.895 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/2.341, allocations: 12 kB / 414.5 MB, free: 6.883 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002967/2.341, allocations: 118.5 kB / 414.7 MB, free: 6.766 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009736/2.342, allocations: 476.6 kB / 415.1 MB, free: 6.297 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.156e-05/2.342, allocations: 13.69 kB / 415.1 MB, free: 6.285 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.204e-05/2.343, allocations: 20.56 kB / 415.2 MB, free: 6.266 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009476/2.343, allocations: 458.9 kB / 415.6 MB, free: 5.918 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/2.345, allocations: 0.5681 MB / 416.2 MB, free: 5.453 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/2.345, allocations: 0 / 416.2 MB, free: 5.453 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.055e-05/2.345, allocations: 6.812 kB / 416.2 MB, free: 5.449 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/2.345, allocations: 4 kB / 416.2 MB, free: 5.445 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002474/2.347, allocations: 0.9057 MB / 417.1 MB, free: 4.555 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/2.348, allocations: 0.7211 MB / 417.8 MB, free: 3.824 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00111/2.35, allocations: 0.7077 MB / 418.5 MB, free: 3.113 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.347e-05/2.35, allocations: 0 / 418.5 MB, free: 3.113 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001185/2.351, allocations: 0.7006 MB / 419.2 MB, free: 2.379 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 4.789e-06/2.351, allocations: 0 / 419.2 MB, free: 2.379 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.002186/2.353, allocations: 1.015 MB / 420.2 MB, free: 1.355 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000245/2.353, allocations: 334.7 kB / 420.6 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002837/2.356, allocations: 1.263 MB / 421.8 MB, free: 15.69 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.984e-05/2.356, allocations: 45.69 kB / 421.9 MB, free: 15.64 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/2.356, allocations: 150.1 kB / 422 MB, free: 15.49 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/2.357, allocations: 90.91 kB / 422.1 MB, free: 15.4 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.787e-05/2.357, allocations: 4 kB / 422.1 MB, free: 15.4 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/2.357, allocations: 329.9 kB / 422.4 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008604/2.358, allocations: 456.2 kB / 422.9 MB, free: 14.62 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008425/2.359, allocations: 464.5 kB / 423.3 MB, free: 14.17 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008282/2.359, allocations: 369.8 kB / 423.7 MB, free: 13.81 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/2.359, allocations: 4 kB / 423.7 MB, free: 13.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001996/2.361, allocations: 0.9856 MB / 424.7 MB, free: 12.81 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/2.361, allocations: 11.94 kB / 424.7 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/2.361, allocations: 0 / 424.7 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/2.361, allocations: 0 / 424.7 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.484e-05/2.362, allocations: 7.938 kB / 424.7 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/2.362, allocations: 4 kB / 424.7 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005545/2.362, allocations: 27.89 kB / 424.7 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001913/2.362, allocations: 99.92 kB / 424.8 MB, free: 12.66 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,dLATRAM.dataIn[1],dLATRAM.dataIn[2],dLATRAM.mem[1,1],dLATRAM.mem[1,2],dLATRAM.mem[2,1],dLATRAM.mem[2,2],dLATRAM.mem[3,1],dLATRAM.mem[3,2],dLATRAM.mem[4,1],dLATRAM.mem[4,2],dLATRAM.nextstate[1],dLATRAM.nextstate[2],dLATRAM.mem_word[1],dLATRAM.mem_word[2],dLATRAM.int_addr,dLATRAM.yy[1],dLATRAM.yy[2],$PRE.dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[1].x,$PRE.dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].delayTime,dLATRAM.inertialDelaySensitive[1].y_auxiliary,dLATRAM.inertialDelaySensitive[1].y_old,dLATRAM.inertialDelaySensitive[1].lh,dLATRAM.inertialDelaySensitive[1].t_next,$PRE.dLATRAM.inertialDelaySensitive[2].x,dLATRAM.inertialDelaySensitive[2].x,$PRE.dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].delayTime,dLATRAM.inertialDelaySensitive[2].y_auxiliary,dLATRAM.inertialDelaySensitive[2].y_old,dLATRAM.inertialDelaySensitive[2].lh,dLATRAM.inertialDelaySensitive[2].t_next,addr_1.y,data_1.y,data_0.y,WE.y,addr_0.y,RE.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 9 * 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.0005439/2.363, allocations: 453.1 kB / 425.3 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002303/2.363, allocations: 134.5 kB / 425.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005716/2.364, allocations: 179.6 kB / 425.6 MB, free: 11.85 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/2.364, allocations: 4 kB / 425.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/2.364, allocations: 0 / 425.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/2.364, allocations: 4 kB / 425.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003432/2.367, allocations: 1.751 MB / 427.3 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/2.367, allocations: 3.984 kB / 427.3 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.602e-05/2.367, allocations: 4 kB / 427.3 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/2.367, allocations: 3.906 kB / 427.3 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001281/2.367, allocations: 35.98 kB / 427.4 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/2.367, allocations: 0 / 427.4 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/2.367, allocations: 4 kB / 427.4 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002307/2.37, allocations: 1.202 MB / 428.6 MB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002558/2.372, allocations: 1.597 MB / 430.2 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001459/2.374, allocations: 0.5147 MB / 430.7 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003369/2.374, allocations: 71.89 kB / 430.8 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005924/2.375, allocations: 27.66 kB / 430.8 MB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001868/2.377, allocations: 499.4 kB / 431.3 MB, free: 6.047 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000231/2.377, allocations: 115.9 kB / 431.4 MB, free: 5.934 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.00238/2.379, allocations: 1.027 MB / 432.4 MB, free: 4.902 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001816/2.381, allocations: 188 kB / 432.6 MB, free: 4.719 MB / 330.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: 41 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,dLATRAM.dataIn[1],dLATRAM.dataIn[2],dLATRAM.mem[1,1],dLATRAM.mem[1,2],dLATRAM.mem[2,1],dLATRAM.mem[2,2],dLATRAM.mem[3,1],dLATRAM.mem[3,2],dLATRAM.mem[4,1],dLATRAM.mem[4,2],dLATRAM.nextstate[1],dLATRAM.nextstate[2],dLATRAM.mem_word[1],dLATRAM.mem_word[2],dLATRAM.int_addr,dLATRAM.yy[1],dLATRAM.yy[2],dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].delayTime,dLATRAM.inertialDelaySensitive[1].y_auxiliary,dLATRAM.inertialDelaySensitive[1].y_old,dLATRAM.inertialDelaySensitive[1].lh,dLATRAM.inertialDelaySensitive[1].t_next,dLATRAM.inertialDelaySensitive[2].x,dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].delayTime,dLATRAM.inertialDelaySensitive[2].y_auxiliary,dLATRAM.inertialDelaySensitive[2].y_old,dLATRAM.inertialDelaySensitive[2].lh,dLATRAM.inertialDelaySensitive[2].t_next,addr_1.y,data_1.y,data_0.y,WE.y,addr_0.y,RE.y) * Number of discrete states: 39 (addr_1.y,data_1.y,data_0.y,WE.y,addr_0.y,RE.y,dLATRAM.yy[2],dLATRAM.yy[1],dLATRAM.nextstate[2],dLATRAM.nextstate[1],dLATRAM.mem_word[2],dLATRAM.mem_word[1],dLATRAM.int_addr,dLATRAM.mem[4,2],dLATRAM.mem[4,1],dLATRAM.mem[3,2],dLATRAM.mem[3,1],dLATRAM.mem[2,2],dLATRAM.mem[2,1],dLATRAM.mem[1,2],dLATRAM.mem[1,1],dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].y_auxiliary,dLATRAM.inertialDelaySensitive[1].t_next,dLATRAM.inertialDelaySensitive[1].delayTime,dLATRAM.inertialDelaySensitive[1].lh,dLATRAM.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].y_auxiliary,dLATRAM.inertialDelaySensitive[2].t_next,dLATRAM.inertialDelaySensitive[2].delayTime,dLATRAM.inertialDelaySensitive[2].lh,dLATRAM.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATRAM.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 9 * 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.0009445/2.382, allocations: 357.6 kB / 433 MB, free: 4.406 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002441/2.385, allocations: 1.468 MB / 434.4 MB, free: 2.883 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/2.385, allocations: 0 / 434.4 MB, free: 2.883 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00205/2.387, allocations: 1.347 MB / 435.8 MB, free: 1.48 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00508/2.392, allocations: 0.6752 MB / 436.4 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00552/2.397, allocations: 2.287 MB / 438.7 MB, free: 14.49 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001537/2.399, allocations: 1.165 MB / 439.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of SimCode: time 1.042e-06/2.399, allocations: 0 / 439.9 MB, free: 13.29 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.RAM_res.mat does not exist to compare? outputFormat=mat