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.983/1.983, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.458e-05/2.469e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2974, allocations: 44.48 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1374/0.4349, allocations: 77.36 MB / 371.6 MB, free: 4.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.4352, allocations: 71.95 kB / 371.6 MB, free: 4.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1037/0.5389, allocations: 30.55 MB / 402.2 MB, free: 5.895 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.25e-06/0.539, allocations: 0 / 402.2 MB, free: 5.895 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.772e-05/0.539, allocations: 15.94 kB / 402.2 MB, free: 5.879 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.002186/0.5412, allocations: 1.319 MB / 403.5 MB, free: 4.461 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.925e-05/0.5413, allocations: 8.031 kB / 403.5 MB, free: 4.453 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004142/0.5417, allocations: 130.5 kB / 403.7 MB, free: 4.324 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.543, allocations: 0.5249 MB / 404.2 MB, free: 3.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.487e-05/0.543, allocations: 12 kB / 404.2 MB, free: 3.738 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.5432, allocations: 28 kB / 404.2 MB, free: 3.711 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001089/0.5443, allocations: 456.5 kB / 404.7 MB, free: 3.266 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.5457, allocations: 0.5909 MB / 405.3 MB, free: 2.668 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.5457, allocations: 0 / 405.3 MB, free: 2.668 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-05/0.5458, allocations: 16 kB / 405.3 MB, free: 2.652 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.5458, allocations: 0 / 405.3 MB, free: 2.652 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002869/0.5487, allocations: 1.125 MB / 406.4 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.5501, allocations: 0.6741 MB / 407.1 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001197/0.5514, allocations: 0.6686 MB / 407.7 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.5514, allocations: 4 kB / 407.7 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001421/0.5528, allocations: 0.7329 MB / 408.5 MB, free: 15.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.046e-06/0.5529, allocations: 0 / 408.5 MB, free: 15.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002632/0.5555, allocations: 1.096 MB / 409.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002846/0.5558, allocations: 321 kB / 409.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003651/0.5595, allocations: 1.566 MB / 411.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002036/0.5597, allocations: 41.69 kB / 411.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004023/0.5601, allocations: 246.3 kB / 411.7 MB, free: 12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.5603, allocations: 75.11 kB / 411.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.706e-05/0.5604, allocations: 15.98 kB / 411.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00024/0.5607, allocations: 382.7 kB / 412.2 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009802/0.5617, allocations: 439.8 kB / 412.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009409/0.5626, allocations: 435.8 kB / 413.1 MB, free: 10.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006288/0.5633, allocations: 295.4 kB / 413.3 MB, free: 10.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.5633, allocations: 4.109 kB / 413.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002474/0.5658, allocations: 1.027 MB / 414.4 MB, free: 9.348 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003024/0.5661, allocations: 293.5 kB / 414.7 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.5662, allocations: 0 / 414.7 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.5662, allocations: 7.938 kB / 414.7 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.108e-05/0.5662, allocations: 0 / 414.7 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.5662, allocations: 0 / 414.7 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006326/0.5669, allocations: 39.91 kB / 414.7 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002404/0.5671, allocations: 136.2 kB / 414.8 MB, free: 8.832 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.0005907/0.5677, allocations: 463.5 kB / 415.3 MB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00277/0.5705, allocations: 1.187 MB / 416.5 MB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002377/0.5708, allocations: 130.5 kB / 416.6 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007759/0.5716, allocations: 244.3 kB / 416.8 MB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.5716, allocations: 0 / 416.8 MB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/0.5716, allocations: 3.984 kB / 416.9 MB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.5716, allocations: 3.953 kB / 416.9 MB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00433/0.576, allocations: 2.009 MB / 418.9 MB, free: 4.695 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.576, allocations: 0 / 418.9 MB, free: 4.695 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.246e-05/0.5761, allocations: 11.88 kB / 418.9 MB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.5761, allocations: 0 / 418.9 MB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.5762, allocations: 31.98 kB / 418.9 MB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.5762, allocations: 0 / 418.9 MB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.5762, allocations: 0 / 418.9 MB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002812/0.579, allocations: 1.289 MB / 420.2 MB, free: 3.344 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001914/0.581, allocations: 0.6785 MB / 420.9 MB, free: 2.645 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003269/0.5814, allocations: 55.97 kB / 420.9 MB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006237/0.582, allocations: 43.94 kB / 421 MB, free: 2.547 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009798/0.583, allocations: 371.6 kB / 421.3 MB, free: 2.184 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002395/0.5832, allocations: 131.9 kB / 421.5 MB, free: 2.055 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002956/0.5862, allocations: 1.275 MB / 422.7 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.11e-07/0.5862, allocations: 0 / 422.7 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009191/0.5872, allocations: 152 kB / 422.9 MB, free: 0.6289 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.2442/0.8314, allocations: 1.906 MB / 424.8 MB, free: 106.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002794/0.8342, allocations: 1.879 MB / 426.7 MB, free: 105.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.8343, allocations: 3.094 kB / 426.7 MB, free: 105.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/0.836, allocations: 1.413 MB / 428.1 MB, free: 105.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.8379, allocations: 292.5 kB / 428.4 MB, free: 105.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006328/0.8442, allocations: 2.734 MB / 431.1 MB, free: 104.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001312/0.8456, allocations: 1.225 MB / 432.3 MB, free: 103.9 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002258/0.8458, allocations: 37.83 kB / 432.4 MB, free: 103.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.846, allocations: 136.5 kB / 432.5 MB, free: 103.9 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.8461, allocations: 3.312 kB / 432.5 MB, free: 103.9 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0701/0.9162, allocations: 19.86 MB / 452.4 MB, free: 94.6 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001853/0.9164, allocations: 138.3 kB / 452.5 MB, free: 94.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.803/3.72, allocations: 0 / 452.5 MB, free: 94.41 MB / 362.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