Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.879/1.879, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.551e-05/2.588e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09075/0.0908, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4488/0.5397, allocations: 77.7 MB / 377.6 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.54, allocations: 69.34 kB / 377.7 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08116/0.6211, allocations: 26.76 MB / 404.5 MB, free: 8.719 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.6212, allocations: 0 / 404.5 MB, free: 8.719 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.692e-05/0.6212, allocations: 11.75 kB / 404.5 MB, free: 8.719 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.001083/0.6223, allocations: 1.014 MB / 405.5 MB, free: 7.836 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.6224, allocations: 7.844 kB / 405.5 MB, free: 7.836 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.6225, allocations: 52.73 kB / 405.6 MB, free: 7.793 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001836/0.6227, allocations: 89.25 kB / 405.6 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006874/0.6234, allocations: 412.9 kB / 406.1 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.029e-05/0.6234, allocations: 18.45 kB / 406.1 MB, free: 7.453 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.435e-05/0.6235, allocations: 26.62 kB / 406.1 MB, free: 7.453 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.6246, allocations: 498.9 kB / 406.6 MB, free: 7.312 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.6246, allocations: 0 / 406.6 MB, free: 7.312 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.629e-05/0.6247, allocations: 20.94 kB / 406.6 MB, free: 7.309 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.6247, allocations: 0 / 406.6 MB, free: 7.309 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007284/0.6254, allocations: 355.6 kB / 407 MB, free: 7.262 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002018/0.6275, allocations: 0.9242 MB / 407.9 MB, free: 6.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008592/0.6284, allocations: 0.492 MB / 408.4 MB, free: 6.695 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007979/0.6292, allocations: 491.7 kB / 408.8 MB, free: 6.641 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.6292, allocations: 0 / 408.8 MB, free: 6.641 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009835/0.6302, allocations: 0.6306 MB / 409.5 MB, free: 6.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 2.585e-06/0.6302, allocations: 0 / 409.5 MB, free: 6.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002172/0.6324, allocations: 1.139 MB / 410.6 MB, free: 5.918 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001573/0.6326, allocations: 279.1 kB / 410.9 MB, free: 5.629 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001986/0.6346, allocations: 1.02 MB / 411.9 MB, free: 5.223 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001771/0.6348, allocations: 41.27 kB / 411.9 MB, free: 5.191 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.6349, allocations: 204.3 kB / 412.1 MB, free: 5.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.6351, allocations: 66.25 kB / 412.2 MB, free: 4.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.339e-05/0.6352, allocations: 10.88 kB / 412.2 MB, free: 4.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.1e-05/0.6352, allocations: 330.2 kB / 412.5 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007112/0.636, allocations: 340.5 kB / 412.9 MB, free: 4.617 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006584/0.6366, allocations: 346.3 kB / 413.2 MB, free: 4.574 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006498/0.6373, allocations: 0.4885 MB / 413.7 MB, free: 4.289 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.6373, allocations: 0 / 413.7 MB, free: 4.289 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001928/0.6393, allocations: 1.07 MB / 414.8 MB, free: 3.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001899/0.6395, allocations: 250.8 kB / 415 MB, free: 3.672 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.6395, allocations: 0 / 415 MB, free: 3.672 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.6395, allocations: 0 / 415 MB, free: 3.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.404e-05/0.6396, allocations: 15.7 kB / 415 MB, free: 3.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.6396, allocations: 0 / 415 MB, free: 3.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005709/0.6402, allocations: 50.92 kB / 415.1 MB, free: 3.641 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001827/0.6404, allocations: 127.1 kB / 415.2 MB, free: 3.629 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.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.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.0004113/0.6408, allocations: 401.8 kB / 415.6 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.641, allocations: 93.55 kB / 415.7 MB, free: 3.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004741/0.6415, allocations: 147.9 kB / 415.8 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.6415, allocations: 3.875 kB / 415.8 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.6415, allocations: 3.953 kB / 415.8 MB, free: 3.152 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.6415, allocations: 3.984 kB / 415.8 MB, free: 3.148 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003376/0.6449, allocations: 1.927 MB / 417.8 MB, free: 2.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.645, allocations: 4 kB / 417.8 MB, free: 2.266 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.009e-05/0.645, allocations: 0 / 417.8 MB, free: 2.266 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.154e-06/0.645, allocations: 0 / 417.8 MB, free: 2.266 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/0.6451, allocations: 37.56 kB / 417.8 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.6451, allocations: 7.953 kB / 417.8 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.6451, allocations: 0 / 417.8 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002329/0.6475, allocations: 1.366 MB / 419.2 MB, free: 1.707 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001265/0.6488, allocations: 0.55 MB / 419.7 MB, free: 1.434 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000232/0.649, allocations: 63.98 kB / 419.8 MB, free: 1.422 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005442/0.6496, allocations: 34.89 kB / 419.8 MB, free: 1.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005544/0.6501, allocations: 242 kB / 420.1 MB, free: 1.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001783/0.6503, allocations: 131.6 kB / 420.2 MB, free: 1.324 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001637/0.652, allocations: 0.8466 MB / 421 MB, free: 1 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.652, allocations: 0 / 421 MB, free: 1 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007116/0.6527, allocations: 119.2 kB / 421.2 MB, free: 1 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,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.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.002926/0.6557, allocations: 1.992 MB / 423.2 MB, free: 15.9 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002236/0.6579, allocations: 1.512 MB / 424.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.658, allocations: 0 / 424.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/0.6594, allocations: 1.145 MB / 425.8 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/0.6611, allocations: 266.5 kB / 426.1 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004701/0.6659, allocations: 1.941 MB / 428 MB, free: 14.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.667, allocations: 1.024 MB / 429 MB, free: 13.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.6671, allocations: 74.09 kB / 429.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6671, allocations: 3.875 kB / 429.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.807/3.474, allocations: 8.906 MB / 438 MB, free: 7.531 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat