Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.566/2.566, allocations: 195 MB / 202.9 MB, free: 6.648 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.388e-05/4.412e-05, allocations: 3.688 kB / 249.8 MB, free: 5.289 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1514, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5274/0.6788, allocations: 77.07 MB / 371.3 MB, free: 7.207 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/0.6792, allocations: 67.64 kB / 371.4 MB, free: 7.207 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1566/0.8358, allocations: 33.16 MB / 404.6 MB, free: 13.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.8358, allocations: 0 / 404.6 MB, free: 13.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.417e-05/0.8359, allocations: 7.875 kB / 404.6 MB, free: 13.07 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.00181/0.8377, allocations: 1.007 MB / 405.6 MB, free: 12.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/0.8378, allocations: 11.72 kB / 405.6 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000178/0.838, allocations: 54.17 kB / 405.6 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002698/0.8383, allocations: 85.66 kB / 405.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.8393, allocations: 412.8 kB / 406.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.901e-05/0.8394, allocations: 19.58 kB / 406.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.8396, allocations: 23.31 kB / 406.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001027/0.8406, allocations: 348.4 kB / 406.5 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.842, allocations: 475.8 kB / 407 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.842, allocations: 0 / 407 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.8422, allocations: 11.5 kB / 407 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.8422, allocations: 3.969 kB / 407 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002719/0.8449, allocations: 0.8804 MB / 407.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.8462, allocations: 494.7 kB / 408.4 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001168/0.8473, allocations: 483.2 kB / 408.8 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.8474, allocations: 0 / 408.8 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001582/0.849, allocations: 0.6294 MB / 409.5 MB, free: 10.13 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 3.577e-06/0.849, allocations: 0 / 409.5 MB, free: 10.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.00303/0.8521, allocations: 0.8791 MB / 410.3 MB, free: 9.445 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003155/0.8524, allocations: 292.8 kB / 410.6 MB, free: 9.121 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002902/0.8553, allocations: 0.9717 MB / 411.6 MB, free: 8.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002089/0.8556, allocations: 41.06 kB / 411.6 MB, free: 8.277 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001918/0.8558, allocations: 136 kB / 411.8 MB, free: 8.176 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002091/0.856, allocations: 73.42 kB / 411.8 MB, free: 8.113 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.8561, allocations: 15.42 kB / 411.9 MB, free: 8.102 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002334/0.8564, allocations: 345 kB / 412.2 MB, free: 7.766 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009866/0.8574, allocations: 335.9 kB / 412.5 MB, free: 7.543 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009495/0.8584, allocations: 329 kB / 412.8 MB, free: 7.328 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006939/0.8591, allocations: 238.9 kB / 413.1 MB, free: 7.168 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.8591, allocations: 0 / 413.1 MB, free: 7.168 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00287/0.862, allocations: 0.8328 MB / 413.9 MB, free: 6.535 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003429/0.8624, allocations: 246.8 kB / 414.1 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.8624, allocations: 0 / 414.1 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.8624, allocations: 0 / 414.1 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.376e-05/0.8625, allocations: 4 kB / 414.2 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.8625, allocations: 0 / 414.2 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007756/0.8633, allocations: 46.47 kB / 414.2 MB, free: 6.223 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005155/0.8638, allocations: 127.9 kB / 414.3 MB, free: 6.098 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.001054/0.8649, allocations: 411.8 kB / 414.7 MB, free: 5.668 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004407/0.8654, allocations: 86.97 kB / 414.8 MB, free: 5.582 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008929/0.8663, allocations: 153.6 kB / 415 MB, free: 5.445 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.494e-05/0.8664, allocations: 4 kB / 415 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/0.8664, allocations: 4 kB / 415 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.8664, allocations: 0 / 415 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006939/0.8734, allocations: 1.597 MB / 416.6 MB, free: 4.023 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.8734, allocations: 0 / 416.6 MB, free: 4.023 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.531e-05/0.8735, allocations: 4 kB / 416.6 MB, free: 4.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.888e-06/0.8735, allocations: 0 / 416.6 MB, free: 4.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002465/0.8738, allocations: 31.98 kB / 416.6 MB, free: 3.988 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.8738, allocations: 0 / 416.6 MB, free: 3.988 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.8738, allocations: 0 / 416.6 MB, free: 3.988 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004881/0.8787, allocations: 1.064 MB / 417.7 MB, free: 2.906 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002884/0.8817, allocations: 0.562 MB / 418.2 MB, free: 2.324 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004954/0.8822, allocations: 55.97 kB / 418.3 MB, free: 2.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.8834, allocations: 31.97 kB / 418.3 MB, free: 2.238 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001212/0.8846, allocations: 235.7 kB / 418.5 MB, free: 2.008 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004484/0.8851, allocations: 127.9 kB / 418.7 MB, free: 1.883 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003619/0.8887, allocations: 0.8109 MB / 419.5 MB, free: 1.078 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.243e-06/0.8888, allocations: 4 kB / 419.5 MB, free: 1.074 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00159/0.8904, allocations: 116 kB / 419.6 MB, free: 0.9609 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.005751/0.8962, allocations: 1.703 MB / 421.3 MB, free: 15.24 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004803/0.9011, allocations: 1.48 MB / 422.8 MB, free: 13.67 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.9012, allocations: 0 / 422.8 MB, free: 13.67 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002985/0.9042, allocations: 1.121 MB / 423.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003204/0.9075, allocations: 258.2 kB / 424.1 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008501/0.916, allocations: 1.86 MB / 426 MB, free: 10.31 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001625/0.9177, allocations: 1.042 MB / 427.1 MB, free: 9.234 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002576/0.918, allocations: 37.81 kB / 427.1 MB, free: 9.199 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.9182, allocations: 75.41 kB / 427.2 MB, free: 9.125 MB / 330.7 MB Notification: Performance of SimCode: time 1.222e-06/0.9182, allocations: 0 / 427.2 MB, free: 9.125 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08444/1.003, allocations: 15.22 MB / 442.4 MB, free: 9.695 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003383/1.003, allocations: 136.2 kB / 442.5 MB, free: 9.504 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.744/4.747, allocations: 0 / 442.5 MB, free: 9.504 MB / 346.7 MB "" Variables in the reference:time,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y Variables in the result:_D_whenCondition1,_D_whenCondition2,_D_whenCondition3,_D_whenCondition4,dLATREGL.dLATR.ResetMap[Modelica.Electrical.Digital.Interfaces.Logic.'-'],dLATREGL.dLATR.ResetMap[Modelica.Electrical.Digital.Interfaces.Logic.'0'],dLATREGL.dLATR.ResetMap[Modelica.Electrical.Digital.Interfaces.Logic.'1'],dLATREGL.dLATR.ResetMap[Modelica.Electrical.Digital.Interfaces.Logic.'H'],dLATREGL.dLATR.ResetMap[Modelica.Electrical.Digital.Interfaces.Logic.'L'],dLATREGL.dLATR.ResetMap[Modelica.Electrical.Digital.Interfaces.Logic.'U'],dLATREGL.dLATR.ResetMap[Modelica.Electrical.Digital.Interfaces.Logic.'W'],dLATREGL.dLATR.ResetMap[Modelica.Electrical.Digital.Interfaces.Logic.'X'],dLATREGL.dLATR.ResetMap[Modelica.Electrical.Digital.Interfaces.Logic.'Z'],dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable,dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.n,dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.reset,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.strength,dLATREGL.dataIn[1],dLATREGL.dataIn[2],dLATREGL.dataOut[1],dLATREGL.dataOut[2],dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].tHL,dLATREGL.delay.inertialDelaySensitive[1].tLH,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y0,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].tHL,dLATREGL.delay.inertialDelaySensitive[2].tLH,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y0,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.n,dLATREGL.delay.tHL,dLATREGL.delay.tLH,dLATREGL.delay.x[1],dLATREGL.delay.x[2],dLATREGL.delay.y[1],dLATREGL.delay.y[2],dLATREGL.enable,dLATREGL.n,dLATREGL.reset,dLATREGL.strength,dLATREGL.tHL,dLATREGL.tLH,data_0.n,data_0.t[1],data_0.t[2],data_0.x[1],data_0.x[2],data_0.y,data_0.y0,data_1.n,data_1.t[1],data_1.t[2],data_1.x[1],data_1.x[2],data_1.y,data_1.y0,enable.n,enable.t[1],enable.t[2],enable.t[3],enable.x[1],enable.x[2],enable.x[3],enable.y,enable.y0,reset.n,reset.t[1],reset.t[2],reset.t[3],reset.t[4],reset.t[5],reset.x[1],reset.x[2],reset.x[3],reset.x[4],reset.x[5],reset.y,reset.y0,time