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.667/1.667, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.422e-05/3.44e-05, allocations: 8 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2524, allocations: 38.77 MB / 263.9 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1301/0.3825, allocations: 74.61 MB / 338.5 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.3828, allocations: 67.97 kB / 338.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3547/0.7376, allocations: 39.31 MB / 377.8 MB, free: 88.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.7376, allocations: 0 / 377.8 MB, free: 88.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.799e-05/0.7377, allocations: 10.81 kB / 377.9 MB, free: 88.26 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.001658/0.7394, allocations: 1.348 MB / 379.2 MB, free: 87.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.7394, allocations: 11.5 kB / 379.2 MB, free: 87.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000148/0.7396, allocations: 52.59 kB / 379.3 MB, free: 87.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002134/0.7398, allocations: 120.8 kB / 379.4 MB, free: 87.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008618/0.7407, allocations: 473.8 kB / 379.8 MB, free: 86.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.575e-05/0.7408, allocations: 16.75 kB / 379.9 MB, free: 86.96 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.7409, allocations: 21.25 kB / 379.9 MB, free: 86.96 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.7419, allocations: 0.5813 MB / 380.5 MB, free: 86.92 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.7419, allocations: 0 / 380.5 MB, free: 86.92 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.463e-05/0.742, allocations: 10.75 kB / 380.5 MB, free: 86.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.742, allocations: 7.156 kB / 380.5 MB, free: 86.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007202/0.7428, allocations: 459.1 kB / 380.9 MB, free: 86.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.7448, allocations: 0.9137 MB / 381.8 MB, free: 86.59 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000971/0.7458, allocations: 0.718 MB / 382.6 MB, free: 86.4 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008666/0.7467, allocations: 0.7149 MB / 383.3 MB, free: 86.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.7467, allocations: 3.812 kB / 383.3 MB, free: 86.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009976/0.7477, allocations: 0.725 MB / 384 MB, free: 85.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.226e-06/0.7478, allocations: 0 / 384 MB, free: 85.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.002348/0.7501, allocations: 1.566 MB / 385.6 MB, free: 85.08 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.7503, allocations: 334.4 kB / 385.9 MB, free: 84.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002431/0.7528, allocations: 1.303 MB / 387.2 MB, free: 83.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001362/0.7529, allocations: 43.91 kB / 387.2 MB, free: 83.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.7532, allocations: 296.2 kB / 387.5 MB, free: 83.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.7533, allocations: 82 kB / 387.6 MB, free: 83.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.582e-05/0.7534, allocations: 11.66 kB / 387.6 MB, free: 83.13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.934e-05/0.7535, allocations: 333.4 kB / 387.9 MB, free: 82.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007046/0.7542, allocations: 461.3 kB / 388.4 MB, free: 82.39 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000663/0.7549, allocations: 467.6 kB / 388.9 MB, free: 81.99 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007169/0.7556, allocations: 0.6429 MB / 389.5 MB, free: 81.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.7556, allocations: 0 / 389.5 MB, free: 81.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002051/0.7577, allocations: 1.474 MB / 391 MB, free: 79.95 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002031/0.7579, allocations: 305.5 kB / 391.3 MB, free: 79.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.758, allocations: 3.953 kB / 391.3 MB, free: 79.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.758, allocations: 0 / 391.3 MB, free: 79.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.083e-05/0.758, allocations: 4 kB / 391.3 MB, free: 79.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.7581, allocations: 0 / 391.3 MB, free: 79.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006304/0.7587, allocations: 34.5 kB / 391.3 MB, free: 79.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001654/0.7589, allocations: 106.3 kB / 391.4 MB, free: 79.48 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.0004223/0.7593, allocations: 480.9 kB / 391.9 MB, free: 78.99 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.7595, allocations: 126.5 kB / 392 MB, free: 78.87 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000499/0.76, allocations: 179.8 kB / 392.2 MB, free: 78.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.82e-06/0.7601, allocations: 7.891 kB / 392.2 MB, free: 78.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.7601, allocations: 0 / 392.2 MB, free: 78.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.7601, allocations: 3.234 kB / 392.2 MB, free: 78.7 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003645/0.7637, allocations: 2.415 MB / 394.6 MB, free: 76.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.7638, allocations: 0 / 394.6 MB, free: 76.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.12e-05/0.7638, allocations: 4 kB / 394.6 MB, free: 76.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.7639, allocations: 3.953 kB / 394.6 MB, free: 76.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.53e-05/0.764, allocations: 35.42 kB / 394.6 MB, free: 76.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.764, allocations: 0 / 394.6 MB, free: 76.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.764, allocations: 3.609 kB / 394.7 MB, free: 76.45 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002606/0.7666, allocations: 1.829 MB / 396.5 MB, free: 74.72 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/0.7679, allocations: 0.4969 MB / 397 MB, free: 74.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000284/0.7682, allocations: 68.8 kB / 397 MB, free: 74.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005669/0.7688, allocations: 23.42 kB / 397.1 MB, free: 74.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001852/0.7706, allocations: 0.6362 MB / 397.7 MB, free: 73.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001862/0.7708, allocations: 107.6 kB / 397.8 MB, free: 73.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002071/0.7729, allocations: 1.072 MB / 398.9 MB, free: 72.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.773, allocations: 0 / 398.9 MB, free: 72.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001117/0.7741, allocations: 199.4 kB / 399.1 MB, free: 72.43 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.003788/0.7779, allocations: 2.65 MB / 401.7 MB, free: 69.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002402/0.7804, allocations: 2.08 MB / 403.8 MB, free: 67.58 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.7804, allocations: 0 / 403.8 MB, free: 67.58 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001655/0.7821, allocations: 1.585 MB / 405.4 MB, free: 65.89 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00451/0.7866, allocations: 0.7194 MB / 406.1 MB, free: 65.18 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.007384/0.7941, allocations: 3.137 MB / 409.2 MB, free: 62.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009591/0.7951, allocations: 1.155 MB / 410.4 MB, free: 60.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00027/0.7954, allocations: 211.4 kB / 410.6 MB, free: 60.63 MB / 314.7 MB Notification: Performance of SimCode: time 1.193e-06/0.7954, allocations: 0 / 410.6 MB, free: 60.63 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.971/3.766, allocations: 17.59 MB / 428.2 MB, free: 42.94 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