Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.813/1.813, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.612e-05/2.621e-05, allocations: 0 / 255.4 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07417/0.07422, allocations: 44.5 MB / 299.9 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3256/0.3998, allocations: 76.65 MB / 376.5 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.4001, allocations: 69.75 kB / 376.6 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05706/0.4572, allocations: 13.87 MB / 390.4 MB, free: 20.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4572, allocations: 0.9844 kB / 390.4 MB, free: 20.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.549e-05/0.4573, allocations: 11.75 kB / 390.5 MB, free: 20.98 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.003947/0.4612, allocations: 1.319 MB / 391.8 MB, free: 20.33 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.992e-05/0.4613, allocations: 7.875 kB / 391.8 MB, free: 20.33 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002321/0.4615, allocations: 93.86 kB / 391.9 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00156/0.4631, allocations: 0.575 MB / 392.4 MB, free: 19.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.211e-05/0.4632, allocations: 53.06 kB / 392.5 MB, free: 19.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.4634, allocations: 62.19 kB / 392.6 MB, free: 19.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.4648, allocations: 0.6144 MB / 393.2 MB, free: 19.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.522e-05/0.4648, allocations: 0 / 393.2 MB, free: 19.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-05/0.4649, allocations: 30.66 kB / 393.2 MB, free: 19.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.465, allocations: 15.8 kB / 393.2 MB, free: 19.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001415/0.4664, allocations: 0.6256 MB / 393.8 MB, free: 19.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00492/0.4713, allocations: 2.338 MB / 396.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.4724, allocations: 0.4922 MB / 396.7 MB, free: 19.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006002/0.473, allocations: 300 kB / 397 MB, free: 19.17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.247e-05/0.4731, allocations: 8.125 kB / 397 MB, free: 19.17 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008027/0.4739, allocations: 397.4 kB / 397.4 MB, free: 19.08 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 3.641e-06/0.474, allocations: 0 / 397.4 MB, free: 19.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.05559/0.5296, allocations: 10.53 MB / 407.9 MB, free: 17.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.5297, allocations: 140.8 kB / 408 MB, free: 17.39 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006557/0.5303, allocations: 450.9 kB / 408.5 MB, free: 17.24 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001832/0.5305, allocations: 40.95 kB / 408.5 MB, free: 17.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.5307, allocations: 407.5 kB / 408.9 MB, free: 16.92 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002749/0.531, allocations: 316.3 kB / 409.2 MB, free: 16.69 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.5312, allocations: 17.97 kB / 409.2 MB, free: 16.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.846e-05/0.5313, allocations: 352.1 kB / 409.6 MB, free: 16.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.5326, allocations: 0.5411 MB / 410.1 MB, free: 16.35 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.5341, allocations: 0.7498 MB / 410.9 MB, free: 16.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/0.5355, allocations: 0.6197 MB / 411.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.893e-06/0.5355, allocations: 3.938 kB / 411.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03488/0.5704, allocations: 6.132 MB / 417.6 MB, free: 13.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.095e-05/0.5705, allocations: 70.73 kB / 417.7 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.5705, allocations: 5.719 kB / 417.7 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03712/0.6076, allocations: 6.061 MB / 423.8 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009713/0.6087, allocations: 188.7 kB / 423.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006098/0.6148, allocations: 2.91 MB / 426.9 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002211/0.617, allocations: 291.9 kB / 427.1 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00017/0.6172, allocations: 46.38 kB / 427.2 MB, free: 10.34 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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.0003298/0.6175, allocations: 163.7 kB / 427.3 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001936/0.6177, allocations: 77.84 kB / 427.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02602/0.6438, allocations: 4.741 MB / 432.2 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-05/0.6438, allocations: 12.03 kB / 432.2 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.445e-06/0.6438, allocations: 0 / 432.2 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.737e-05/0.6439, allocations: 7.922 kB / 432.2 MB, free: 7.059 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001766/0.6456, allocations: 1.258 MB / 433.4 MB, free: 6.105 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.236e-06/0.6457, allocations: 7.953 kB / 433.4 MB, free: 6.098 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006313/0.6463, allocations: 127.4 kB / 433.6 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03121/0.6775, allocations: 6.032 MB / 439.6 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001865/0.6778, allocations: 20.05 kB / 439.6 MB, free: 324 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02977/0.7075, allocations: 8.64 MB / 448.3 MB, free: 7.895 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.596e-06/0.7076, allocations: 0 / 448.3 MB, free: 7.895 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02687/0.7345, allocations: 5.47 MB / 453.7 MB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007909/0.7353, allocations: 280 kB / 454 MB, free: 2.105 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002322/0.7356, allocations: 24.02 kB / 454 MB, free: 2.082 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002127/0.7377, allocations: 291.6 kB / 454.3 MB, free: 1.797 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005738/0.7383, allocations: 136.6 kB / 454.4 MB, free: 1.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001577/0.7385, allocations: 27.98 kB / 454.5 MB, free: 1.633 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005994/0.7391, allocations: 337.6 kB / 454.8 MB, free: 1.301 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.7391, allocations: 4 kB / 454.8 MB, free: 1.297 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001312/0.7404, allocations: 331.9 kB / 455.1 MB, free: 0.9727 MB / 330.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.0003475/0.7408, allocations: 139.2 kB / 455.3 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00512/0.7459, allocations: 1.653 MB / 456.9 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.377e-06/0.746, allocations: 4 kB / 456.9 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004803/0.7508, allocations: 1.256 MB / 458.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008454/0.7516, allocations: 110 kB / 458.3 MB, free: 13.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007214/0.7589, allocations: 1.927 MB / 460.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000756/0.7597, allocations: 0.9666 MB / 461.2 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002485/0.7599, allocations: 35.44 kB / 461.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of SimCode: time 1.864e-06/0.7599, allocations: 0 / 461.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of Templates: time 0.03117/0.7911, allocations: 17.99 MB / 479.2 MB, free: 8.773 MB / 362.7 MB