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.638/1.638, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.396e-05/3.403e-05, allocations: 4 kB / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2504, allocations: 38.77 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1504/0.4009, allocations: 72.43 MB / 336.3 MB, free: 1.211 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.4013, allocations: 71.95 kB / 336.4 MB, free: 1.141 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3323/0.7336, allocations: 33.24 MB / 369.6 MB, free: 90.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.716e-06/0.7336, allocations: 1 kB / 369.6 MB, free: 90.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.466e-05/0.7337, allocations: 8.969 kB / 369.6 MB, free: 90.54 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.0018/0.7355, allocations: 1.011 MB / 370.6 MB, free: 89.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.951e-05/0.7356, allocations: 9.594 kB / 370.6 MB, free: 89.94 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002128/0.7358, allocations: 56.17 kB / 370.7 MB, free: 89.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003124/0.7361, allocations: 83.97 kB / 370.8 MB, free: 89.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00105/0.7372, allocations: 419.6 kB / 371.2 MB, free: 89.6 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.395e-05/0.7373, allocations: 25.3 kB / 371.2 MB, free: 89.6 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.7375, allocations: 23.83 kB / 371.2 MB, free: 89.6 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.739, allocations: 489.4 kB / 371.7 MB, free: 89.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.739, allocations: 2.812 kB / 371.7 MB, free: 89.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.906e-05/0.7391, allocations: 14.92 kB / 371.7 MB, free: 89.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.7392, allocations: 6.391 kB / 371.7 MB, free: 89.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009122/0.7401, allocations: 346.6 kB / 372.1 MB, free: 89.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002273/0.7424, allocations: 0.9221 MB / 373 MB, free: 89.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009521/0.7434, allocations: 497.6 kB / 373.5 MB, free: 89.22 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008396/0.7443, allocations: 486.3 kB / 373.9 MB, free: 89.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.7443, allocations: 0 / 373.9 MB, free: 89.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00107/0.7454, allocations: 0.6308 MB / 374.6 MB, free: 89.03 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 4.629e-06/0.7455, allocations: 0 / 374.6 MB, free: 89.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002255/0.7477, allocations: 1.12 MB / 375.7 MB, free: 88.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001597/0.748, allocations: 281.5 kB / 376 MB, free: 88.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002146/0.7501, allocations: 1.012 MB / 377 MB, free: 88.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001916/0.7504, allocations: 41.33 kB / 377 MB, free: 88.15 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.7505, allocations: 196.2 kB / 377.2 MB, free: 87.99 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.7507, allocations: 75.02 kB / 377.3 MB, free: 87.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.336e-05/0.7507, allocations: 7.906 kB / 377.3 MB, free: 87.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.962e-05/0.7508, allocations: 325.9 kB / 377.6 MB, free: 87.64 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006984/0.7515, allocations: 343.3 kB / 377.9 MB, free: 87.64 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006627/0.7522, allocations: 337.3 kB / 378.3 MB, free: 87.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006727/0.7529, allocations: 489.5 kB / 378.7 MB, free: 87.42 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.7529, allocations: 0 / 378.7 MB, free: 87.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001983/0.7549, allocations: 1.062 MB / 379.8 MB, free: 87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001969/0.7552, allocations: 247.2 kB / 380.1 MB, free: 86.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.7552, allocations: 3.938 kB / 380.1 MB, free: 86.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.436e-05/0.7552, allocations: 4.719 kB / 380.1 MB, free: 86.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.234e-05/0.7553, allocations: 0 / 380.1 MB, free: 86.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.7553, allocations: 6.734 kB / 380.1 MB, free: 86.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006552/0.756, allocations: 37.52 kB / 380.1 MB, free: 86.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001891/0.7562, allocations: 124.1 kB / 380.2 MB, free: 86.75 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.0004526/0.7566, allocations: 418.7 kB / 380.6 MB, free: 86.4 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002399/0.7569, allocations: 88.81 kB / 380.7 MB, free: 86.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000405/0.7573, allocations: 143 kB / 380.9 MB, free: 86.28 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.7573, allocations: 3.938 kB / 380.9 MB, free: 86.28 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.7573, allocations: 3.531 kB / 380.9 MB, free: 86.28 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.7574, allocations: 3.953 kB / 380.9 MB, free: 86.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00351/0.7609, allocations: 1.903 MB / 382.8 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.7609, allocations: 3.031 kB / 382.8 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.195e-05/0.761, allocations: 7.375 kB / 382.8 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.761, allocations: 3.844 kB / 382.8 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.7611, allocations: 37.64 kB / 382.8 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.7611, allocations: 0 / 382.8 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.7611, allocations: 3.953 kB / 382.8 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002473/0.7636, allocations: 1.346 MB / 384.2 MB, free: 84.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001465/0.7651, allocations: 0.5528 MB / 384.7 MB, free: 84.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002814/0.7655, allocations: 62.53 kB / 384.8 MB, free: 84.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005793/0.7661, allocations: 33.09 kB / 384.8 MB, free: 84.23 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005851/0.7667, allocations: 243.3 kB / 385.1 MB, free: 84.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001982/0.7669, allocations: 134.7 kB / 385.2 MB, free: 84.06 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001761/0.7686, allocations: 0.8411 MB / 386 MB, free: 83.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.202e-06/0.7687, allocations: 4 kB / 386 MB, free: 83.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008803/0.7696, allocations: 120 kB / 386.2 MB, free: 83.2 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.002869/0.7725, allocations: 1.972 MB / 388.1 MB, free: 81.31 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002195/0.7748, allocations: 1.491 MB / 389.6 MB, free: 79.83 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.7748, allocations: 4 kB / 389.6 MB, free: 79.83 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001354/0.7762, allocations: 1.135 MB / 390.8 MB, free: 78.66 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/0.7782, allocations: 255.2 kB / 391 MB, free: 78.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004777/0.783, allocations: 1.932 MB / 392.9 MB, free: 76.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008018/0.7838, allocations: 1.029 MB / 394 MB, free: 75.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.784, allocations: 69.86 kB / 394 MB, free: 75.7 MB / 314.7 MB Notification: Performance of SimCode: time 1.483e-06/0.784, allocations: 3.844 kB / 394 MB, free: 75.7 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.612/3.396, allocations: 8.854 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