Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.708/1.708, allocations: 171.2 MB / 183.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.199e-05/3.217e-05, allocations: 4 kB / 225.1 MB, free: 2.133 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2507, allocations: 38.77 MB / 263.9 MB, free: 9.801 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1258/0.3765, allocations: 72.69 MB / 336.5 MB, free: 1.008 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/0.3768, allocations: 75.95 kB / 336.6 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1044/0.4813, allocations: 30.09 MB / 366.7 MB, free: 2.832 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4814, allocations: 0 / 366.7 MB, free: 2.832 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.3e-05/0.4814, allocations: 16 kB / 366.7 MB, free: 2.816 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.002208/0.4837, allocations: 1.292 MB / 368 MB, free: 1.426 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.4837, allocations: 8.031 kB / 368 MB, free: 1.418 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002405/0.484, allocations: 66.53 kB / 368.1 MB, free: 1.344 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002889/0.4843, allocations: 134.4 kB / 368.2 MB, free: 1.211 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.4855, allocations: 0.5132 MB / 368.7 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.066e-05/0.4856, allocations: 23.94 kB / 368.8 MB, free: 0.625 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/0.4857, allocations: 28 kB / 368.8 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2571/0.7428, allocations: 0.6105 MB / 369.4 MB, free: 88.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.434e-05/0.7429, allocations: 0 / 369.4 MB, free: 88.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002426/0.7432, allocations: 18.52 kB / 369.4 MB, free: 88.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.7432, allocations: 5.969 kB / 369.4 MB, free: 88.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.7446, allocations: 460.2 kB / 369.9 MB, free: 88.2 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002945/0.7476, allocations: 1.119 MB / 371 MB, free: 87.91 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.7489, allocations: 0.6901 MB / 371.7 MB, free: 87.88 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.7499, allocations: 0.6707 MB / 372.3 MB, free: 87.87 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.676e-05/0.75, allocations: 7.469 kB / 372.4 MB, free: 87.87 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001163/0.7511, allocations: 0.7347 MB / 373.1 MB, free: 87.69 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 4.017e-06/0.7512, allocations: 0 / 373.1 MB, free: 87.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002572/0.7537, allocations: 1.394 MB / 374.5 MB, free: 87.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001769/0.7539, allocations: 327.6 kB / 374.8 MB, free: 87.05 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002641/0.7566, allocations: 1.474 MB / 376.3 MB, free: 86.74 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000146/0.7568, allocations: 39.83 kB / 376.3 MB, free: 86.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.757, allocations: 229.6 kB / 376.5 MB, free: 86.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001512/0.7571, allocations: 75.22 kB / 376.6 MB, free: 86.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.572e-05/0.7572, allocations: 14.55 kB / 376.6 MB, free: 86.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.7574, allocations: 369.2 kB / 377 MB, free: 86.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000868/0.7582, allocations: 443.9 kB / 377.4 MB, free: 86.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008425/0.7591, allocations: 455.8 kB / 377.9 MB, free: 86.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007612/0.7599, allocations: 0.5642 MB / 378.4 MB, free: 85.92 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.7599, allocations: 3.469 kB / 378.4 MB, free: 85.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002424/0.7623, allocations: 1.339 MB / 379.8 MB, free: 85.31 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002231/0.7626, allocations: 292.2 kB / 380.1 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.7626, allocations: 0 / 380.1 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.7626, allocations: 1.078 kB / 380.1 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.357e-05/0.7627, allocations: 0.9375 kB / 380.1 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.7627, allocations: 3.844 kB / 380.1 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000707/0.7634, allocations: 52.92 kB / 380.1 MB, free: 85.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001987/0.7636, allocations: 126 kB / 380.2 MB, free: 85.03 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.0004986/0.7642, allocations: 458.2 kB / 380.7 MB, free: 84.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/0.7644, allocations: 136 kB / 380.8 MB, free: 84.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005528/0.765, allocations: 207 kB / 381 MB, free: 84.47 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.765, allocations: 3.688 kB / 381 MB, free: 84.47 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.765, allocations: 0 / 381 MB, free: 84.47 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.765, allocations: 4.5 kB / 381 MB, free: 84.47 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004178/0.7692, allocations: 2.314 MB / 383.3 MB, free: 83.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.7693, allocations: 0 / 383.3 MB, free: 83.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.161e-05/0.7693, allocations: 0 / 383.3 MB, free: 83.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.346e-06/0.7694, allocations: 6.906 kB / 383.4 MB, free: 83.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.7695, allocations: 38.59 kB / 383.4 MB, free: 83.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.7695, allocations: 0 / 383.4 MB, free: 83.31 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.7695, allocations: 2.875 kB / 383.4 MB, free: 83.31 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002773/0.7723, allocations: 1.626 MB / 385 MB, free: 82.52 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002639/0.775, allocations: 0.6514 MB / 385.7 MB, free: 82.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005817/0.7756, allocations: 59.25 kB / 385.7 MB, free: 82.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/0.7769, allocations: 39.41 kB / 385.8 MB, free: 82.06 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001389/0.7783, allocations: 375.1 kB / 386.1 MB, free: 81.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000333/0.7787, allocations: 139.4 kB / 386.3 MB, free: 81.67 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.004065/0.7828, allocations: 1.207 MB / 387.5 MB, free: 80.6 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.373e-06/0.7829, allocations: 0 / 387.5 MB, free: 80.6 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001435/0.7843, allocations: 147.5 kB / 387.6 MB, free: 80.46 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.004764/0.7891, allocations: 2.258 MB / 389.9 MB, free: 78.31 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003943/0.7931, allocations: 1.903 MB / 391.8 MB, free: 76.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.7931, allocations: 4 kB / 391.8 MB, free: 76.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002432/0.7956, allocations: 1.419 MB / 393.2 MB, free: 74.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002952/0.7986, allocations: 305.2 kB / 393.5 MB, free: 74.78 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008053/0.8067, allocations: 2.559 MB / 396.1 MB, free: 72.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001584/0.8083, allocations: 1.176 MB / 397.2 MB, free: 71.4 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003146/0.8086, allocations: 49.45 kB / 397.3 MB, free: 71.37 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002724/0.8089, allocations: 135.2 kB / 397.4 MB, free: 71.25 MB / 314.7 MB Notification: Performance of SimCode: time 1.824e-06/0.809, allocations: 0 / 397.4 MB, free: 71.25 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06261/0.8716, allocations: 19.41 MB / 416.8 MB, free: 52.75 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002556/0.8719, allocations: 149.3 kB / 417 MB, free: 52.52 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.775/3.646, allocations: 2.078 kB / 417 MB, free: 52.52 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat