Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.702/1.702, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.321e-05/2.325e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2503, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1214/0.3717, allocations: 71.72 MB / 330 MB, free: 6.121 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.372, allocations: 63.97 kB / 330.1 MB, free: 6.059 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0889/0.4609, allocations: 26.5 MB / 356.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.461, allocations: 0 / 356.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.847e-05/0.461, allocations: 11.94 kB / 356.6 MB, free: 11.55 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.001294/0.4623, allocations: 1 MB / 357.6 MB, free: 10.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.4624, allocations: 12.03 kB / 357.6 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002038/0.4626, allocations: 94.92 kB / 357.7 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007952/0.4634, allocations: 419.6 kB / 358.1 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.094e-05/0.4635, allocations: 20 kB / 358.2 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.4636, allocations: 20 kB / 358.2 MB, free: 9.871 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007933/0.4644, allocations: 336.1 kB / 358.5 MB, free: 9.539 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.4655, allocations: 471.2 kB / 359 MB, free: 9.074 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.4655, allocations: 0 / 359 MB, free: 9.074 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.131e-05/0.4656, allocations: 11.98 kB / 359 MB, free: 9.062 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.4656, allocations: 3.953 kB / 359 MB, free: 9.059 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.4677, allocations: 0.8796 MB / 359.9 MB, free: 8.141 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009461/0.4687, allocations: 490.7 kB / 360.3 MB, free: 7.648 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008546/0.4695, allocations: 472.9 kB / 360.8 MB, free: 7.184 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.4696, allocations: 0 / 360.8 MB, free: 7.184 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.4707, allocations: 0.6228 MB / 361.4 MB, free: 6.523 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 2.324e-06/0.4707, allocations: 0 / 361.4 MB, free: 6.523 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002141/0.4728, allocations: 0.8558 MB / 362.3 MB, free: 5.66 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002093/0.4731, allocations: 287.3 kB / 362.6 MB, free: 5.324 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00204/0.4751, allocations: 0.9721 MB / 363.5 MB, free: 4.34 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001139/0.4753, allocations: 33.7 kB / 363.6 MB, free: 4.301 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.4754, allocations: 196.5 kB / 363.8 MB, free: 4.109 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.4756, allocations: 71.16 kB / 363.8 MB, free: 4.039 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.661e-05/0.4756, allocations: 8 kB / 363.8 MB, free: 4.031 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.4758, allocations: 322.8 kB / 364.1 MB, free: 3.707 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007349/0.4765, allocations: 331.7 kB / 364.5 MB, free: 3.383 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000701/0.4772, allocations: 331.7 kB / 364.8 MB, free: 3.059 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004943/0.4778, allocations: 231.8 kB / 365 MB, free: 2.832 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4778, allocations: 0 / 365 MB, free: 2.832 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001918/0.4797, allocations: 0.7937 MB / 365.8 MB, free: 2.031 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002463/0.48, allocations: 251.8 kB / 366.1 MB, free: 1.742 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.48, allocations: 0 / 366.1 MB, free: 1.742 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.48, allocations: 0 / 366.1 MB, free: 1.742 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.327e-05/0.4801, allocations: 4 kB / 366.1 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.024e-06/0.4801, allocations: 0 / 366.1 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005559/0.4807, allocations: 47.75 kB / 366.1 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002265/0.4809, allocations: 127.9 kB / 366.2 MB, free: 1.566 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.0005003/0.4814, allocations: 407.4 kB / 366.6 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002239/0.4837, allocations: 0.9494 MB / 367.6 MB, free: 164 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001689/0.4839, allocations: 86.97 kB / 367.7 MB, free: 76 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.205/0.6889, allocations: 142.9 kB / 367.8 MB, free: 92.12 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.6889, allocations: 3.078 kB / 367.8 MB, free: 92.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.6889, allocations: 0 / 367.8 MB, free: 92.12 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.6889, allocations: 5.5 kB / 367.8 MB, free: 92.12 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003734/0.6927, allocations: 1.567 MB / 369.4 MB, free: 91.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.6927, allocations: 0 / 369.4 MB, free: 91.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.836e-05/0.6928, allocations: 1.125 kB / 369.4 MB, free: 91.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.6928, allocations: 1.188 kB / 369.4 MB, free: 91.78 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.492e-05/0.6929, allocations: 35.25 kB / 369.4 MB, free: 91.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.6929, allocations: 1.156 kB / 369.4 MB, free: 91.78 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.6929, allocations: 0 / 369.4 MB, free: 91.78 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002098/0.695, allocations: 1.049 MB / 370.5 MB, free: 91.65 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/0.6962, allocations: 0.5523 MB / 371 MB, free: 91.49 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002629/0.6965, allocations: 57.05 kB / 371.1 MB, free: 91.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005139/0.697, allocations: 37.58 kB / 371.1 MB, free: 91.49 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005884/0.6976, allocations: 239.6 kB / 371.3 MB, free: 91.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002122/0.6979, allocations: 125.5 kB / 371.5 MB, free: 91.49 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001519/0.6994, allocations: 0.8083 MB / 372.3 MB, free: 91.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6994, allocations: 1.094 kB / 372.3 MB, free: 91.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006995/0.7001, allocations: 115.2 kB / 372.4 MB, free: 91.27 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.002465/0.7026, allocations: 1.682 MB / 374.1 MB, free: 90.56 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001887/0.7045, allocations: 1.468 MB / 375.5 MB, free: 90.12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.7045, allocations: 0 / 375.5 MB, free: 90.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.7057, allocations: 1.112 MB / 376.7 MB, free: 89.54 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/0.7073, allocations: 271.8 kB / 376.9 MB, free: 89.49 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003838/0.7112, allocations: 1.903 MB / 378.8 MB, free: 88.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007762/0.712, allocations: 1.031 MB / 379.9 MB, free: 87.92 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.7121, allocations: 72.25 kB / 379.9 MB, free: 87.86 MB / 314.7 MB Notification: Performance of SimCode: time 9.71e-07/0.7121, allocations: 3.281 kB / 379.9 MB, free: 87.86 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.587/3.299, allocations: 8.825 MB / 388.8 MB, free: 84.27 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat