Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.07/2.07, allocations: 205.8 MB / 218.9 MB, free: 9.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.534e-05/3.539e-05, allocations: 8 kB / 269.5 MB, free: 6.309 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1084, allocations: 47.57 MB / 317 MB, free: 6.652 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4382/0.5467, allocations: 82.25 MB / 399.3 MB, free: 5.355 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/0.547, allocations: 63.97 kB / 399.3 MB, free: 5.324 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1056/0.6527, allocations: 30.78 MB / 430.1 MB, free: 11.49 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6527, allocations: 0 / 430.1 MB, free: 11.49 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.325e-05/0.6528, allocations: 16 kB / 430.1 MB, free: 11.47 MB / 346.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.001901/0.6547, allocations: 1.313 MB / 431.4 MB, free: 10.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.6547, allocations: 12.03 kB / 431.5 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001767/0.6549, allocations: 64.16 kB / 431.5 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002702/0.6552, allocations: 138.4 kB / 431.7 MB, free: 9.926 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.6563, allocations: 0.5086 MB / 432.2 MB, free: 9.406 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.747e-05/0.6564, allocations: 19.75 kB / 432.2 MB, free: 9.391 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.6566, allocations: 42.48 kB / 432.2 MB, free: 9.355 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.6581, allocations: 0.6126 MB / 432.8 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.6581, allocations: 4 kB / 432.8 MB, free: 8.887 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.372e-05/0.6582, allocations: 13.38 kB / 432.9 MB, free: 8.879 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.6582, allocations: 4 kB / 432.9 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.6593, allocations: 475.1 kB / 433.3 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002929/0.6623, allocations: 1.176 MB / 434.5 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.6637, allocations: 0.6913 MB / 435.2 MB, free: 7.172 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001223/0.665, allocations: 0.6734 MB / 435.9 MB, free: 6.797 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.665, allocations: 4 kB / 435.9 MB, free: 6.793 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001484/0.6665, allocations: 0.741 MB / 436.6 MB, free: 6.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 4.208e-06/0.6666, allocations: 3.938 kB / 436.6 MB, free: 6.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.003088/0.6697, allocations: 1.414 MB / 438 MB, free: 4.969 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002735/0.67, allocations: 325.2 kB / 438.3 MB, free: 4.609 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004079/0.6741, allocations: 1.623 MB / 440 MB, free: 3.254 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002388/0.6744, allocations: 44.88 kB / 440 MB, free: 3.211 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004007/0.6748, allocations: 259.5 kB / 440.3 MB, free: 3.047 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/0.675, allocations: 70.47 kB / 440.3 MB, free: 2.984 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.306e-05/0.6751, allocations: 15.61 kB / 440.3 MB, free: 2.973 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002284/0.6753, allocations: 384.7 kB / 440.7 MB, free: 2.609 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.6764, allocations: 449.8 kB / 441.2 MB, free: 2.309 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009968/0.6774, allocations: 459.8 kB / 441.6 MB, free: 1.996 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009552/0.6783, allocations: 0.5778 MB / 442.2 MB, free: 1.484 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.6784, allocations: 0 / 442.2 MB, free: 1.484 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002854/0.6812, allocations: 1.346 MB / 443.5 MB, free: 376 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003878/0.6817, allocations: 293.3 kB / 443.8 MB, free: 56 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.6817, allocations: 3.938 kB / 443.8 MB, free: 52 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.6817, allocations: 0 / 443.8 MB, free: 52 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.23e-05/0.6818, allocations: 0 / 443.8 MB, free: 52 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/0.6818, allocations: 7.984 kB / 443.8 MB, free: 44 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006989/0.6825, allocations: 39.09 kB / 443.9 MB, free: 8 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002799/0.6828, allocations: 127.5 kB / 444 MB, free: 15.89 MB / 362.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.0006513/0.6835, allocations: 472.3 kB / 444.5 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002717/0.6838, allocations: 134.4 kB / 444.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008183/0.6846, allocations: 247.5 kB / 444.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.6846, allocations: 4 kB / 444.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.6846, allocations: 0 / 444.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.6846, allocations: 0 / 444.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00528/0.6899, allocations: 2.403 MB / 447.2 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.69, allocations: 4 kB / 447.2 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.284e-05/0.69, allocations: 3.938 kB / 447.2 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.69, allocations: 0 / 447.2 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001291/0.6902, allocations: 35.98 kB / 447.3 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.6902, allocations: 3.984 kB / 447.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.6902, allocations: 0 / 447.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003751/0.694, allocations: 1.634 MB / 448.9 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002182/0.6962, allocations: 0.6746 MB / 449.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003439/0.6966, allocations: 59.95 kB / 449.7 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006788/0.6973, allocations: 43.88 kB / 449.7 MB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001025/0.6984, allocations: 375.6 kB / 450.1 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000257/0.6987, allocations: 131.9 kB / 450.2 MB, free: 9.469 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003465/0.7021, allocations: 1.339 MB / 451.5 MB, free: 8.125 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.306e-06/0.7022, allocations: 0 / 451.5 MB, free: 8.125 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00104/0.7032, allocations: 151.9 kB / 451.7 MB, free: 7.977 MB / 362.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.004011/0.7073, allocations: 2.28 MB / 454 MB, free: 5.617 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003371/0.7107, allocations: 1.909 MB / 455.9 MB, free: 3.609 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.7108, allocations: 0 / 455.9 MB, free: 3.609 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002161/0.7129, allocations: 1.433 MB / 457.3 MB, free: 2.078 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002044/0.715, allocations: 296.4 kB / 457.6 MB, free: 1.793 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007379/0.7224, allocations: 2.753 MB / 460.3 MB, free: 14.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001606/0.7241, allocations: 1.223 MB / 461.6 MB, free: 13.74 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002614/0.7244, allocations: 37.5 kB / 461.6 MB, free: 13.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002486/0.7246, allocations: 143.3 kB / 461.7 MB, free: 13.56 MB / 378.7 MB Notification: Performance of SimCode: time 1.453e-06/0.7247, allocations: 0 / 461.7 MB, free: 13.56 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0599/0.7846, allocations: 20.57 MB / 482.3 MB, free: 8.684 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003212/0.785, allocations: 152.4 kB / 482.5 MB, free: 8.457 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.83/3.615, allocations: 0 / 482.5 MB, free: 8.457 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat