Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.581/1.581, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.709e-05/2.681e-05, allocations: 0 / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2432, allocations: 38.77 MB / 263.9 MB, free: 9.715 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1217/0.3649, allocations: 72.74 MB / 336.6 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.3652, allocations: 71.97 kB / 336.7 MB, free: 0.793 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3294/0.6946, allocations: 37.79 MB / 374.5 MB, free: 90.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6947, allocations: 0 / 374.5 MB, free: 90.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.521e-05/0.6947, allocations: 13.28 kB / 374.5 MB, free: 90.64 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.001299/0.696, allocations: 1.302 MB / 375.8 MB, free: 89.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.6961, allocations: 10.59 kB / 375.8 MB, free: 89.8 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001188/0.6962, allocations: 65.58 kB / 375.9 MB, free: 89.76 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002014/0.6964, allocations: 136.2 kB / 376 MB, free: 89.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008628/0.6973, allocations: 0.5045 MB / 376.5 MB, free: 89.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.216e-05/0.6974, allocations: 20.7 kB / 376.5 MB, free: 89.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.6975, allocations: 28.47 kB / 376.6 MB, free: 89.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.6987, allocations: 0.6158 MB / 377.2 MB, free: 89.33 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.6988, allocations: 0 / 377.2 MB, free: 89.33 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.92e-05/0.6989, allocations: 25.77 kB / 377.2 MB, free: 89.33 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.054e-06/0.6989, allocations: 3.656 kB / 377.2 MB, free: 89.33 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008999/0.6998, allocations: 454.2 kB / 377.6 MB, free: 89.33 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002095/0.7019, allocations: 1.126 MB / 378.8 MB, free: 88.99 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.703, allocations: 0.693 MB / 379.5 MB, free: 88.96 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.704, allocations: 0.6721 MB / 380.1 MB, free: 88.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.704, allocations: 0 / 380.1 MB, free: 88.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00112/0.7052, allocations: 0.7348 MB / 380.9 MB, free: 88.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.835e-06/0.7052, allocations: 0 / 380.9 MB, free: 88.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002477/0.7077, allocations: 1.399 MB / 382.3 MB, free: 87.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001661/0.7079, allocations: 330.4 kB / 382.6 MB, free: 87.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002439/0.7103, allocations: 1.461 MB / 384 MB, free: 86.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.7104, allocations: 40.3 kB / 384.1 MB, free: 86.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.7106, allocations: 234.1 kB / 384.3 MB, free: 86.65 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.7108, allocations: 67.44 kB / 384.4 MB, free: 86.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.447e-05/0.7109, allocations: 11.88 kB / 384.4 MB, free: 86.61 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.711, allocations: 376.4 kB / 384.8 MB, free: 86.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008509/0.7119, allocations: 447.6 kB / 385.2 MB, free: 86.13 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008367/0.7127, allocations: 447.1 kB / 385.6 MB, free: 85.92 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007294/0.7134, allocations: 0.5727 MB / 386.2 MB, free: 85.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.7135, allocations: 112 / 386.2 MB, free: 85.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002265/0.7157, allocations: 1.33 MB / 387.5 MB, free: 84.11 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000205/0.716, allocations: 292.2 kB / 387.8 MB, free: 83.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.716, allocations: 0 / 387.8 MB, free: 83.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.716, allocations: 4 kB / 387.8 MB, free: 83.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.067e-05/0.7161, allocations: 7.141 kB / 387.8 MB, free: 83.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.7161, allocations: 4 kB / 387.8 MB, free: 83.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005998/0.7167, allocations: 46.27 kB / 387.9 MB, free: 83.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000189/0.7169, allocations: 133.6 kB / 388 MB, free: 83.63 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.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.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.0004415/0.7173, allocations: 454.8 kB / 388.5 MB, free: 83.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001892/0.7175, allocations: 130.5 kB / 388.6 MB, free: 83.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004567/0.718, allocations: 204.5 kB / 388.8 MB, free: 82.85 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.718, allocations: 4 kB / 388.8 MB, free: 82.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.718, allocations: 3.953 kB / 388.8 MB, free: 82.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.7181, allocations: 7.375 kB / 388.8 MB, free: 82.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003569/0.7216, allocations: 2.314 MB / 391.1 MB, free: 80.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.7217, allocations: 0 / 391.1 MB, free: 80.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.435e-05/0.7217, allocations: 0 / 391.1 MB, free: 80.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.7217, allocations: 3.656 kB / 391.1 MB, free: 80.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.781e-05/0.7218, allocations: 39.97 kB / 391.2 MB, free: 80.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.7218, allocations: 7.953 kB / 391.2 MB, free: 80.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.7218, allocations: 0 / 391.2 MB, free: 80.66 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002578/0.7244, allocations: 1.627 MB / 392.8 MB, free: 78.97 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001308/0.7257, allocations: 0.6512 MB / 393.4 MB, free: 78.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002586/0.726, allocations: 63.95 kB / 393.5 MB, free: 78.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005965/0.7266, allocations: 39.97 kB / 393.5 MB, free: 78.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008186/0.7275, allocations: 384.7 kB / 393.9 MB, free: 77.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/0.7277, allocations: 127.3 kB / 394 MB, free: 77.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002009/0.7297, allocations: 1.207 MB / 395.2 MB, free: 76.49 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.7297, allocations: 0 / 395.2 MB, free: 76.49 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006803/0.7304, allocations: 148 kB / 395.4 MB, free: 76.34 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,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.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.002999/0.7334, allocations: 2.254 MB / 397.6 MB, free: 74.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002501/0.7359, allocations: 1.902 MB / 399.6 MB, free: 72.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.7359, allocations: 3.938 kB / 399.6 MB, free: 72.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001537/0.7375, allocations: 1.423 MB / 401 MB, free: 70.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.7393, allocations: 299.6 kB / 401.3 MB, free: 70.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005082/0.7444, allocations: 2.562 MB / 403.8 MB, free: 67.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001009/0.7455, allocations: 1.172 MB / 405 MB, free: 66.41 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001816/0.7457, allocations: 41.48 kB / 405 MB, free: 66.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.7458, allocations: 135.4 kB / 405.2 MB, free: 66.23 MB / 314.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7459, allocations: 0 / 405.2 MB, free: 66.23 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05269/0.7986, allocations: 19.4 MB / 424.6 MB, free: 46.61 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002026/0.7988, allocations: 155.9 kB / 424.7 MB, free: 46.38 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.709/3.508, allocations: 4.062 kB / 424.7 MB, free: 46.38 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat