Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.022/2.022, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.378e-05/3.414e-05, allocations: 5.406 kB / 292.2 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 50.43 MB / 342.7 MB, free: 5.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4334/0.5388, allocations: 86.25 MB / 428.9 MB, free: 7.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.5391, allocations: 71.89 kB / 429 MB, free: 7.555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.144/0.6831, allocations: 39.82 MB / 468.8 MB, free: 4.531 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.6832, allocations: 0 / 468.8 MB, free: 4.531 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.953e-05/0.6832, allocations: 12 kB / 468.8 MB, free: 4.52 MB / 378.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.001777/0.685, allocations: 1.34 MB / 470.1 MB, free: 3.078 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.6851, allocations: 12.03 kB / 470.2 MB, free: 3.066 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001154/0.6852, allocations: 58.48 kB / 470.2 MB, free: 3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002232/0.6854, allocations: 130.8 kB / 470.3 MB, free: 2.871 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009228/0.6864, allocations: 472.6 kB / 470.8 MB, free: 2.359 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.09e-05/0.6864, allocations: 20 kB / 470.8 MB, free: 2.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.008e-05/0.6865, allocations: 16 kB / 470.8 MB, free: 2.324 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.6877, allocations: 0.5716 MB / 471.4 MB, free: 1.746 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.6877, allocations: 0 / 471.4 MB, free: 1.746 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.659e-05/0.6878, allocations: 11.95 kB / 471.4 MB, free: 1.734 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.6878, allocations: 4 kB / 471.4 MB, free: 1.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008601/0.6887, allocations: 459.8 kB / 471.9 MB, free: 1.281 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002178/0.6909, allocations: 0.9155 MB / 472.8 MB, free: 328 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.6921, allocations: 0.7211 MB / 473.5 MB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001182/0.6934, allocations: 0.7115 MB / 474.2 MB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.6934, allocations: 0 / 474.2 MB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001288/0.6947, allocations: 0.7284 MB / 475 MB, free: 14.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.025e-06/0.6947, allocations: 0 / 475 MB, free: 14.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.003062/0.6978, allocations: 1.569 MB / 476.5 MB, free: 12.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002651/0.6981, allocations: 330.7 kB / 476.8 MB, free: 12.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002988/0.7011, allocations: 1.307 MB / 478.1 MB, free: 10.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001106/0.7012, allocations: 41.69 kB / 478.2 MB, free: 10.72 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003703/0.7016, allocations: 282.1 kB / 478.5 MB, free: 10.44 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.7018, allocations: 82.91 kB / 478.5 MB, free: 10.36 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-05/0.7018, allocations: 12 kB / 478.6 MB, free: 10.35 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.702, allocations: 325.9 kB / 478.9 MB, free: 10.02 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009208/0.7029, allocations: 464.2 kB / 479.3 MB, free: 9.566 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008928/0.7038, allocations: 464.6 kB / 479.8 MB, free: 9.113 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.7049, allocations: 0.6494 MB / 480.4 MB, free: 8.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.7049, allocations: 0 / 480.4 MB, free: 8.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002847/0.7078, allocations: 1.523 MB / 482 MB, free: 6.824 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002944/0.7081, allocations: 307.2 kB / 482.3 MB, free: 6.469 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.7081, allocations: 0 / 482.3 MB, free: 6.469 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.7081, allocations: 0 / 482.3 MB, free: 6.469 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.132e-05/0.7082, allocations: 3.938 kB / 482.3 MB, free: 6.465 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.7082, allocations: 4 kB / 482.3 MB, free: 6.461 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005998/0.7088, allocations: 35.88 kB / 482.3 MB, free: 6.426 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002128/0.709, allocations: 103.9 kB / 482.4 MB, free: 6.324 MB / 394.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.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,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],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.0005837/0.7096, allocations: 485.3 kB / 482.9 MB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002244/0.7099, allocations: 130.4 kB / 483 MB, free: 5.656 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005929/0.7105, allocations: 183.6 kB / 483.2 MB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.7105, allocations: 4 kB / 483.2 MB, free: 5.473 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.7105, allocations: 4 kB / 483.2 MB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.7105, allocations: 3.984 kB / 483.2 MB, free: 5.465 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004476/0.715, allocations: 2.416 MB / 485.6 MB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.715, allocations: 0 / 485.6 MB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.62e-05/0.7151, allocations: 0 / 485.6 MB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.144e-06/0.7151, allocations: 0 / 485.6 MB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.7152, allocations: 31.98 kB / 485.6 MB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.7152, allocations: 4 kB / 485.6 MB, free: 2.906 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.7152, allocations: 0 / 485.6 MB, free: 2.906 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003424/0.7187, allocations: 1.838 MB / 487.5 MB, free: 0.9961 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001364/0.72, allocations: 0.4952 MB / 488 MB, free: 492 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000295/0.7204, allocations: 67.95 kB / 488 MB, free: 424 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005893/0.721, allocations: 27.97 kB / 488.1 MB, free: 396 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002069/0.723, allocations: 0.6319 MB / 488.7 MB, free: 15.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002083/0.7233, allocations: 111.8 kB / 488.8 MB, free: 15.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002463/0.7257, allocations: 1.064 MB / 489.9 MB, free: 14.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.7258, allocations: 0 / 489.9 MB, free: 14.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009283/0.7267, allocations: 199.9 kB / 490.1 MB, free: 14.38 MB / 410.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.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,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],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.00473/0.7315, allocations: 2.665 MB / 492.7 MB, free: 11.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003265/0.7348, allocations: 2.079 MB / 494.8 MB, free: 9.484 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.7348, allocations: 0 / 494.8 MB, free: 9.484 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002266/0.7371, allocations: 1.584 MB / 496.4 MB, free: 7.789 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004761/0.7419, allocations: 0.7192 MB / 497.1 MB, free: 7.094 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006424/0.7483, allocations: 2.528 MB / 499.6 MB, free: 4.516 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001351/0.7497, allocations: 1.139 MB / 0.489 GB, free: 3.352 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004202/0.7501, allocations: 82.73 kB / 0.4891 GB, free: 3.273 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003392/0.7505, allocations: 215.3 kB / 0.4893 GB, free: 3.062 MB / 410.7 MB Notification: Performance of SimCode: time 1.031e-06/0.7505, allocations: 0 / 0.4893 GB, free: 3.062 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09388/0.8444, allocations: 27.17 MB / 0.5159 GB, free: 8.004 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002493/0.8447, allocations: 195.9 kB / 0.516 GB, free: 7.77 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.309/4.153, allocations: 0 / 0.516 GB, free: 7.77 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.RAM_res.mat does not exist to compare? outputFormat=mat