Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.76/1.76, allocations: 171.2 MB / 183.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.375e-05/3.39e-05, allocations: 3.984 kB / 225.1 MB, free: 2.141 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2499, allocations: 38.77 MB / 263.9 MB, free: 9.684 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.3786, allocations: 72.42 MB / 336.3 MB, free: 1.152 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/0.3789, allocations: 63.97 kB / 336.3 MB, free: 1.09 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3267/0.7056, allocations: 33.25 MB / 369.6 MB, free: 90.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.7057, allocations: 0 / 369.6 MB, free: 90.41 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.99e-05/0.7058, allocations: 8.938 kB / 369.6 MB, free: 90.41 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001733/0.7075, allocations: 1.003 MB / 370.6 MB, free: 89.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/0.7076, allocations: 9.906 kB / 370.6 MB, free: 89.8 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001631/0.7078, allocations: 59.45 kB / 370.7 MB, free: 89.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002462/0.708, allocations: 83.88 kB / 370.7 MB, free: 89.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009242/0.709, allocations: 419.4 kB / 371.2 MB, free: 89.47 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.589e-05/0.709, allocations: 19.2 kB / 371.2 MB, free: 89.47 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.7092, allocations: 25.06 kB / 371.2 MB, free: 89.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.7106, allocations: 491.8 kB / 371.7 MB, free: 89.43 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.7107, allocations: 0.5 kB / 371.7 MB, free: 89.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.712e-05/0.7108, allocations: 14.64 kB / 371.7 MB, free: 89.43 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.7108, allocations: 9.031 kB / 371.7 MB, free: 89.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008882/0.7117, allocations: 346.2 kB / 372 MB, free: 89.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/0.7138, allocations: 0.922 MB / 373 MB, free: 89.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008401/0.7147, allocations: 498.9 kB / 373.5 MB, free: 89.09 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007936/0.7155, allocations: 484.4 kB / 373.9 MB, free: 89.08 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/0.7155, allocations: 3.938 kB / 373.9 MB, free: 89.08 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000964/0.7165, allocations: 0.6302 MB / 374.6 MB, free: 88.9 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 3.085e-06/0.7165, allocations: 0 / 374.6 MB, free: 88.9 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002188/0.7187, allocations: 1.13 MB / 375.7 MB, free: 88.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/0.7189, allocations: 275.6 kB / 376 MB, free: 88.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001852/0.7207, allocations: 1.009 MB / 377 MB, free: 88.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.861e-05/0.7208, allocations: 40.89 kB / 377 MB, free: 88.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.7209, allocations: 147.5 kB / 377.2 MB, free: 87.92 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.7211, allocations: 76.06 kB / 377.2 MB, free: 87.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.434e-05/0.7212, allocations: 11.53 kB / 377.2 MB, free: 87.89 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.121e-05/0.7212, allocations: 338.9 kB / 377.6 MB, free: 87.58 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006696/0.7219, allocations: 343.9 kB / 377.9 MB, free: 87.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006578/0.7226, allocations: 341.3 kB / 378.2 MB, free: 87.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006285/0.7232, allocations: 486 kB / 378.7 MB, free: 87.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.7233, allocations: 0 / 378.7 MB, free: 87.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001981/0.7252, allocations: 1.078 MB / 379.8 MB, free: 86.9 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001739/0.7254, allocations: 247.1 kB / 380 MB, free: 86.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.7255, allocations: 0 / 380 MB, free: 86.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.7255, allocations: 0 / 380 MB, free: 86.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.096e-05/0.7255, allocations: 3.656 kB / 380 MB, free: 86.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.7255, allocations: 6.672 kB / 380 MB, free: 86.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005444/0.7261, allocations: 46.06 kB / 380.1 MB, free: 86.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/0.7263, allocations: 119.6 kB / 380.2 MB, free: 86.66 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * 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.0003904/0.7267, allocations: 413.6 kB / 380.6 MB, free: 86.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.7269, allocations: 89.97 kB / 380.7 MB, free: 86.26 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003414/0.7272, allocations: 149 kB / 380.8 MB, free: 86.18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.7272, allocations: 0 / 380.8 MB, free: 86.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.7272, allocations: 0 / 380.8 MB, free: 86.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.7273, allocations: 7.469 kB / 380.8 MB, free: 86.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003099/0.7304, allocations: 1.908 MB / 382.8 MB, free: 85.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.7304, allocations: 3.469 kB / 382.8 MB, free: 85.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.362e-05/0.7304, allocations: 3.344 kB / 382.8 MB, free: 85.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.7304, allocations: 0 / 382.8 MB, free: 85.17 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.094e-05/0.7305, allocations: 35.84 kB / 382.8 MB, free: 85.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.7305, allocations: 0 / 382.8 MB, free: 85.17 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.7306, allocations: 3.953 kB / 382.8 MB, free: 85.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/0.7328, allocations: 1.346 MB / 384.1 MB, free: 84.49 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/0.734, allocations: 0.5598 MB / 384.7 MB, free: 84.15 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002256/0.7342, allocations: 68.31 kB / 384.8 MB, free: 84.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005138/0.7348, allocations: 31.03 kB / 384.8 MB, free: 84.12 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005693/0.7353, allocations: 239.8 kB / 385 MB, free: 84.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001788/0.7355, allocations: 133.7 kB / 385.2 MB, free: 84.02 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001485/0.737, allocations: 0.8464 MB / 386 MB, free: 83.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.7371, allocations: 0 / 386 MB, free: 83.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006976/0.7378, allocations: 124 kB / 386.1 MB, free: 83.15 MB / 314.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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 7 * 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.002774/0.7406, allocations: 1.965 MB / 388.1 MB, free: 81.26 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002039/0.7426, allocations: 1.5 MB / 389.6 MB, free: 79.78 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.7427, allocations: 0 / 389.6 MB, free: 79.78 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001249/0.7439, allocations: 1.135 MB / 390.7 MB, free: 78.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001792/0.7458, allocations: 256.7 kB / 391 MB, free: 78.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00429/0.7501, allocations: 1.859 MB / 392.8 MB, free: 76.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007906/0.7509, allocations: 1.029 MB / 393.9 MB, free: 75.79 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002383/0.7512, allocations: 36.83 kB / 393.9 MB, free: 75.76 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.7513, allocations: 71.08 kB / 394 MB, free: 75.7 MB / 314.7 MB Notification: Performance of SimCode: time 2.013e-06/0.7513, allocations: 0 / 394 MB, free: 75.7 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05481/0.8061, allocations: 15.37 MB / 409.4 MB, free: 61.39 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002016/0.8064, allocations: 151.2 kB / 409.5 MB, free: 61.16 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.697/3.503, allocations: 0 / 409.5 MB, free: 61.16 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat