Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.839/1.839, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.806e-05/2.81e-05, allocations: 4 kB / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1001, allocations: 50.41 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4018/0.502, allocations: 83.15 MB / 425.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.5023, allocations: 75.12 kB / 425.9 MB, free: 10.53 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08884/0.5911, allocations: 27.07 MB / 452.9 MB, free: 3.984 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.988e-06/0.5912, allocations: 0 / 452.9 MB, free: 3.984 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.061e-05/0.5912, allocations: 15.94 kB / 452.9 MB, free: 3.969 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.001283/0.5925, allocations: 1.012 MB / 454 MB, free: 2.918 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.5926, allocations: 8.031 kB / 454 MB, free: 2.91 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001143/0.5927, allocations: 53.42 kB / 454 MB, free: 2.855 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.5929, allocations: 90.95 kB / 454.1 MB, free: 2.766 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007396/0.5936, allocations: 420.5 kB / 454.5 MB, free: 2.344 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.191e-05/0.5937, allocations: 15.44 kB / 454.5 MB, free: 2.332 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.5938, allocations: 23.81 kB / 454.6 MB, free: 2.312 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.5949, allocations: 499 kB / 455 MB, free: 1.938 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.5949, allocations: 4 kB / 455 MB, free: 1.934 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.121e-05/0.595, allocations: 12 kB / 455.1 MB, free: 1.922 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.595, allocations: 4 kB / 455.1 MB, free: 1.918 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007794/0.5958, allocations: 366.7 kB / 455.4 MB, free: 1.668 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.5978, allocations: 0.9245 MB / 456.3 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009272/0.5987, allocations: 0.4919 MB / 456.8 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000916/0.5996, allocations: 492.9 kB / 457.3 MB, free: 92 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.5997, allocations: 8.031 kB / 457.3 MB, free: 84 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00119/0.6009, allocations: 0.6344 MB / 458 MB, free: 15.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 3.336e-06/0.6009, allocations: 0 / 458 MB, free: 15.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002495/0.6034, allocations: 1.133 MB / 459.1 MB, free: 14.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002159/0.6036, allocations: 283.3 kB / 459.4 MB, free: 13.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.6058, allocations: 1.019 MB / 460.4 MB, free: 12.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001287/0.606, allocations: 41.7 kB / 460.4 MB, free: 12.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.6061, allocations: 196.3 kB / 460.6 MB, free: 12.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.6063, allocations: 75.23 kB / 460.7 MB, free: 12.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.906e-05/0.6064, allocations: 12 kB / 460.7 MB, free: 12.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.6065, allocations: 322.8 kB / 461 MB, free: 12.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008219/0.6074, allocations: 343.8 kB / 461.4 MB, free: 11.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007932/0.6082, allocations: 339.8 kB / 461.7 MB, free: 11.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007961/0.609, allocations: 0.4891 MB / 462.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.609, allocations: 0 / 462.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002341/0.6113, allocations: 1.083 MB / 463.3 MB, free: 9.883 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002448/0.6116, allocations: 243.9 kB / 463.5 MB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.6116, allocations: 7.984 kB / 463.5 MB, free: 9.594 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.6117, allocations: 3.938 kB / 463.5 MB, free: 9.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.414e-05/0.6117, allocations: 7.938 kB / 463.5 MB, free: 9.582 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.6117, allocations: 0 / 463.5 MB, free: 9.582 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005631/0.6123, allocations: 39.88 kB / 463.6 MB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002188/0.6125, allocations: 116 kB / 463.7 MB, free: 9.43 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.0005124/0.6131, allocations: 418 kB / 464.1 MB, free: 8.973 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001827/0.6133, allocations: 95.02 kB / 464.2 MB, free: 8.879 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004647/0.6137, allocations: 147.7 kB / 464.3 MB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.6138, allocations: 0 / 464.3 MB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.6138, allocations: 0 / 464.3 MB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.6138, allocations: 3.938 kB / 464.3 MB, free: 8.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003694/0.6175, allocations: 1.931 MB / 466.2 MB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.6175, allocations: 0 / 466.2 MB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.499e-05/0.6175, allocations: 4 kB / 466.3 MB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.6176, allocations: 4 kB / 466.3 MB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.291e-05/0.6177, allocations: 31.98 kB / 466.3 MB, free: 6.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.6177, allocations: 0 / 466.3 MB, free: 6.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/0.6177, allocations: 3.984 kB / 466.3 MB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002641/0.6203, allocations: 1.357 MB / 467.6 MB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001216/0.6216, allocations: 0.5621 MB / 468.2 MB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000239/0.6218, allocations: 55.97 kB / 468.3 MB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005255/0.6224, allocations: 35.97 kB / 468.3 MB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006257/0.623, allocations: 235.7 kB / 468.5 MB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002073/0.6232, allocations: 127.9 kB / 468.7 MB, free: 4.211 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001727/0.625, allocations: 0.85 MB / 469.5 MB, free: 3.363 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.625, allocations: 0 / 469.5 MB, free: 3.363 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006473/0.6256, allocations: 124 kB / 469.6 MB, free: 3.242 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.003179/0.6288, allocations: 2.001 MB / 471.6 MB, free: 1.168 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002532/0.6314, allocations: 1.519 MB / 473.1 MB, free: 15.56 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.6314, allocations: 0 / 473.1 MB, free: 15.56 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.633, allocations: 1.129 MB / 474.3 MB, free: 14.35 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001718/0.6348, allocations: 271.2 kB / 474.5 MB, free: 14.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004786/0.6396, allocations: 1.949 MB / 476.5 MB, free: 12.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001008/0.6406, allocations: 1.027 MB / 477.5 MB, free: 11.04 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.6408, allocations: 79.41 kB / 477.6 MB, free: 10.96 MB / 394.7 MB Notification: Performance of SimCode: time 1.102e-06/0.6408, allocations: 0 / 477.6 MB, free: 10.96 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.422/3.063, allocations: 8.892 MB / 486.5 MB, free: 1.969 MB / 394.7 MB