Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.925/1.925, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.319e-05/3.328e-05, allocations: 9.547 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1079, allocations: 50.41 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4334/0.5414, allocations: 83.47 MB / 426.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.5416, allocations: 75.83 kB / 426.2 MB, free: 10.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1031/0.6448, allocations: 31.08 MB / 457.3 MB, free: 112 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6448, allocations: 0 / 457.3 MB, free: 112 kB / 362.7 MB Notification: Performance of Transformations before backend: time 4.761e-05/0.6449, allocations: 16 kB / 457.3 MB, free: 96 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002118/0.647, allocations: 1.327 MB / 458.6 MB, free: 14.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.6471, allocations: 12.03 kB / 458.6 MB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002035/0.6473, allocations: 56.11 kB / 458.7 MB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002789/0.6476, allocations: 130.5 kB / 458.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.6487, allocations: 0.5184 MB / 459.3 MB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.786e-05/0.6488, allocations: 26.88 kB / 459.3 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.6489, allocations: 27.5 kB / 459.4 MB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/0.6503, allocations: 0.606 MB / 460 MB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.6503, allocations: 0 / 460 MB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.604e-05/0.6505, allocations: 19.97 kB / 460 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.6505, allocations: 8 kB / 460 MB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.6516, allocations: 463.8 kB / 460.4 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002894/0.6545, allocations: 1.174 MB / 461.6 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/0.656, allocations: 0.6936 MB / 462.3 MB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.6573, allocations: 0.6803 MB / 463 MB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.6574, allocations: 3.938 kB / 463 MB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001431/0.6588, allocations: 0.7415 MB / 463.7 MB, free: 9.598 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.865e-06/0.6588, allocations: 4 kB / 463.7 MB, free: 9.594 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.003079/0.6619, allocations: 1.414 MB / 465.2 MB, free: 8.125 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002721/0.6622, allocations: 332.9 kB / 465.5 MB, free: 7.738 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003986/0.6662, allocations: 1.615 MB / 467.1 MB, free: 6.109 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002267/0.6665, allocations: 45.69 kB / 467.1 MB, free: 6.059 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003112/0.6668, allocations: 252.9 kB / 467.4 MB, free: 5.809 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.667, allocations: 75.14 kB / 467.5 MB, free: 5.734 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.142e-05/0.6671, allocations: 12 kB / 467.5 MB, free: 5.723 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.6673, allocations: 326.8 kB / 467.8 MB, free: 5.395 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.6684, allocations: 447.8 kB / 468.2 MB, free: 4.957 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.6694, allocations: 463.7 kB / 468.7 MB, free: 4.504 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009585/0.6704, allocations: 0.5832 MB / 469.3 MB, free: 3.871 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.6704, allocations: 0 / 469.3 MB, free: 3.871 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002793/0.6732, allocations: 1.304 MB / 470.6 MB, free: 2.512 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002979/0.6735, allocations: 293.5 kB / 470.9 MB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.6736, allocations: 0 / 470.9 MB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.6736, allocations: 0 / 470.9 MB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.719e-05/0.6736, allocations: 7.984 kB / 470.9 MB, free: 2.168 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.6736, allocations: 0 / 470.9 MB, free: 2.168 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006743/0.6743, allocations: 47.81 kB / 470.9 MB, free: 2.121 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002397/0.6746, allocations: 132.2 kB / 471 MB, free: 1.992 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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 8 * 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.0006322/0.6752, allocations: 455.7 kB / 471.5 MB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002668/0.6755, allocations: 138.5 kB / 471.6 MB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007898/0.6763, allocations: 252 kB / 471.9 MB, free: 1.102 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.6763, allocations: 3.938 kB / 471.9 MB, free: 1.098 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.6763, allocations: 4 kB / 471.9 MB, free: 1.094 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.6764, allocations: 0 / 471.9 MB, free: 1.094 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005042/0.6814, allocations: 2.399 MB / 474.3 MB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.6815, allocations: 3.953 kB / 474.3 MB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.002e-05/0.6815, allocations: 4 kB / 474.3 MB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.6815, allocations: 0 / 474.3 MB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.6817, allocations: 39.95 kB / 474.3 MB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/0.6817, allocations: 0 / 474.3 MB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.6817, allocations: 4 kB / 474.3 MB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003276/0.685, allocations: 1.63 MB / 476 MB, free: 12.83 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001838/0.6868, allocations: 0.6784 MB / 476.6 MB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003237/0.6872, allocations: 59.95 kB / 476.7 MB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006424/0.6878, allocations: 43.91 kB / 476.7 MB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009796/0.6888, allocations: 379.5 kB / 477.1 MB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00024/0.6891, allocations: 135.9 kB / 477.2 MB, free: 11.53 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003197/0.6923, allocations: 1.343 MB / 478.6 MB, free: 10.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.6923, allocations: 0 / 478.6 MB, free: 10.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009012/0.6933, allocations: 148 kB / 478.7 MB, free: 10.04 MB / 394.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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 8 * 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.003895/0.6972, allocations: 2.27 MB / 481 MB, free: 7.688 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003302/0.7005, allocations: 1.913 MB / 482.9 MB, free: 5.676 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.7006, allocations: 0 / 482.9 MB, free: 5.676 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002082/0.7026, allocations: 1.432 MB / 484.3 MB, free: 4.145 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002025/0.7047, allocations: 303.9 kB / 484.6 MB, free: 3.855 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007293/0.712, allocations: 2.852 MB / 487.5 MB, free: 0.9492 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001577/0.7136, allocations: 1.216 MB / 488.7 MB, free: 15.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002437/0.7139, allocations: 135.4 kB / 488.8 MB, free: 15.57 MB / 410.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7139, allocations: 0 / 488.8 MB, free: 15.57 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.717/3.431, allocations: 13.79 MB / 0.4908 GB, free: 1.727 MB / 410.7 MB