Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.663/1.663, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.469e-05/3.487e-05, allocations: 4 kB / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.254, allocations: 38.77 MB / 263.8 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1258/0.3798, allocations: 72.42 MB / 336.2 MB, free: 1.238 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/0.3801, allocations: 71.95 kB / 336.3 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3236/0.7037, allocations: 33.25 MB / 369.6 MB, free: 90.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.7038, allocations: 0 / 369.6 MB, free: 90.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.793e-05/0.7039, allocations: 10.31 kB / 369.6 MB, free: 90.62 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.001717/0.7056, allocations: 1.006 MB / 370.6 MB, free: 90.02 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.165e-05/0.7057, allocations: 12.34 kB / 370.6 MB, free: 90.02 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001838/0.7059, allocations: 56.3 kB / 370.6 MB, free: 89.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002881/0.7062, allocations: 83.69 kB / 370.7 MB, free: 89.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.7072, allocations: 416.2 kB / 371.1 MB, free: 89.69 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.395e-05/0.7073, allocations: 19.81 kB / 371.2 MB, free: 89.69 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.7074, allocations: 24.22 kB / 371.2 MB, free: 89.69 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.7088, allocations: 0.4883 MB / 371.7 MB, free: 89.65 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.7089, allocations: 0 / 371.7 MB, free: 89.65 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.434e-05/0.709, allocations: 14.19 kB / 371.7 MB, free: 89.65 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.709, allocations: 5 kB / 371.7 MB, free: 89.65 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008768/0.7099, allocations: 349.1 kB / 372 MB, free: 89.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.712, allocations: 0.9242 MB / 373 MB, free: 89.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000843/0.7129, allocations: 497.9 kB / 373.4 MB, free: 89.31 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007729/0.7136, allocations: 480.8 kB / 373.9 MB, free: 89.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.7137, allocations: 4.5 kB / 373.9 MB, free: 89.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009966/0.7147, allocations: 0.6266 MB / 374.5 MB, free: 89.12 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 2.665e-06/0.7147, allocations: 0 / 374.5 MB, free: 89.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002262/0.717, allocations: 1.125 MB / 375.7 MB, free: 88.82 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001848/0.7172, allocations: 282.5 kB / 375.9 MB, free: 88.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002071/0.7193, allocations: 1.008 MB / 376.9 MB, free: 88.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001512/0.7195, allocations: 42.88 kB / 377 MB, free: 88.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.7196, allocations: 197.8 kB / 377.2 MB, free: 88.08 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.7198, allocations: 75.17 kB / 377.3 MB, free: 88.05 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.457e-05/0.7198, allocations: 13.78 kB / 377.3 MB, free: 88.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.891e-05/0.7199, allocations: 327.9 kB / 377.6 MB, free: 87.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006792/0.7206, allocations: 336.5 kB / 377.9 MB, free: 87.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006505/0.7213, allocations: 344.7 kB / 378.3 MB, free: 87.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000628/0.7219, allocations: 481.5 kB / 378.7 MB, free: 87.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.7219, allocations: 0 / 378.7 MB, free: 87.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001961/0.7239, allocations: 1.063 MB / 379.8 MB, free: 87.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001781/0.7241, allocations: 248.9 kB / 380 MB, free: 86.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.7241, allocations: 0 / 380 MB, free: 86.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.7242, allocations: 0 / 380 MB, free: 86.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.338e-05/0.7242, allocations: 10.75 kB / 380 MB, free: 86.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.7242, allocations: 3.953 kB / 380 MB, free: 86.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005953/0.7248, allocations: 41.03 kB / 380.1 MB, free: 86.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001785/0.725, allocations: 119.9 kB / 380.2 MB, free: 86.8 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.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.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.0004062/0.7254, allocations: 419.9 kB / 380.6 MB, free: 86.44 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.7256, allocations: 94.09 kB / 380.7 MB, free: 86.4 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003859/0.726, allocations: 141.8 kB / 380.8 MB, free: 86.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.726, allocations: 0 / 380.8 MB, free: 86.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.726, allocations: 0 / 380.8 MB, free: 86.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.7261, allocations: 3.953 kB / 380.8 MB, free: 86.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003157/0.7292, allocations: 1.908 MB / 382.8 MB, free: 85.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.7293, allocations: 0 / 382.8 MB, free: 85.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.83e-05/0.7293, allocations: 3.516 kB / 382.8 MB, free: 85.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.7293, allocations: 3.094 kB / 382.8 MB, free: 85.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.233e-05/0.7294, allocations: 32.66 kB / 382.8 MB, free: 85.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.7294, allocations: 0 / 382.8 MB, free: 85.31 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.7295, allocations: 7.797 kB / 382.8 MB, free: 85.31 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/0.7318, allocations: 1.344 MB / 384.1 MB, free: 84.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.7331, allocations: 0.5574 MB / 384.7 MB, free: 84.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002243/0.7333, allocations: 62.25 kB / 384.8 MB, free: 84.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005276/0.7338, allocations: 35 kB / 384.8 MB, free: 84.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005574/0.7344, allocations: 243.7 kB / 385 MB, free: 84.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002041/0.7346, allocations: 131.2 kB / 385.2 MB, free: 84.07 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001541/0.7362, allocations: 0.8438 MB / 386 MB, free: 83.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7362, allocations: 0 / 386 MB, free: 83.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006869/0.7369, allocations: 120 kB / 386.1 MB, free: 83.21 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,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.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.002693/0.7396, allocations: 1.983 MB / 388.1 MB, free: 81.31 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002017/0.7416, allocations: 1.49 MB / 389.6 MB, free: 79.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.7417, allocations: 0 / 389.6 MB, free: 79.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.7429, allocations: 1.137 MB / 390.7 MB, free: 78.67 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001694/0.7446, allocations: 254.6 kB / 391 MB, free: 78.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004099/0.7488, allocations: 1.934 MB / 392.9 MB, free: 76.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008078/0.7496, allocations: 1.028 MB / 393.9 MB, free: 75.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.7497, allocations: 70.75 kB / 394 MB, free: 75.71 MB / 314.7 MB Notification: Performance of SimCode: time 1.183e-06/0.7498, allocations: 0 / 394 MB, free: 75.71 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.566/3.316, allocations: 8.862 MB / 402.9 MB, free: 67.93 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat