Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.917/1.917, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.743e-05/3.75e-05, allocations: 4 kB / 292.2 MB, free: 8.773 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1093, allocations: 50.41 MB / 342.6 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4385/0.5479, allocations: 83.52 MB / 426.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.5483, allocations: 69.91 kB / 426.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1297/0.6779, allocations: 39.13 MB / 465.3 MB, free: 8.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.678, allocations: 0 / 465.3 MB, free: 8.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.484e-05/0.6781, allocations: 16 kB / 465.4 MB, free: 8.324 MB / 378.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.00195/0.68, allocations: 1.319 MB / 466.7 MB, free: 6.906 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.6801, allocations: 12.03 kB / 466.7 MB, free: 6.895 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001806/0.6803, allocations: 62.55 kB / 466.8 MB, free: 6.824 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002961/0.6806, allocations: 134.4 kB / 466.9 MB, free: 6.691 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.6817, allocations: 0.5055 MB / 467.4 MB, free: 6.137 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.645e-05/0.6817, allocations: 23.98 kB / 467.4 MB, free: 6.113 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.6819, allocations: 31.94 kB / 467.4 MB, free: 6.082 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.6834, allocations: 0.6222 MB / 468.1 MB, free: 5.453 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.6834, allocations: 0 / 468.1 MB, free: 5.453 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.377e-05/0.6835, allocations: 19.92 kB / 468.1 MB, free: 5.434 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.6835, allocations: 4 kB / 468.1 MB, free: 5.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.6846, allocations: 471.7 kB / 468.6 MB, free: 4.969 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00289/0.6875, allocations: 1.166 MB / 469.7 MB, free: 3.746 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.689, allocations: 0.6898 MB / 470.4 MB, free: 3.047 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001281/0.6903, allocations: 0.6803 MB / 471.1 MB, free: 2.363 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.888e-06/0.6903, allocations: 0 / 471.1 MB, free: 2.363 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001425/0.6917, allocations: 0.7494 MB / 471.8 MB, free: 1.574 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.375e-06/0.6918, allocations: 0 / 471.8 MB, free: 1.574 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.00307/0.6948, allocations: 1.41 MB / 473.2 MB, free: 112 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002832/0.6951, allocations: 333 kB / 473.6 MB, free: 15.72 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003881/0.699, allocations: 1.615 MB / 475.2 MB, free: 14.09 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002214/0.6993, allocations: 45.69 kB / 475.2 MB, free: 14.04 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003029/0.6996, allocations: 252.9 kB / 475.5 MB, free: 13.79 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001951/0.6998, allocations: 87.12 kB / 475.6 MB, free: 13.71 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.056e-05/0.6999, allocations: 12 kB / 475.6 MB, free: 13.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.7001, allocations: 334.8 kB / 475.9 MB, free: 13.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.7011, allocations: 455.8 kB / 476.4 MB, free: 12.91 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.7022, allocations: 451.8 kB / 476.8 MB, free: 12.47 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000957/0.7032, allocations: 0.5755 MB / 477.4 MB, free: 11.85 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.7032, allocations: 0 / 477.4 MB, free: 11.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002779/0.706, allocations: 1.304 MB / 478.7 MB, free: 10.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002972/0.7063, allocations: 289.5 kB / 479 MB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.7063, allocations: 0 / 479 MB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.7064, allocations: 3.984 kB / 479 MB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.35e-05/0.7064, allocations: 7.938 kB / 479 MB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.7064, allocations: 0 / 479 MB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000669/0.7071, allocations: 47.88 kB / 479 MB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002658/0.7074, allocations: 136.2 kB / 479.1 MB, free: 9.965 MB / 394.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.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.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.000584/0.708, allocations: 451.7 kB / 479.6 MB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002674/0.7083, allocations: 134.4 kB / 479.7 MB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007933/0.7091, allocations: 252 kB / 480 MB, free: 9.086 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.7091, allocations: 3.938 kB / 480 MB, free: 9.082 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.7091, allocations: 0 / 480 MB, free: 9.082 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.7091, allocations: 4 kB / 480 MB, free: 9.078 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004997/0.7141, allocations: 2.407 MB / 482.4 MB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.7142, allocations: 0 / 482.4 MB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.932e-05/0.7142, allocations: 4 kB / 482.4 MB, free: 6.555 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.7142, allocations: 0 / 482.4 MB, free: 6.555 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.7143, allocations: 43.91 kB / 482.4 MB, free: 6.512 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.7144, allocations: 0 / 482.4 MB, free: 6.512 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.7144, allocations: 7.938 kB / 482.4 MB, free: 6.504 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00336/0.7177, allocations: 1.638 MB / 484.1 MB, free: 4.801 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001857/0.7196, allocations: 0.6747 MB / 484.7 MB, free: 4.105 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002907/0.72, allocations: 59.97 kB / 484.8 MB, free: 4.047 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000639/0.7206, allocations: 39.95 kB / 484.8 MB, free: 4.008 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00098/0.7216, allocations: 375.6 kB / 485.2 MB, free: 3.641 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002379/0.7219, allocations: 131.9 kB / 485.3 MB, free: 3.512 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003132/0.725, allocations: 1.339 MB / 486.7 MB, free: 2.168 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.725, allocations: 0 / 486.7 MB, free: 2.168 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008204/0.7259, allocations: 148 kB / 486.8 MB, free: 2.023 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,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.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.003869/0.7297, allocations: 2.269 MB / 489.1 MB, free: 15.68 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003263/0.733, allocations: 1.917 MB / 491 MB, free: 13.66 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.7331, allocations: 0 / 491 MB, free: 13.66 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002091/0.7352, allocations: 1.433 MB / 492.4 MB, free: 12.13 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/0.7372, allocations: 292.5 kB / 492.7 MB, free: 11.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007109/0.7443, allocations: 2.852 MB / 495.6 MB, free: 8.941 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00153/0.7459, allocations: 1.219 MB / 496.8 MB, free: 7.691 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002392/0.7462, allocations: 131.4 kB / 496.9 MB, free: 7.562 MB / 410.7 MB Notification: Performance of SimCode: time 1.242e-06/0.7462, allocations: 0 / 496.9 MB, free: 7.562 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.613/3.359, allocations: 13.79 MB / 0.4987 GB, free: 9.719 MB / 426.7 MB