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.712/1.712, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.758e-05/3.78e-05, allocations: 4 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.257, allocations: 38.76 MB / 263.9 MB, free: 9.824 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1273/0.3844, allocations: 72.71 MB / 336.6 MB, free: 1.012 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.3848, allocations: 67.97 kB / 336.6 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1074/0.4921, allocations: 30.09 MB / 366.7 MB, free: 2.848 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4922, allocations: 0 / 366.7 MB, free: 2.848 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.328e-05/0.4923, allocations: 16 kB / 366.8 MB, free: 2.832 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.002287/0.4946, allocations: 1.296 MB / 368 MB, free: 1.438 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.4946, allocations: 8.031 kB / 368.1 MB, free: 1.43 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002638/0.4949, allocations: 66.48 kB / 368.1 MB, free: 1.355 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002982/0.4952, allocations: 134.4 kB / 368.3 MB, free: 1.223 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001228/0.4965, allocations: 0.5094 MB / 368.8 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.111e-05/0.4966, allocations: 35.92 kB / 368.8 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.4967, allocations: 28 kB / 368.8 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2164/0.7131, allocations: 0.6027 MB / 369.4 MB, free: 88.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.819e-05/0.7132, allocations: 0 / 369.4 MB, free: 88.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002404/0.7135, allocations: 14.98 kB / 369.4 MB, free: 88.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.7135, allocations: 2.031 kB / 369.4 MB, free: 88.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.715, allocations: 463.4 kB / 369.9 MB, free: 88.2 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003275/0.7183, allocations: 1.122 MB / 371 MB, free: 87.91 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.7198, allocations: 0.6907 MB / 371.7 MB, free: 87.88 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001165/0.721, allocations: 0.6678 MB / 372.4 MB, free: 87.88 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.7211, allocations: 4.531 kB / 372.4 MB, free: 87.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001308/0.7224, allocations: 0.7378 MB / 373.1 MB, free: 87.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 4.939e-06/0.7224, allocations: 3.391 kB / 373.1 MB, free: 87.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002769/0.7252, allocations: 1.395 MB / 374.5 MB, free: 87.37 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000219/0.7255, allocations: 330 kB / 374.8 MB, free: 87.05 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003064/0.7286, allocations: 1.462 MB / 376.3 MB, free: 86.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002149/0.7288, allocations: 41.2 kB / 376.3 MB, free: 86.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002388/0.7291, allocations: 228.6 kB / 376.6 MB, free: 86.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/0.7293, allocations: 80.31 kB / 376.6 MB, free: 86.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.812e-05/0.7294, allocations: 14.44 kB / 376.7 MB, free: 86.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.7295, allocations: 368.8 kB / 377 MB, free: 86.28 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009047/0.7304, allocations: 443 kB / 377.4 MB, free: 86.28 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009066/0.7314, allocations: 445.1 kB / 377.9 MB, free: 86.28 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008357/0.7323, allocations: 0.5777 MB / 378.5 MB, free: 85.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.7323, allocations: 0 / 378.5 MB, free: 85.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002512/0.7348, allocations: 1.335 MB / 379.8 MB, free: 85.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002478/0.7351, allocations: 289.9 kB / 380.1 MB, free: 85.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.7351, allocations: 0 / 380.1 MB, free: 85.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/0.7352, allocations: 0 / 380.1 MB, free: 85.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.464e-05/0.7352, allocations: 9.891 kB / 380.1 MB, free: 85.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.7352, allocations: 1.219 kB / 380.1 MB, free: 85.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007516/0.736, allocations: 43.78 kB / 380.1 MB, free: 85.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001992/0.7362, allocations: 127.9 kB / 380.3 MB, free: 85.05 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.0005185/0.7368, allocations: 468.3 kB / 380.7 MB, free: 84.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002851/0.7371, allocations: 136.1 kB / 380.8 MB, free: 84.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005561/0.7376, allocations: 202.8 kB / 381 MB, free: 84.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.7376, allocations: 0 / 381 MB, free: 84.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.7377, allocations: 0 / 381 MB, free: 84.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.7377, allocations: 0 / 381 MB, free: 84.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004495/0.7422, allocations: 2.319 MB / 383.4 MB, free: 83.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.7423, allocations: 3.844 kB / 383.4 MB, free: 83.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.314e-05/0.7423, allocations: 7.062 kB / 383.4 MB, free: 83.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.7423, allocations: 0 / 383.4 MB, free: 83.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001471/0.7425, allocations: 37.25 kB / 383.4 MB, free: 83.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.7425, allocations: 0 / 383.4 MB, free: 83.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.7425, allocations: 0 / 383.4 MB, free: 83.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002927/0.7454, allocations: 1.619 MB / 385 MB, free: 82.55 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001725/0.7472, allocations: 0.6557 MB / 385.7 MB, free: 82.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003077/0.7476, allocations: 62.84 kB / 385.7 MB, free: 82.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006545/0.7482, allocations: 45.91 kB / 385.8 MB, free: 82.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009257/0.7492, allocations: 379.3 kB / 386.2 MB, free: 81.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002467/0.7495, allocations: 132.6 kB / 386.3 MB, free: 81.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00265/0.7521, allocations: 1.209 MB / 387.5 MB, free: 80.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.91e-07/0.7522, allocations: 0 / 387.5 MB, free: 80.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009494/0.7532, allocations: 151.7 kB / 387.7 MB, free: 80.48 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.003418/0.7566, allocations: 2.256 MB / 389.9 MB, free: 78.32 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002902/0.7596, allocations: 1.906 MB / 391.8 MB, free: 76.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.882e-06/0.7596, allocations: 0 / 391.8 MB, free: 76.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001777/0.7614, allocations: 1.424 MB / 393.2 MB, free: 75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002084/0.7636, allocations: 293.9 kB / 393.5 MB, free: 74.8 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005756/0.7694, allocations: 2.57 MB / 396.1 MB, free: 72.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001035/0.7705, allocations: 1.172 MB / 397.3 MB, free: 71.42 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002291/0.7707, allocations: 44.31 kB / 397.3 MB, free: 71.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002018/0.771, allocations: 133.5 kB / 397.4 MB, free: 71.27 MB / 314.7 MB Notification: Performance of SimCode: time 1.402e-06/0.771, allocations: 0 / 397.4 MB, free: 71.27 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05246/0.8234, allocations: 19.39 MB / 416.8 MB, free: 52.78 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002095/0.8237, allocations: 163.8 kB / 417 MB, free: 52.55 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/3.475, allocations: 0 / 417 MB, free: 52.55 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