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.662/1.662, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.567e-05/2.566e-05, allocations: 8 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2497, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1254/0.3752, allocations: 73.94 MB / 332.3 MB, free: 3.883 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.3755, allocations: 63.97 kB / 332.3 MB, free: 3.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3456/0.7211, allocations: 38.95 MB / 371.3 MB, free: 89.29 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.7212, allocations: 0 / 371.3 MB, free: 89.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.5e-05/0.7213, allocations: 18.25 kB / 371.3 MB, free: 89.29 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.001738/0.723, allocations: 1.348 MB / 372.6 MB, free: 88.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.7231, allocations: 9.438 kB / 372.6 MB, free: 88.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003039/0.7234, allocations: 121.4 kB / 372.8 MB, free: 88.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009317/0.7243, allocations: 467.9 kB / 373.2 MB, free: 88.13 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.524e-05/0.7244, allocations: 12.72 kB / 373.2 MB, free: 88.13 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.702e-05/0.7245, allocations: 23.53 kB / 373.3 MB, free: 88.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008034/0.7253, allocations: 451.9 kB / 373.7 MB, free: 88.13 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.7264, allocations: 0.5484 MB / 374.2 MB, free: 88.1 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.7264, allocations: 3.703 kB / 374.3 MB, free: 88.1 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.566e-05/0.7265, allocations: 6.922 kB / 374.3 MB, free: 88.1 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.7265, allocations: 2.094 kB / 374.3 MB, free: 88.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002107/0.7286, allocations: 0.8691 MB / 375.1 MB, free: 87.81 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009376/0.7296, allocations: 0.7217 MB / 375.9 MB, free: 87.79 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008193/0.7304, allocations: 0.6947 MB / 376.5 MB, free: 87.78 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.7305, allocations: 3.797 kB / 376.6 MB, free: 87.78 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009549/0.7314, allocations: 0.7261 MB / 377.3 MB, free: 87.6 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 2.615e-06/0.7315, allocations: 0 / 377.3 MB, free: 87.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.002236/0.7337, allocations: 1.261 MB / 378.5 MB, free: 87.49 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.7339, allocations: 336.6 kB / 378.9 MB, free: 87.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002308/0.7362, allocations: 1.245 MB / 380.1 MB, free: 86.85 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001332/0.7364, allocations: 42.66 kB / 380.2 MB, free: 86.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/0.7366, allocations: 280.7 kB / 380.4 MB, free: 86.67 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.7368, allocations: 83.22 kB / 380.5 MB, free: 86.63 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.342e-05/0.7368, allocations: 6.969 kB / 380.5 MB, free: 86.63 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.122e-05/0.7369, allocations: 328.7 kB / 380.8 MB, free: 86.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006587/0.7376, allocations: 455.5 kB / 381.3 MB, free: 86.31 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006566/0.7383, allocations: 455.2 kB / 381.7 MB, free: 86.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006402/0.7389, allocations: 361.4 kB / 382.1 MB, free: 86.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.7389, allocations: 0 / 382.1 MB, free: 86.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001914/0.7409, allocations: 1.155 MB / 383.2 MB, free: 85.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002085/0.7411, allocations: 304.9 kB / 383.5 MB, free: 85.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.7411, allocations: 3.719 kB / 383.5 MB, free: 85.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.7412, allocations: 0 / 383.5 MB, free: 85.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.137e-05/0.7412, allocations: 0 / 383.5 MB, free: 85.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.7412, allocations: 7.938 kB / 383.5 MB, free: 85.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007431/0.742, allocations: 43.95 kB / 383.6 MB, free: 85.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001767/0.7422, allocations: 101.2 kB / 383.7 MB, free: 85.52 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.0004529/0.7426, allocations: 461.3 kB / 384.1 MB, free: 85.11 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002405/0.7451, allocations: 1.326 MB / 385.5 MB, free: 84.76 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002243/0.7453, allocations: 132.8 kB / 385.6 MB, free: 84.7 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005155/0.7459, allocations: 189.1 kB / 385.8 MB, free: 84.6 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.7459, allocations: 6.484 kB / 385.8 MB, free: 84.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.7459, allocations: 3.938 kB / 385.8 MB, free: 84.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.7459, allocations: 0 / 385.8 MB, free: 84.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.7493, allocations: 1.99 MB / 387.8 MB, free: 83.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.7494, allocations: 0 / 387.8 MB, free: 83.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.001e-05/0.7494, allocations: 7.531 kB / 387.8 MB, free: 83.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.7494, allocations: 0 / 387.8 MB, free: 83.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.354e-05/0.7495, allocations: 37.17 kB / 387.8 MB, free: 83.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.7495, allocations: 10.67 kB / 387.8 MB, free: 83.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.7495, allocations: 0 / 387.8 MB, free: 83.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002362/0.7519, allocations: 1.434 MB / 389.3 MB, free: 82.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/0.7532, allocations: 0.5012 MB / 389.8 MB, free: 82.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003257/0.7536, allocations: 63.34 kB / 389.8 MB, free: 82.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005639/0.7542, allocations: 31.64 kB / 389.9 MB, free: 82.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001901/0.7561, allocations: 0.6287 MB / 390.5 MB, free: 81.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/0.7563, allocations: 113.3 kB / 390.6 MB, free: 81.68 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001885/0.7582, allocations: 1.013 MB / 391.6 MB, free: 80.79 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.7582, allocations: 4 kB / 391.6 MB, free: 80.79 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001092/0.7593, allocations: 197.3 kB / 391.8 MB, free: 80.61 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.003458/0.7628, allocations: 2.255 MB / 394.1 MB, free: 78.55 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002185/0.765, allocations: 2.046 MB / 396.1 MB, free: 76.53 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.7651, allocations: 4 kB / 396.1 MB, free: 76.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001475/0.7665, allocations: 1.573 MB / 397.7 MB, free: 74.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00448/0.7711, allocations: 0.7226 MB / 398.4 MB, free: 74.42 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006968/0.7781, allocations: 2.992 MB / 401.4 MB, free: 71.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009792/0.7791, allocations: 1.155 MB / 402.6 MB, free: 70.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.7794, allocations: 209.7 kB / 402.8 MB, free: 70.52 MB / 314.7 MB Notification: Performance of SimCode: time 1.233e-06/0.7794, allocations: 0 / 402.8 MB, free: 70.52 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.149/3.928, allocations: 17.6 MB / 420.4 MB, free: 53.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