Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.697/1.697, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.619e-05/3.626e-05, allocations: 4 kB / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2836, allocations: 38.77 MB / 263.9 MB, free: 9.816 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1296/0.4132, allocations: 72.39 MB / 336.3 MB, free: 1.316 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/0.4136, allocations: 67.97 kB / 336.3 MB, free: 1.25 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09859/0.5122, allocations: 26.69 MB / 363 MB, free: 6.562 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5123, allocations: 0 / 363 MB, free: 6.562 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.202e-05/0.5123, allocations: 15.94 kB / 363 MB, free: 6.547 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001754/0.5141, allocations: 1 MB / 364 MB, free: 5.457 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.5142, allocations: 12.03 kB / 364 MB, free: 5.445 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002306/0.5144, allocations: 58.55 kB / 364.1 MB, free: 5.379 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002321/0.5146, allocations: 94.91 kB / 364.2 MB, free: 5.285 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009651/0.5156, allocations: 415.6 kB / 364.6 MB, free: 4.836 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.256e-05/0.5157, allocations: 20 kB / 364.6 MB, free: 4.816 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.5159, allocations: 28 kB / 364.6 MB, free: 4.789 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.5171, allocations: 482.3 kB / 365.1 MB, free: 4.309 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.5172, allocations: 0 / 365.1 MB, free: 4.309 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.534e-05/0.5173, allocations: 15.98 kB / 365.1 MB, free: 4.293 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.5173, allocations: 7.953 kB / 365.1 MB, free: 4.285 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009179/0.5183, allocations: 352.1 kB / 365.5 MB, free: 3.941 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.5208, allocations: 0.9106 MB / 366.4 MB, free: 2.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.522, allocations: 498.6 kB / 366.9 MB, free: 2.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/0.5232, allocations: 484.9 kB / 367.4 MB, free: 2.004 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.387e-05/0.5233, allocations: 8 kB / 367.4 MB, free: 1.996 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001364/0.5247, allocations: 0.6228 MB / 368 MB, free: 1.336 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 4.809e-06/0.5247, allocations: 0 / 368 MB, free: 1.336 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002714/0.5274, allocations: 1.117 MB / 369.1 MB, free: 172 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.216/0.7435, allocations: 275.4 kB / 369.4 MB, free: 89.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002997/0.7466, allocations: 1.008 MB / 370.4 MB, free: 89.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000203/0.7468, allocations: 46.95 kB / 370.4 MB, free: 89.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.747, allocations: 147.8 kB / 370.6 MB, free: 89.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.7472, allocations: 71.86 kB / 370.6 MB, free: 89.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.112e-05/0.7472, allocations: 9.938 kB / 370.7 MB, free: 89.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.7474, allocations: 344.5 kB / 371 MB, free: 89.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00092/0.7483, allocations: 338.4 kB / 371.3 MB, free: 89.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007729/0.7491, allocations: 339.9 kB / 371.7 MB, free: 89.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007009/0.7499, allocations: 489.6 kB / 372.1 MB, free: 88.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.7499, allocations: 3.938 kB / 372.1 MB, free: 88.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002105/0.752, allocations: 1.078 MB / 373.2 MB, free: 88.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001982/0.7523, allocations: 242.5 kB / 373.4 MB, free: 88.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.7523, allocations: 0 / 373.4 MB, free: 88.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/0.7523, allocations: 3.781 kB / 373.5 MB, free: 88.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.516e-05/0.7524, allocations: 6.312 kB / 373.5 MB, free: 88.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.7524, allocations: 0 / 373.5 MB, free: 88.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006052/0.753, allocations: 45.52 kB / 373.5 MB, free: 88.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001903/0.7532, allocations: 125.3 kB / 373.6 MB, free: 88.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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * 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.0004462/0.7537, allocations: 409.5 kB / 374 MB, free: 88.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.7539, allocations: 84.97 kB / 374.1 MB, free: 88.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004125/0.7543, allocations: 152 kB / 374.3 MB, free: 88.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.7543, allocations: 0 / 374.3 MB, free: 88.05 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.7543, allocations: 3.703 kB / 374.3 MB, free: 88.05 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.7543, allocations: 0 / 374.3 MB, free: 88.05 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003522/0.7579, allocations: 1.915 MB / 376.2 MB, free: 87.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.956e-06/0.7579, allocations: 3.938 kB / 376.2 MB, free: 87.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.372e-05/0.758, allocations: 8.547 kB / 376.2 MB, free: 87.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.617e-06/0.758, allocations: 0 / 376.2 MB, free: 87.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.892e-05/0.7581, allocations: 32.81 kB / 376.2 MB, free: 87.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.7581, allocations: 3.422 kB / 376.2 MB, free: 87.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.7581, allocations: 0 / 376.2 MB, free: 87.45 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002433/0.7606, allocations: 1.341 MB / 377.6 MB, free: 87.06 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/0.7621, allocations: 0.5606 MB / 378.1 MB, free: 86.87 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002577/0.7624, allocations: 57.3 kB / 378.2 MB, free: 86.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005542/0.7629, allocations: 39.89 kB / 378.2 MB, free: 86.87 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005989/0.7635, allocations: 231.6 kB / 378.4 MB, free: 86.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/0.7638, allocations: 136.1 kB / 378.6 MB, free: 86.86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001776/0.7656, allocations: 0.8392 MB / 379.4 MB, free: 86.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.82e-07/0.7656, allocations: 0 / 379.4 MB, free: 86.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007917/0.7664, allocations: 129.2 kB / 379.5 MB, free: 86.64 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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 7 * 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.002917/0.7693, allocations: 1.983 MB / 381.5 MB, free: 85.44 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002272/0.7717, allocations: 1.491 MB / 383 MB, free: 84.51 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.7717, allocations: 0 / 383 MB, free: 84.51 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.7732, allocations: 1.136 MB / 384.2 MB, free: 83.69 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.7751, allocations: 259.1 kB / 384.4 MB, free: 83.65 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004636/0.7798, allocations: 1.847 MB / 386.3 MB, free: 82.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008307/0.7806, allocations: 1.035 MB / 387.3 MB, free: 81.1 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002158/0.7809, allocations: 33 kB / 387.3 MB, free: 81.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.781, allocations: 70.09 kB / 387.4 MB, free: 81.01 MB / 314.7 MB Notification: Performance of SimCode: time 1.262e-06/0.781, allocations: 0 / 387.4 MB, free: 81.01 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04647/0.8275, allocations: 15.36 MB / 402.7 MB, free: 67.49 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002608/0.8279, allocations: 144.9 kB / 402.9 MB, free: 67.27 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.489/3.316, allocations: 4 kB / 402.9 MB, free: 67.27 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat