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.92/1.92, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.251e-05/4.265e-05, allocations: 0.625 kB / 255.4 MB, free: 2.648 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1218, allocations: 44.51 MB / 300 MB, free: 6.082 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4579/0.5798, allocations: 78.01 MB / 378 MB, free: 12.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.5801, allocations: 69.84 kB / 378 MB, free: 12.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08879/0.6689, allocations: 30.73 MB / 408.8 MB, free: 6.996 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.669, allocations: 4 kB / 408.8 MB, free: 6.992 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.101e-05/0.669, allocations: 19.66 kB / 408.8 MB, free: 6.988 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.001526/0.6705, allocations: 1.319 MB / 410.1 MB, free: 5.898 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.6706, allocations: 11.62 kB / 410.1 MB, free: 5.898 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001421/0.6708, allocations: 65.98 kB / 410.2 MB, free: 5.852 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.671, allocations: 127.1 kB / 410.3 MB, free: 5.789 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009155/0.6719, allocations: 0.5112 MB / 410.8 MB, free: 5.438 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.339e-05/0.672, allocations: 26.55 kB / 410.8 MB, free: 5.434 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.6721, allocations: 26.69 kB / 410.9 MB, free: 5.434 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.6733, allocations: 0.6153 MB / 411.5 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.6734, allocations: 7.844 kB / 411.5 MB, free: 5.273 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.668e-05/0.6735, allocations: 14.47 kB / 411.5 MB, free: 5.273 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.6735, allocations: 3.875 kB / 411.5 MB, free: 5.273 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009066/0.6744, allocations: 473.4 kB / 412 MB, free: 5.211 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002422/0.6768, allocations: 1.168 MB / 413.1 MB, free: 4.602 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.678, allocations: 0.7028 MB / 413.8 MB, free: 4.512 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.679, allocations: 0.6772 MB / 414.5 MB, free: 4.449 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.679, allocations: 3.875 kB / 414.5 MB, free: 4.449 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001187/0.6802, allocations: 0.7357 MB / 415.3 MB, free: 4.133 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.885e-06/0.6802, allocations: 0 / 415.3 MB, free: 4.133 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002596/0.6828, allocations: 1.416 MB / 416.7 MB, free: 3.625 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001799/0.6831, allocations: 329.2 kB / 417 MB, free: 3.293 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003231/0.6863, allocations: 1.627 MB / 418.6 MB, free: 2.645 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001842/0.6865, allocations: 45.12 kB / 418.7 MB, free: 2.609 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002941/0.6868, allocations: 238.6 kB / 418.9 MB, free: 2.492 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.687, allocations: 88.16 kB / 419 MB, free: 2.445 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.687e-05/0.6871, allocations: 11.61 kB / 419 MB, free: 2.441 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.6872, allocations: 381.4 kB / 419.4 MB, free: 2.102 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008914/0.6881, allocations: 448.7 kB / 419.8 MB, free: 2.051 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008465/0.689, allocations: 466 kB / 420.3 MB, free: 1.984 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007634/0.6898, allocations: 0.5899 MB / 420.9 MB, free: 1.652 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.6898, allocations: 0 / 420.9 MB, free: 1.652 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002423/0.6922, allocations: 1.335 MB / 422.2 MB, free: 1.191 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002147/0.6925, allocations: 293 kB / 422.5 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.6925, allocations: 4 kB / 422.5 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.6925, allocations: 0 / 422.5 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.309e-05/0.6926, allocations: 3.984 kB / 422.5 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.6926, allocations: 3.75 kB / 422.5 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000623/0.6932, allocations: 46.52 kB / 422.5 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001892/0.6934, allocations: 128.6 kB / 422.7 MB, free: 0.8867 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.0004561/0.6939, allocations: 468 kB / 423.1 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001984/0.6941, allocations: 136.2 kB / 423.3 MB, free: 432 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007322/0.6948, allocations: 254.1 kB / 423.5 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.6949, allocations: 0 / 423.5 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.6949, allocations: 0 / 423.5 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.6949, allocations: 0 / 423.5 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004509/0.6994, allocations: 2.402 MB / 425.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.6995, allocations: 0 / 425.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.829e-05/0.6995, allocations: 0 / 425.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.6995, allocations: 4 kB / 425.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.6996, allocations: 40.22 kB / 425.9 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.6996, allocations: 3.938 kB / 425.9 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.6997, allocations: 7.891 kB / 426 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003008/0.7027, allocations: 1.638 MB / 427.6 MB, free: 14.56 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001834/0.7045, allocations: 0.6712 MB / 428.3 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002736/0.7048, allocations: 62.95 kB / 428.3 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006227/0.7055, allocations: 43.72 kB / 428.4 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009064/0.7064, allocations: 375.5 kB / 428.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/0.7066, allocations: 130.3 kB / 428.9 MB, free: 14.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002942/0.7096, allocations: 1.337 MB / 430.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.7096, allocations: 0 / 430.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007588/0.7104, allocations: 146 kB / 430.3 MB, free: 13.56 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.003689/0.7141, allocations: 2.272 MB / 432.6 MB, free: 12.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003145/0.7173, allocations: 1.917 MB / 434.5 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.7173, allocations: 0 / 434.5 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002009/0.7193, allocations: 1.431 MB / 436 MB, free: 9.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001999/0.7214, allocations: 305.6 kB / 436.3 MB, free: 9.715 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007244/0.7286, allocations: 2.749 MB / 439 MB, free: 6.918 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001652/0.7303, allocations: 1.223 MB / 440.2 MB, free: 5.664 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002341/0.7306, allocations: 38.16 kB / 440.3 MB, free: 5.629 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002515/0.7309, allocations: 135.4 kB / 440.4 MB, free: 5.496 MB / 330.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7309, allocations: 0 / 440.4 MB, free: 5.496 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05811/0.789, allocations: 20.55 MB / 461 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002577/0.7893, allocations: 153.8 kB / 461.1 MB, free: 416 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.793/3.582, allocations: 0 / 461.1 MB, free: 416 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