Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.959/1.959, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.632e-05/3.634e-05, allocations: 8 kB / 269.4 MB, free: 6.301 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1076, allocations: 47.57 MB / 317 MB, free: 6.641 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4371/0.5448, allocations: 81.93 MB / 399 MB, free: 5.691 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/0.5451, allocations: 69.09 kB / 399 MB, free: 5.656 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1109/0.656, allocations: 26.79 MB / 425.8 MB, free: 15.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.656, allocations: 0 / 425.8 MB, free: 15.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.205e-05/0.6561, allocations: 12 kB / 425.8 MB, free: 15.38 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001493/0.6576, allocations: 1.015 MB / 426.8 MB, free: 14.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.6577, allocations: 8.031 kB / 426.8 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001379/0.6578, allocations: 53.05 kB / 426.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002002/0.658, allocations: 86.81 kB / 427 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008507/0.6589, allocations: 416.2 kB / 427.4 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.974e-05/0.659, allocations: 22.06 kB / 427.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.6591, allocations: 23.25 kB / 427.4 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.6603, allocations: 490.9 kB / 427.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.6603, allocations: 7.953 kB / 427.9 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.421e-05/0.6604, allocations: 19.48 kB / 427.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.6605, allocations: 4 kB / 427.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009119/0.6614, allocations: 360.5 kB / 428.3 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002362/0.6638, allocations: 0.9182 MB / 429.2 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009726/0.6648, allocations: 0.4967 MB / 429.7 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009259/0.6657, allocations: 487 kB / 430.2 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.6658, allocations: 4 kB / 430.2 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001169/0.6669, allocations: 0.6234 MB / 430.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 2.555e-06/0.667, allocations: 0 / 430.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.002652/0.6696, allocations: 1.153 MB / 432 MB, free: 10.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002266/0.6699, allocations: 282.5 kB / 432.2 MB, free: 9.887 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002234/0.6721, allocations: 1.018 MB / 433.3 MB, free: 9.043 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.918e-05/0.6722, allocations: 37.08 kB / 433.3 MB, free: 9.004 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.6724, allocations: 147.1 kB / 433.4 MB, free: 8.891 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.6725, allocations: 66.95 kB / 433.5 MB, free: 8.832 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.789e-05/0.6726, allocations: 11.19 kB / 433.5 MB, free: 8.824 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.6728, allocations: 345.3 kB / 433.9 MB, free: 8.492 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008059/0.6736, allocations: 343.5 kB / 434.2 MB, free: 8.262 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007687/0.6744, allocations: 349.5 kB / 434.5 MB, free: 8.027 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000769/0.6752, allocations: 490.1 kB / 435 MB, free: 7.598 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.6752, allocations: 0 / 435 MB, free: 7.598 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002351/0.6776, allocations: 1.111 MB / 436.1 MB, free: 6.672 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002463/0.6778, allocations: 241.3 kB / 436.4 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.6778, allocations: 4 kB / 436.4 MB, free: 6.406 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.6779, allocations: 4 kB / 436.4 MB, free: 6.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.298e-05/0.6779, allocations: 4 kB / 436.4 MB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.6779, allocations: 0 / 436.4 MB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005621/0.6785, allocations: 43.75 kB / 436.4 MB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002314/0.6788, allocations: 127.9 kB / 436.5 MB, free: 6.234 MB / 346.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.0005372/0.6793, allocations: 410.3 kB / 436.9 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001893/0.6795, allocations: 87.06 kB / 437 MB, free: 5.719 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005073/0.68, allocations: 149.3 kB / 437.2 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.68, allocations: 3.938 kB / 437.2 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.6801, allocations: 0 / 437.2 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.6801, allocations: 4 kB / 437.2 MB, free: 5.582 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003873/0.684, allocations: 1.933 MB / 439.1 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.684, allocations: 3.984 kB / 439.1 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.692e-05/0.684, allocations: 3.938 kB / 439.1 MB, free: 3.945 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.684, allocations: 4 kB / 439.1 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/0.6842, allocations: 32.86 kB / 439.1 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.6842, allocations: 0 / 439.1 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6842, allocations: 0 / 439.1 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002756/0.6869, allocations: 1.366 MB / 440.5 MB, free: 2.762 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/0.6883, allocations: 0.5512 MB / 441.1 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002469/0.6886, allocations: 61.78 kB / 441.1 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000555/0.6891, allocations: 43.81 kB / 441.2 MB, free: 2.266 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006421/0.6898, allocations: 234.7 kB / 441.4 MB, free: 2.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002516/0.6901, allocations: 131.5 kB / 441.5 MB, free: 1.965 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001828/0.6919, allocations: 0.8449 MB / 442.4 MB, free: 1.277 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6919, allocations: 4 kB / 442.4 MB, free: 1.273 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006832/0.6926, allocations: 119.5 kB / 442.5 MB, free: 1.16 MB / 346.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.003398/0.696, allocations: 1.991 MB / 444.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002685/0.6987, allocations: 1.511 MB / 446 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.6988, allocations: 0 / 446 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00171/0.7005, allocations: 1.144 MB / 447.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00174/0.7022, allocations: 256.9 kB / 447.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00474/0.707, allocations: 1.87 MB / 449.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/0.7081, allocations: 1.039 MB / 450.3 MB, free: 9.148 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001922/0.7083, allocations: 41.47 kB / 450.3 MB, free: 9.109 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.7085, allocations: 71.41 kB / 450.4 MB, free: 9.039 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.7085, allocations: 0 / 450.4 MB, free: 9.039 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05919/0.7677, allocations: 15.43 MB / 465.8 MB, free: 9.422 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002877/0.768, allocations: 149.2 kB / 466 MB, free: 9.195 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.633/3.401, allocations: 0 / 466 MB, free: 9.195 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat