Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.626/1.626, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.644e-05/3.651e-05, allocations: 4 kB / 225.1 MB, free: 2.734 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2781, allocations: 38.77 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1511/0.4292, allocations: 72.7 MB / 336.5 MB, free: 1.059 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.4296, allocations: 71.97 kB / 336.6 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1065/0.5361, allocations: 30.1 MB / 366.7 MB, free: 2.891 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.5361, allocations: 0 / 366.7 MB, free: 2.891 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.361e-05/0.5362, allocations: 16 kB / 366.7 MB, free: 2.875 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.002403/0.5386, allocations: 1.288 MB / 368 MB, free: 1.488 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.5387, allocations: 16.03 kB / 368 MB, free: 1.473 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002581/0.5389, allocations: 58.55 kB / 368.1 MB, free: 1.406 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003058/0.5393, allocations: 134.4 kB / 368.2 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.5406, allocations: 0.5132 MB / 368.7 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.532e-05/0.5407, allocations: 27.92 kB / 368.8 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.5409, allocations: 32 kB / 368.8 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.5424, allocations: 0.6105 MB / 369.4 MB, free: 36 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.5425, allocations: 0 / 369.4 MB, free: 36 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/0.5426, allocations: 19.95 kB / 369.4 MB, free: 16 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.5426, allocations: 7.984 kB / 369.4 MB, free: 8 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2151/0.7577, allocations: 453.7 kB / 369.9 MB, free: 88.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003264/0.761, allocations: 1.125 MB / 371 MB, free: 87.86 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.7625, allocations: 0.6828 MB / 371.7 MB, free: 87.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00117/0.7638, allocations: 0.6717 MB / 372.4 MB, free: 87.83 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.7638, allocations: 3.875 kB / 372.4 MB, free: 87.83 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001305/0.7651, allocations: 0.7407 MB / 373.1 MB, free: 87.65 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 4.98e-06/0.7652, allocations: 0 / 373.1 MB, free: 87.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002746/0.768, allocations: 1.394 MB / 374.5 MB, free: 87.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002046/0.7682, allocations: 328.1 kB / 374.8 MB, free: 87.01 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003188/0.7714, allocations: 1.465 MB / 376.3 MB, free: 86.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002226/0.7717, allocations: 41.33 kB / 376.3 MB, free: 86.67 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002268/0.7719, allocations: 248.9 kB / 376.6 MB, free: 86.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.7721, allocations: 75.69 kB / 376.6 MB, free: 86.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.753e-05/0.7722, allocations: 22.14 kB / 376.7 MB, free: 86.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.112e-05/0.7723, allocations: 321.4 kB / 377 MB, free: 86.17 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009018/0.7732, allocations: 442.3 kB / 377.4 MB, free: 86.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009262/0.7742, allocations: 446.5 kB / 377.8 MB, free: 86.17 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008231/0.775, allocations: 0.5718 MB / 378.4 MB, free: 85.85 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.7751, allocations: 0 / 378.4 MB, free: 85.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002449/0.7775, allocations: 1.293 MB / 379.7 MB, free: 85.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000241/0.7778, allocations: 294.8 kB / 380 MB, free: 84.99 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.7778, allocations: 7 kB / 380 MB, free: 84.99 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.7779, allocations: 3.953 kB / 380 MB, free: 84.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.749e-05/0.7779, allocations: 0 / 380 MB, free: 84.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.7779, allocations: 0 / 380 MB, free: 84.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007598/0.7787, allocations: 54.64 kB / 380.1 MB, free: 84.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002086/0.7789, allocations: 123 kB / 380.2 MB, free: 84.98 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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 8 * 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.0005062/0.7795, allocations: 464.4 kB / 380.6 MB, free: 84.59 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002906/0.7798, allocations: 136.6 kB / 380.8 MB, free: 84.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005657/0.7803, allocations: 206.3 kB / 381 MB, free: 84.42 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.7804, allocations: 0 / 381 MB, free: 84.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/0.7804, allocations: 3.953 kB / 381 MB, free: 84.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.7804, allocations: 0 / 381 MB, free: 84.42 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004541/0.7849, allocations: 2.315 MB / 383.3 MB, free: 83.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.607e-06/0.785, allocations: 0 / 383.3 MB, free: 83.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.249e-05/0.7851, allocations: 3.531 kB / 383.3 MB, free: 83.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.7851, allocations: 0 / 383.3 MB, free: 83.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001353/0.7852, allocations: 39.61 kB / 383.3 MB, free: 83.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.7852, allocations: 0 / 383.3 MB, free: 83.27 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.7852, allocations: 0 / 383.3 MB, free: 83.27 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002908/0.7882, allocations: 1.62 MB / 384.9 MB, free: 82.47 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/0.79, allocations: 0.6552 MB / 385.6 MB, free: 82.05 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003376/0.7904, allocations: 67.09 kB / 385.7 MB, free: 82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007083/0.7911, allocations: 42.92 kB / 385.7 MB, free: 81.96 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009519/0.7921, allocations: 377.7 kB / 386.1 MB, free: 81.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002618/0.7924, allocations: 132.9 kB / 386.2 MB, free: 81.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0027/0.7951, allocations: 1.215 MB / 387.4 MB, free: 80.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.022e-06/0.7952, allocations: 0 / 387.4 MB, free: 80.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009732/0.7962, allocations: 151.4 kB / 387.6 MB, free: 80.36 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 8 * 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.003397/0.7996, allocations: 2.245 MB / 389.8 MB, free: 78.21 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00284/0.8025, allocations: 1.9 MB / 391.7 MB, free: 76.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.8026, allocations: 4 kB / 391.7 MB, free: 76.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001756/0.8043, allocations: 1.426 MB / 393.1 MB, free: 74.89 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002059/0.8064, allocations: 300.7 kB / 393.4 MB, free: 74.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006274/0.8128, allocations: 2.665 MB / 396.1 MB, free: 72.28 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/0.814, allocations: 1.171 MB / 397.3 MB, free: 71.22 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.8142, allocations: 137.1 kB / 397.4 MB, free: 71.1 MB / 314.7 MB Notification: Performance of SimCode: time 1.372e-06/0.8143, allocations: 0 / 397.4 MB, free: 71.1 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.805/3.62, allocations: 12.77 MB / 410.2 MB, free: 59.38 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat