Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.599/1.599, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.433e-05/4.448e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2606, allocations: 38.76 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1286/0.3892, allocations: 74.6 MB / 338.4 MB, free: 15.15 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.3896, allocations: 71.95 kB / 338.5 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3533/0.7429, allocations: 39.31 MB / 377.8 MB, free: 88.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.743, allocations: 0 / 377.8 MB, free: 88.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.078e-05/0.743, allocations: 14.28 kB / 377.8 MB, free: 88.14 MB / 314.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.002281/0.7453, allocations: 1.34 MB / 379.2 MB, free: 87.26 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.7454, allocations: 11.16 kB / 379.2 MB, free: 87.26 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002203/0.7456, allocations: 55.77 kB / 379.2 MB, free: 87.22 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003462/0.746, allocations: 126.4 kB / 379.4 MB, free: 87.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/0.7473, allocations: 477 kB / 379.8 MB, free: 86.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.741e-05/0.7475, allocations: 15.94 kB / 379.8 MB, free: 86.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.7476, allocations: 20.56 kB / 379.9 MB, free: 86.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.749, allocations: 0.5761 MB / 380.4 MB, free: 86.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.7491, allocations: 0 / 380.4 MB, free: 86.8 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.742e-05/0.7492, allocations: 14.53 kB / 380.4 MB, free: 86.8 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.7492, allocations: 3.719 kB / 380.4 MB, free: 86.8 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.7503, allocations: 460.2 kB / 380.9 MB, free: 86.8 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002922/0.7532, allocations: 0.9098 MB / 381.8 MB, free: 86.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.7549, allocations: 0.7271 MB / 382.5 MB, free: 86.35 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001533/0.7565, allocations: 0.7133 MB / 383.2 MB, free: 86.04 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.7565, allocations: 3.953 kB / 383.3 MB, free: 86.04 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001709/0.7583, allocations: 0.7343 MB / 384 MB, free: 85.74 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 5.61e-06/0.7583, allocations: 0 / 384 MB, free: 85.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.00373/0.7621, allocations: 1.56 MB / 385.5 MB, free: 85.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002317/0.7623, allocations: 335.9 kB / 385.9 MB, free: 84.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003837/0.7662, allocations: 1.301 MB / 387.2 MB, free: 83.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000197/0.7665, allocations: 43.91 kB / 387.2 MB, free: 83.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003693/0.7668, allocations: 288.2 kB / 387.5 MB, free: 83.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002282/0.7671, allocations: 86.47 kB / 387.6 MB, free: 83.25 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.737e-05/0.7672, allocations: 8 kB / 387.6 MB, free: 83.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.268e-05/0.7673, allocations: 329.4 kB / 387.9 MB, free: 82.92 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/0.7684, allocations: 459.5 kB / 388.4 MB, free: 82.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.7694, allocations: 467.6 kB / 388.8 MB, free: 82.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.7706, allocations: 0.6483 MB / 389.5 MB, free: 81.47 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.7706, allocations: 0 / 389.5 MB, free: 81.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.003339/0.774, allocations: 1.478 MB / 390.9 MB, free: 80.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003029/0.7743, allocations: 307.3 kB / 391.2 MB, free: 79.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.7744, allocations: 0 / 391.2 MB, free: 79.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.572e-05/0.7744, allocations: 0 / 391.2 MB, free: 79.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.221e-05/0.7745, allocations: 7.234 kB / 391.3 MB, free: 79.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.7745, allocations: 3.984 kB / 391.3 MB, free: 79.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009859/0.7755, allocations: 38.5 kB / 391.3 MB, free: 79.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002579/0.7758, allocations: 98.3 kB / 391.4 MB, free: 79.61 MB / 314.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.0006347/0.7764, allocations: 476 kB / 391.9 MB, free: 79.11 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003612/0.7768, allocations: 126.5 kB / 392 MB, free: 78.99 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007335/0.7776, allocations: 185.2 kB / 392.2 MB, free: 78.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.7776, allocations: 3.938 kB / 392.2 MB, free: 78.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.7776, allocations: 3.516 kB / 392.2 MB, free: 78.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.7776, allocations: 0 / 392.2 MB, free: 78.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005548/0.7832, allocations: 2.42 MB / 394.6 MB, free: 76.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.7832, allocations: 0 / 394.6 MB, free: 76.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.671e-05/0.7833, allocations: 7.953 kB / 394.6 MB, free: 76.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.789e-06/0.7833, allocations: 0 / 394.6 MB, free: 76.6 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001345/0.7835, allocations: 31.61 kB / 394.6 MB, free: 76.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-06/0.7835, allocations: 0 / 394.6 MB, free: 76.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7835, allocations: 3.938 kB / 394.6 MB, free: 76.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003931/0.7874, allocations: 1.833 MB / 396.5 MB, free: 74.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/0.7894, allocations: 0.4956 MB / 397 MB, free: 74.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004808/0.79, allocations: 68.52 kB / 397 MB, free: 74.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009432/0.7909, allocations: 34.33 kB / 397.1 MB, free: 74.31 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0027/0.7937, allocations: 0.6344 MB / 397.7 MB, free: 73.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002607/0.794, allocations: 105.7 kB / 397.8 MB, free: 73.81 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003284/0.7973, allocations: 1.07 MB / 398.9 MB, free: 72.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.222e-06/0.7973, allocations: 0 / 398.9 MB, free: 72.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001517/0.7988, allocations: 195.9 kB / 399.1 MB, free: 72.58 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: 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.005646/0.8045, allocations: 2.647 MB / 401.7 MB, free: 69.92 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003782/0.8084, allocations: 2.087 MB / 403.8 MB, free: 67.72 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.8084, allocations: 0 / 403.8 MB, free: 67.72 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002487/0.8109, allocations: 1.584 MB / 405.4 MB, free: 66.03 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006315/0.8173, allocations: 0.7234 MB / 406.1 MB, free: 65.32 MB / 314.7 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009288/0.8266, allocations: 3.132 MB / 409.2 MB, free: 62.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000969/0.8276, allocations: 1.151 MB / 410.4 MB, free: 60.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002791/0.828, allocations: 215.3 kB / 410.6 MB, free: 60.78 MB / 314.7 MB Notification: Performance of SimCode: time 1.402e-06/0.828, allocations: 0 / 410.6 MB, free: 60.78 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.133/3.961, allocations: 17.6 MB / 428.2 MB, free: 43.09 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.RAM_res.mat does not exist to compare? outputFormat=mat