Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 194.9 MB / 208 MB, free: 3.191 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.117e-05/3.131e-05, allocations: 4 kB / 255.5 MB, free: 2.629 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09525/0.09531, allocations: 44.5 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4759/0.5712, allocations: 78.02 MB / 378 MB, free: 12.59 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.5715, allocations: 70.88 kB / 378.1 MB, free: 12.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09442/0.666, allocations: 30.75 MB / 408.8 MB, free: 6.828 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.666, allocations: 0 / 408.8 MB, free: 6.828 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.834e-05/0.6661, allocations: 19.44 kB / 408.8 MB, free: 6.824 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.001521/0.6676, allocations: 1.314 MB / 410.1 MB, free: 5.738 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.6677, allocations: 7.75 kB / 410.2 MB, free: 5.738 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001335/0.6678, allocations: 63.67 kB / 410.2 MB, free: 5.691 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002173/0.6681, allocations: 132 kB / 410.3 MB, free: 5.629 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000901/0.669, allocations: 0.5145 MB / 410.9 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.098e-05/0.6691, allocations: 18.28 kB / 410.9 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.6692, allocations: 35.16 kB / 410.9 MB, free: 5.273 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.6705, allocations: 0.6085 MB / 411.5 MB, free: 5.121 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.6705, allocations: 0 / 411.5 MB, free: 5.121 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.149e-05/0.6706, allocations: 18.86 kB / 411.5 MB, free: 5.117 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.6706, allocations: 3.938 kB / 411.5 MB, free: 5.113 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009169/0.6715, allocations: 464.8 kB / 412 MB, free: 5.059 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002487/0.674, allocations: 1.172 MB / 413.2 MB, free: 4.449 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.6752, allocations: 0.6967 MB / 413.9 MB, free: 4.359 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.6762, allocations: 0.6824 MB / 414.6 MB, free: 4.297 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.6762, allocations: 0 / 414.6 MB, free: 4.297 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/0.6774, allocations: 0.741 MB / 415.3 MB, free: 3.977 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.605e-06/0.6775, allocations: 0 / 415.3 MB, free: 3.977 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002622/0.6801, allocations: 1.416 MB / 416.7 MB, free: 3.469 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000199/0.6803, allocations: 332.9 kB / 417 MB, free: 3.137 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003275/0.6836, allocations: 1.616 MB / 418.6 MB, free: 2.496 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002241/0.6839, allocations: 48.56 kB / 418.7 MB, free: 2.457 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/0.6842, allocations: 247.8 kB / 418.9 MB, free: 2.332 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.6844, allocations: 77.97 kB / 419 MB, free: 2.289 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.673e-05/0.6845, allocations: 11.66 kB / 419 MB, free: 2.289 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.6846, allocations: 382 kB / 419.4 MB, free: 1.949 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009323/0.6856, allocations: 454.5 kB / 419.8 MB, free: 1.891 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008494/0.6864, allocations: 449.8 kB / 420.3 MB, free: 1.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007706/0.6872, allocations: 0.5918 MB / 420.9 MB, free: 1.508 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.6872, allocations: 4.047 kB / 420.9 MB, free: 1.504 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002401/0.6897, allocations: 1.341 MB / 422.2 MB, free: 1.039 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002224/0.6899, allocations: 299 kB / 422.5 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.6899, allocations: 0 / 422.5 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.716e-05/0.69, allocations: 0 / 422.5 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.223e-05/0.69, allocations: 0 / 422.5 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.69, allocations: 3.875 kB / 422.5 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006476/0.6907, allocations: 42.67 kB / 422.6 MB, free: 0.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001886/0.6909, allocations: 124.4 kB / 422.7 MB, free: 0.7422 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.0004649/0.6914, allocations: 466.2 kB / 423.1 MB, free: 352 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/0.6916, allocations: 135.8 kB / 423.3 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007292/0.6923, allocations: 253.6 kB / 423.5 MB, free: 132 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.6923, allocations: 0 / 423.5 MB, free: 132 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.6924, allocations: 0 / 423.5 MB, free: 132 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.6924, allocations: 3.906 kB / 423.5 MB, free: 132 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005031/0.6974, allocations: 2.435 MB / 426 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.6975, allocations: 0 / 426 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.96e-05/0.6975, allocations: 4 kB / 426 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.124e-06/0.6975, allocations: 0 / 426 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/0.6976, allocations: 39.88 kB / 426 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.6976, allocations: 0 / 426 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.6977, allocations: 7.938 kB / 426 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002939/0.7006, allocations: 1.632 MB / 427.6 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002029/0.7027, allocations: 0.6778 MB / 428.3 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003184/0.703, allocations: 57.47 kB / 428.4 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006528/0.7037, allocations: 50.75 kB / 428.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009279/0.7046, allocations: 376.8 kB / 428.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002124/0.7049, allocations: 137.4 kB / 428.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003218/0.7081, allocations: 1.336 MB / 430.3 MB, free: 13.51 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.082e-06/0.7082, allocations: 0 / 430.3 MB, free: 13.51 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009965/0.7092, allocations: 145 kB / 430.4 MB, free: 13.51 MB / 330.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.003662/0.7128, allocations: 2.266 MB / 432.7 MB, free: 12.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0032/0.7161, allocations: 1.914 MB / 434.6 MB, free: 11.03 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.7161, allocations: 3.938 kB / 434.6 MB, free: 11.03 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002084/0.7182, allocations: 1.438 MB / 436 MB, free: 9.887 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/0.7205, allocations: 300.7 kB / 436.3 MB, free: 9.598 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00821/0.7287, allocations: 2.745 MB / 439.1 MB, free: 6.805 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001763/0.7306, allocations: 1.223 MB / 440.3 MB, free: 5.551 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002615/0.7309, allocations: 37.5 kB / 440.3 MB, free: 5.516 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/0.7311, allocations: 135.4 kB / 440.4 MB, free: 5.383 MB / 330.7 MB Notification: Performance of SimCode: time 1.263e-06/0.7311, allocations: 0 / 440.4 MB, free: 5.383 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06257/0.7937, allocations: 20.57 MB / 461 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002314/0.794, allocations: 148.4 kB / 461.2 MB, free: 296 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.025/3.819, allocations: 0 / 461.2 MB, free: 296 kB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat