Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadModel(Modelica): time 1.874/1.874, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.926e-05/2.938e-05, allocations: 4 kB / 292.1 MB, free: 8.879 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08798/0.08803, allocations: 50.42 MB / 342.6 MB, free: 6.438 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3546/0.4427, allocations: 83.26 MB / 425.8 MB, free: 10.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.4429, allocations: 68.06 kB / 425.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05118/0.4941, allocations: 12.7 MB / 438.6 MB, free: 28 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.042e-06/0.4941, allocations: 0 / 438.6 MB, free: 28 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.865e-05/0.4942, allocations: 19.98 kB / 438.6 MB, free: 8 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002723/0.4969, allocations: 1.065 MB / 439.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.497, allocations: 8.031 kB / 439.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000222/0.4972, allocations: 94.95 kB / 439.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.4984, allocations: 0.5018 MB / 440.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.288e-05/0.4984, allocations: 46.19 kB / 440.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.4986, allocations: 69.27 kB / 440.4 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.5, allocations: 0.5549 MB / 440.9 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.5, allocations: 0 / 440.9 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.688e-05/0.5001, allocations: 25.38 kB / 440.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.5001, allocations: 16 kB / 441 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/0.5015, allocations: 0.5357 MB / 441.5 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005068/0.5066, allocations: 2.351 MB / 443.9 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.5076, allocations: 456.8 kB / 444.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005489/0.5082, allocations: 256.9 kB / 444.5 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.361e-05/0.5083, allocations: 12.41 kB / 444.6 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007681/0.5091, allocations: 351.2 kB / 444.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 3.528e-06/0.5091, allocations: 0 / 444.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.07227/0.5814, allocations: 13.49 MB / 458.4 MB, free: 14.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.5815, allocations: 145.1 kB / 458.5 MB, free: 14.44 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007941/0.5824, allocations: 455.6 kB / 459 MB, free: 14.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001862/0.5826, allocations: 43.77 kB / 459 MB, free: 14.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003307/0.5829, allocations: 426.5 kB / 459.4 MB, free: 13.72 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003746/0.5833, allocations: 309.3 kB / 459.7 MB, free: 13.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.5834, allocations: 18.94 kB / 459.8 MB, free: 13.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.5836, allocations: 351.5 kB / 460.1 MB, free: 13.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/0.5849, allocations: 474.2 kB / 460.6 MB, free: 12.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/0.5864, allocations: 0.6919 MB / 461.3 MB, free: 11.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.5878, allocations: 0.5509 MB / 461.8 MB, free: 11.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.482e-06/0.5878, allocations: 4 kB / 461.8 MB, free: 11.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02562/0.6134, allocations: 4.794 MB / 466.6 MB, free: 6.562 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.585e-05/0.6136, allocations: 59.53 kB / 466.7 MB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.6136, allocations: 12 kB / 466.7 MB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04144/0.655, allocations: 6.942 MB / 473.6 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009082/0.656, allocations: 179.7 kB / 473.8 MB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007176/0.6632, allocations: 2.822 MB / 476.6 MB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002011/0.6652, allocations: 231.7 kB / 476.8 MB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/0.6654, allocations: 47.97 kB / 476.9 MB, free: 12.2 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003589/0.6658, allocations: 160.8 kB / 477 MB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.666, allocations: 79.06 kB / 477.1 MB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02509/0.6911, allocations: 4.685 MB / 481.8 MB, free: 7.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.982e-05/0.6912, allocations: 12 kB / 481.8 MB, free: 7.238 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.218e-06/0.6912, allocations: 0 / 481.8 MB, free: 7.238 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.019e-05/0.6912, allocations: 3.984 kB / 481.8 MB, free: 7.234 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002091/0.6933, allocations: 1.13 MB / 482.9 MB, free: 6.055 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.795e-06/0.6934, allocations: 0 / 482.9 MB, free: 6.055 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006879/0.6941, allocations: 119.8 kB / 483.1 MB, free: 5.938 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04072/0.7348, allocations: 6.899 MB / 490 MB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001954/0.735, allocations: 27.97 kB / 490 MB, free: 15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007209/0.7423, allocations: 2.834 MB / 492.8 MB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.846e-06/0.7423, allocations: 7.938 kB / 492.8 MB, free: 12.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02655/0.7689, allocations: 5.314 MB / 498.1 MB, free: 6.754 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002734/0.7692, allocations: 148.1 kB / 498.3 MB, free: 6.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002128/0.7694, allocations: 23.95 kB / 498.3 MB, free: 6.566 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/0.7711, allocations: 207.8 kB / 498.5 MB, free: 6.363 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003427/0.7715, allocations: 100.6 kB / 498.6 MB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001442/0.7716, allocations: 36.02 kB / 498.7 MB, free: 6.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005874/0.7722, allocations: 345.6 kB / 499 MB, free: 5.895 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.33e-07/0.7723, allocations: 0 / 499 MB, free: 5.895 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001031/0.7733, allocations: 271.9 kB / 499.3 MB, free: 5.629 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003371/0.7737, allocations: 146.9 kB / 499.4 MB, free: 5.477 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005668/0.7793, allocations: 1.653 MB / 0.4893 GB, free: 3.801 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.976e-06/0.7794, allocations: 0 / 0.4893 GB, free: 3.801 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004081/0.7835, allocations: 0.9656 MB / 0.4903 GB, free: 2.832 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007246/0.7842, allocations: 102 kB / 0.4903 GB, free: 2.73 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003596/0.7878, allocations: 1.258 MB / 0.4916 GB, free: 1.441 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007392/0.7886, allocations: 0.9666 MB / 0.4925 GB, free: 456 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002134/0.7888, allocations: 35.44 kB / 0.4926 GB, free: 420 kB / 410.7 MB Notification: Performance of SimCode: time 1.555e-06/0.7888, allocations: 0 / 0.4926 GB, free: 420 kB / 410.7 MB Notification: Performance of Templates: time 0.02736/0.8162, allocations: 16.68 MB / 0.5088 GB, free: 15.73 MB / 442.7 MB