Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.135/2.135, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.421e-05/3.426e-05, allocations: 8 kB / 292.2 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1086, allocations: 50.4 MB / 342.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4417/0.5504, allocations: 83.39 MB / 426 MB, free: 10.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/0.5507, allocations: 68.72 kB / 426.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1017/0.6525, allocations: 31.08 MB / 457.2 MB, free: 240 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.6525, allocations: 0 / 457.2 MB, free: 240 kB / 362.7 MB Notification: Performance of Transformations before backend: time 4.412e-05/0.6526, allocations: 16 kB / 457.2 MB, free: 224 kB / 362.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.001933/0.6545, allocations: 1.319 MB / 458.5 MB, free: 14.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.6546, allocations: 12.03 kB / 458.5 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001416/0.6547, allocations: 54.55 kB / 458.6 MB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002541/0.655, allocations: 130.5 kB / 458.7 MB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.6561, allocations: 0.5286 MB / 459.2 MB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.424e-05/0.6562, allocations: 27.94 kB / 459.3 MB, free: 13.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.6563, allocations: 28 kB / 459.3 MB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.6578, allocations: 0.6105 MB / 459.9 MB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.6578, allocations: 7.984 kB / 459.9 MB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.256e-05/0.6579, allocations: 12 kB / 459.9 MB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.658, allocations: 4 kB / 459.9 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.6591, allocations: 463.8 kB / 460.4 MB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003066/0.6621, allocations: 1.174 MB / 461.6 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.6637, allocations: 0.6937 MB / 462.2 MB, free: 10.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001573/0.6653, allocations: 0.6802 MB / 462.9 MB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.6654, allocations: 4 kB / 462.9 MB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001587/0.667, allocations: 0.7415 MB / 463.7 MB, free: 9.469 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 3.307e-06/0.667, allocations: 0 / 463.7 MB, free: 9.469 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.003334/0.6704, allocations: 1.418 MB / 465.1 MB, free: 7.996 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003116/0.6707, allocations: 325 kB / 465.4 MB, free: 7.617 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00411/0.6748, allocations: 1.615 MB / 467 MB, free: 5.988 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002461/0.6751, allocations: 45.69 kB / 467.1 MB, free: 5.938 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004479/0.6756, allocations: 258.3 kB / 467.3 MB, free: 5.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/0.6758, allocations: 71.16 kB / 467.4 MB, free: 5.609 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.083e-05/0.6759, allocations: 12 kB / 467.4 MB, free: 5.598 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002614/0.6762, allocations: 378.7 kB / 467.8 MB, free: 5.219 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001123/0.6773, allocations: 455.8 kB / 468.2 MB, free: 4.773 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.6788, allocations: 451.8 kB / 468.7 MB, free: 4.332 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/0.6799, allocations: 0.5833 MB / 469.2 MB, free: 3.699 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.6799, allocations: 0 / 469.2 MB, free: 3.699 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.003169/0.6831, allocations: 1.349 MB / 470.6 MB, free: 2.293 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003243/0.6835, allocations: 293.5 kB / 470.9 MB, free: 1.957 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.6835, allocations: 4 kB / 470.9 MB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.6835, allocations: 0 / 470.9 MB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.181e-05/0.6836, allocations: 0 / 470.9 MB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.6836, allocations: 4 kB / 470.9 MB, free: 1.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007224/0.6843, allocations: 39.97 kB / 470.9 MB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003825/0.6847, allocations: 124.2 kB / 471 MB, free: 1.789 MB / 378.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.0007686/0.6855, allocations: 463.7 kB / 471.5 MB, free: 1.277 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002969/0.6858, allocations: 138.4 kB / 471.6 MB, free: 1.141 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008135/0.6867, allocations: 259.9 kB / 471.9 MB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.6867, allocations: 4 kB / 471.9 MB, free: 0.875 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.6867, allocations: 4 kB / 471.9 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.6867, allocations: 0 / 471.9 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005349/0.6921, allocations: 2.399 MB / 474.3 MB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.6921, allocations: 3.953 kB / 474.3 MB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.19e-05/0.6922, allocations: 11.92 kB / 474.3 MB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.6922, allocations: 0 / 474.3 MB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/0.6923, allocations: 35.98 kB / 474.3 MB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.6923, allocations: 0 / 474.3 MB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.6924, allocations: 0 / 474.3 MB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003471/0.6958, allocations: 1.634 MB / 476 MB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002004/0.6979, allocations: 0.6746 MB / 476.7 MB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003102/0.6982, allocations: 55.97 kB / 476.7 MB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006669/0.6989, allocations: 55.73 kB / 476.8 MB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00103/0.7, allocations: 371.6 kB / 477.1 MB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002541/0.7002, allocations: 135.9 kB / 477.3 MB, free: 11.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003525/0.7038, allocations: 1.335 MB / 478.6 MB, free: 9.965 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.7038, allocations: 0 / 478.6 MB, free: 9.965 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001037/0.7049, allocations: 148 kB / 478.7 MB, free: 9.82 MB / 394.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.004222/0.7091, allocations: 2.271 MB / 481 MB, free: 7.477 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004032/0.7132, allocations: 1.917 MB / 482.9 MB, free: 5.461 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.7132, allocations: 0 / 482.9 MB, free: 5.461 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002276/0.7155, allocations: 1.429 MB / 484.4 MB, free: 3.934 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002147/0.7177, allocations: 316.5 kB / 484.7 MB, free: 3.637 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007863/0.7256, allocations: 2.742 MB / 487.4 MB, free: 0.8477 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001666/0.7273, allocations: 1.227 MB / 488.6 MB, free: 15.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002383/0.7276, allocations: 33.47 kB / 488.7 MB, free: 15.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002673/0.7279, allocations: 143.4 kB / 488.8 MB, free: 15.42 MB / 410.7 MB Notification: Performance of SimCode: time 1.273e-06/0.7279, allocations: 0 / 488.8 MB, free: 15.42 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07733/0.8052, allocations: 20.56 MB / 0.4974 GB, free: 10.73 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002802/0.8056, allocations: 152.2 kB / 0.4976 GB, free: 10.51 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.852/3.658, allocations: 0 / 0.4976 GB, free: 10.51 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat