Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.683/1.683, allocations: 171.2 MB / 183.3 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.32e-05/3.337e-05, allocations: 4 kB / 225.1 MB, free: 2.203 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2924, allocations: 38.77 MB / 263.9 MB, free: 9.695 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1888/0.4813, allocations: 72.39 MB / 336.2 MB, free: 1.203 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/0.4816, allocations: 67.97 kB / 336.3 MB, free: 1.137 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0936/0.5752, allocations: 26.68 MB / 363 MB, free: 6.461 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5753, allocations: 0 / 363 MB, free: 6.461 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.973e-05/0.5753, allocations: 15.94 kB / 363 MB, free: 6.445 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.001614/0.577, allocations: 1.004 MB / 364 MB, free: 5.352 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.577, allocations: 12.03 kB / 364 MB, free: 5.34 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002019/0.5772, allocations: 54.55 kB / 364.1 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002304/0.5775, allocations: 98.92 kB / 364.2 MB, free: 5.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009584/0.5785, allocations: 415.6 kB / 364.6 MB, free: 4.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.075e-05/0.5786, allocations: 20 kB / 364.6 MB, free: 4.711 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.5787, allocations: 24 kB / 364.6 MB, free: 4.688 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.5799, allocations: 490.3 kB / 365.1 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.58, allocations: 0 / 365.1 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.05e-05/0.5801, allocations: 12 kB / 365.1 MB, free: 4.188 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.5801, allocations: 7.953 kB / 365.1 MB, free: 4.18 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008873/0.581, allocations: 344.2 kB / 365.4 MB, free: 3.844 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002469/0.5835, allocations: 0.9223 MB / 366.4 MB, free: 2.871 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.5847, allocations: 0.4947 MB / 366.9 MB, free: 2.363 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.5858, allocations: 484.9 kB / 367.3 MB, free: 1.887 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.5858, allocations: 0 / 367.3 MB, free: 1.887 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001298/0.5871, allocations: 0.6267 MB / 368 MB, free: 1.223 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 3.376e-06/0.5872, allocations: 0 / 368 MB, free: 1.223 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002751/0.5899, allocations: 1.117 MB / 369.1 MB, free: 56 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2158/0.8058, allocations: 278.4 kB / 369.4 MB, free: 89.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002891/0.8087, allocations: 1.011 MB / 370.4 MB, free: 89.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002098/0.809, allocations: 41.19 kB / 370.4 MB, free: 89.53 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.8091, allocations: 144.8 kB / 370.5 MB, free: 89.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.8093, allocations: 71.67 kB / 370.6 MB, free: 89.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.245e-05/0.8094, allocations: 11.8 kB / 370.6 MB, free: 89.44 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.828e-05/0.8095, allocations: 342.7 kB / 371 MB, free: 89.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009044/0.8104, allocations: 343.5 kB / 371.3 MB, free: 89.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007343/0.8112, allocations: 342.1 kB / 371.6 MB, free: 89.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006697/0.8119, allocations: 487.7 kB / 372.1 MB, free: 88.9 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.8119, allocations: 0 / 372.1 MB, free: 88.9 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002004/0.8139, allocations: 1.075 MB / 373.2 MB, free: 88.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000194/0.8142, allocations: 247.5 kB / 373.4 MB, free: 88.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.8142, allocations: 3.703 kB / 373.4 MB, free: 88.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.469e-05/0.8142, allocations: 0 / 373.4 MB, free: 88.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.525e-05/0.8143, allocations: 3.75 kB / 373.4 MB, free: 88.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.8143, allocations: 6.938 kB / 373.4 MB, free: 88.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005791/0.8149, allocations: 43.92 kB / 373.5 MB, free: 88.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001825/0.8151, allocations: 121.5 kB / 373.6 MB, free: 88.41 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.000434/0.8155, allocations: 411 kB / 374 MB, free: 88.08 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001786/0.8157, allocations: 84.81 kB / 374.1 MB, free: 88.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004368/0.8162, allocations: 152.9 kB / 374.2 MB, free: 87.97 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.8162, allocations: 0 / 374.2 MB, free: 87.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.8162, allocations: 0 / 374.2 MB, free: 87.97 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.8162, allocations: 3.375 kB / 374.2 MB, free: 87.97 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003411/0.8196, allocations: 1.915 MB / 376.2 MB, free: 87.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.8197, allocations: 0 / 376.2 MB, free: 87.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.319e-05/0.8197, allocations: 3.562 kB / 376.2 MB, free: 87.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.749e-06/0.8197, allocations: 3.953 kB / 376.2 MB, free: 87.37 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/0.8199, allocations: 33.59 kB / 376.2 MB, free: 87.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.8199, allocations: 2.75 kB / 376.2 MB, free: 87.37 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.8199, allocations: 0 / 376.2 MB, free: 87.37 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002386/0.8223, allocations: 1.338 MB / 377.5 MB, free: 86.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/0.8237, allocations: 0.5545 MB / 378.1 MB, free: 86.8 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002617/0.824, allocations: 64.77 kB / 378.2 MB, free: 86.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005366/0.8246, allocations: 38.31 kB / 378.2 MB, free: 86.79 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005699/0.8252, allocations: 238.9 kB / 378.4 MB, free: 86.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001937/0.8254, allocations: 134.6 kB / 378.6 MB, free: 86.79 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00171/0.8271, allocations: 0.8384 MB / 379.4 MB, free: 86.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.8271, allocations: 0 / 379.4 MB, free: 86.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007867/0.8279, allocations: 127.3 kB / 379.5 MB, free: 86.55 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.002855/0.8308, allocations: 1.983 MB / 381.5 MB, free: 85.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002203/0.8331, allocations: 1.503 MB / 383 MB, free: 84.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.8331, allocations: 0 / 383 MB, free: 84.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001354/0.8345, allocations: 1.134 MB / 384.1 MB, free: 83.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001855/0.8364, allocations: 252 kB / 384.4 MB, free: 83.54 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004415/0.8408, allocations: 1.851 MB / 386.2 MB, free: 82 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008104/0.8417, allocations: 1.032 MB / 387.3 MB, free: 81.03 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002113/0.8419, allocations: 33.05 kB / 387.3 MB, free: 81 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.8421, allocations: 74.94 kB / 387.4 MB, free: 80.94 MB / 314.7 MB Notification: Performance of SimCode: time 1.703e-06/0.8421, allocations: 3.25 kB / 387.4 MB, free: 80.94 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04604/0.8881, allocations: 15.36 MB / 402.7 MB, free: 67.33 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002651/0.8885, allocations: 154.2 kB / 402.9 MB, free: 67.1 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.674/3.562, allocations: 0 / 402.9 MB, free: 67.1 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat