Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.169/2.169, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.656e-05/3.661e-05, allocations: 0 / 292.7 MB, free: 8.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1147, allocations: 50.42 MB / 343.2 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4452/0.56, allocations: 83.1 MB / 426.3 MB, free: 10.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.5603, allocations: 67.84 kB / 426.3 MB, free: 10.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09197/0.6523, allocations: 27.08 MB / 453.4 MB, free: 4.156 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6523, allocations: 4 kB / 453.4 MB, free: 4.152 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.798e-05/0.6524, allocations: 8 kB / 453.4 MB, free: 4.145 MB / 362.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.001361/0.6537, allocations: 1.012 MB / 454.4 MB, free: 3.094 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.6538, allocations: 12.02 kB / 454.4 MB, free: 3.082 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.6539, allocations: 57.17 kB / 454.5 MB, free: 3.027 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.6541, allocations: 87.02 kB / 454.6 MB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008002/0.655, allocations: 416.9 kB / 455 MB, free: 2.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.872e-05/0.655, allocations: 22.67 kB / 455 MB, free: 2.504 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.831e-05/0.6551, allocations: 22.12 kB / 455 MB, free: 2.484 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.6563, allocations: 495.7 kB / 455.5 MB, free: 2.109 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.6563, allocations: 4 kB / 455.5 MB, free: 2.105 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.048e-05/0.6564, allocations: 17.36 kB / 455.5 MB, free: 2.094 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.6564, allocations: 0 / 455.5 MB, free: 2.094 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008443/0.6573, allocations: 353.3 kB / 455.9 MB, free: 1.832 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.6595, allocations: 0.9261 MB / 456.8 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009978/0.6605, allocations: 0.4948 MB / 457.3 MB, free: 356 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009813/0.6615, allocations: 0.4892 MB / 457.8 MB, free: 15.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.6615, allocations: 0 / 457.8 MB, free: 15.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001183/0.6627, allocations: 0.6382 MB / 458.4 MB, free: 15.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.624e-06/0.6627, allocations: 0 / 458.4 MB, free: 15.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002553/0.6653, allocations: 1.129 MB / 459.6 MB, free: 14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002145/0.6655, allocations: 283.3 kB / 459.8 MB, free: 13.67 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00223/0.6678, allocations: 1.015 MB / 460.9 MB, free: 12.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.6679, allocations: 41.69 kB / 460.9 MB, free: 12.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.6681, allocations: 153.8 kB / 461 MB, free: 12.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.6682, allocations: 67.25 kB / 461.1 MB, free: 12.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.871e-05/0.6683, allocations: 11.98 kB / 461.1 MB, free: 12.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.6685, allocations: 338.8 kB / 461.5 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008077/0.6693, allocations: 351.8 kB / 461.8 MB, free: 11.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007983/0.6701, allocations: 343.8 kB / 462.1 MB, free: 11.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007839/0.6709, allocations: 496.8 kB / 462.6 MB, free: 10.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.6709, allocations: 0 / 462.6 MB, free: 10.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00234/0.6733, allocations: 1.094 MB / 463.7 MB, free: 9.672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002397/0.6735, allocations: 255.8 kB / 464 MB, free: 9.379 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.6735, allocations: 0 / 464 MB, free: 9.379 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.6736, allocations: 0 / 464 MB, free: 9.379 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.211e-05/0.6736, allocations: 3.938 kB / 464 MB, free: 9.375 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.6736, allocations: 4 kB / 464 MB, free: 9.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005778/0.6742, allocations: 43.88 kB / 464 MB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002206/0.6745, allocations: 124 kB / 464.1 MB, free: 9.207 MB / 378.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.0005034/0.675, allocations: 406.8 kB / 464.5 MB, free: 8.762 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001809/0.6752, allocations: 91.02 kB / 464.6 MB, free: 8.672 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004543/0.6756, allocations: 151.6 kB / 464.8 MB, free: 8.523 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.6756, allocations: 4 kB / 464.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.6757, allocations: 0 / 464.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.6757, allocations: 0 / 464.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003729/0.6794, allocations: 1.934 MB / 466.7 MB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.6794, allocations: 0 / 466.7 MB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.67e-05/0.6795, allocations: 8 kB / 466.7 MB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.6795, allocations: 0 / 466.7 MB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.916e-05/0.6796, allocations: 31.98 kB / 466.7 MB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.154e-06/0.6796, allocations: 7.984 kB / 466.8 MB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.6796, allocations: 0 / 466.8 MB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002717/0.6824, allocations: 1.357 MB / 468.1 MB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/0.6837, allocations: 0.5543 MB / 468.7 MB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002481/0.684, allocations: 55.97 kB / 468.7 MB, free: 4.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005666/0.6846, allocations: 43.88 kB / 468.8 MB, free: 4.348 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006517/0.6853, allocations: 231.7 kB / 469 MB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002229/0.6855, allocations: 127.9 kB / 469.1 MB, free: 3.996 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001888/0.6874, allocations: 0.8539 MB / 470 MB, free: 3.145 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6874, allocations: 0 / 470 MB, free: 3.145 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000731/0.6882, allocations: 124 kB / 470.1 MB, free: 3.023 MB / 378.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.003533/0.6917, allocations: 1.993 MB / 472.1 MB, free: 0.957 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002682/0.6944, allocations: 1.515 MB / 473.6 MB, free: 15.36 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/0.6945, allocations: 0 / 473.6 MB, free: 15.36 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001743/0.6962, allocations: 1.144 MB / 474.7 MB, free: 14.12 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/0.6981, allocations: 253.4 kB / 475 MB, free: 13.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00497/0.7031, allocations: 1.874 MB / 476.9 MB, free: 11.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.7042, allocations: 1.035 MB / 477.9 MB, free: 10.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002038/0.7044, allocations: 33.5 kB / 477.9 MB, free: 10.87 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.7046, allocations: 71.41 kB / 478 MB, free: 10.8 MB / 394.7 MB Notification: Performance of SimCode: time 1.503e-06/0.7046, allocations: 0 / 478 MB, free: 10.8 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04783/0.7524, allocations: 15.42 MB / 493.4 MB, free: 11.28 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003742/0.7529, allocations: 157.1 kB / 493.6 MB, free: 11.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.848/3.601, allocations: 0 / 493.6 MB, free: 11.05 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat