Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.69/1.69, allocations: 171.2 MB / 183.8 MB, free: 12.06 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.335e-05/3.343e-05, allocations: 8 kB / 225 MB, free: 2.824 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2573, allocations: 38.76 MB / 263.8 MB, free: 9.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1083/0.3657, allocations: 71.51 MB / 335.3 MB, free: 2.266 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/0.3659, allocations: 71.95 kB / 335.3 MB, free: 2.195 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06281/0.4288, allocations: 13.93 MB / 349.3 MB, free: 4.211 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.009e-06/0.4288, allocations: 4 kB / 349.3 MB, free: 4.207 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.368e-05/0.4289, allocations: 16 kB / 349.3 MB, free: 4.191 MB / 298.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.004695/0.4336, allocations: 1.331 MB / 350.6 MB, free: 2.797 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.4337, allocations: 8.031 kB / 350.6 MB, free: 2.789 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003962/0.4341, allocations: 90.97 kB / 350.7 MB, free: 2.699 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001829/0.4359, allocations: 0.5757 MB / 351.3 MB, free: 2.082 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.712e-05/0.436, allocations: 49.31 kB / 351.3 MB, free: 2.035 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001778/0.4362, allocations: 60 kB / 351.4 MB, free: 1.977 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.4379, allocations: 0.6092 MB / 352 MB, free: 1.359 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.009e-05/0.4379, allocations: 0 / 352 MB, free: 1.359 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.4381, allocations: 35.92 kB / 352 MB, free: 1.324 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.493e-05/0.4381, allocations: 20 kB / 352.1 MB, free: 1.305 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.4398, allocations: 0.6158 MB / 352.7 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006098/0.4459, allocations: 2.358 MB / 355 MB, free: 14.24 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001349/0.4473, allocations: 0.5046 MB / 355.5 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000745/0.4481, allocations: 294.2 kB / 355.8 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.326e-05/0.4482, allocations: 12.44 kB / 355.8 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009865/0.4492, allocations: 400.7 kB / 356.2 MB, free: 13.01 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 4.529e-06/0.4492, allocations: 0 / 356.2 MB, free: 13.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.05693/0.5062, allocations: 10.57 MB / 366.8 MB, free: 2.363 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.5063, allocations: 141.3 kB / 366.9 MB, free: 2.195 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008631/0.5072, allocations: 456.7 kB / 367.4 MB, free: 1.742 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002412/0.5075, allocations: 41.7 kB / 367.4 MB, free: 1.695 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003648/0.5079, allocations: 402.3 kB / 367.8 MB, free: 1.297 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004351/0.5083, allocations: 315.5 kB / 368.1 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.5085, allocations: 23.94 kB / 368.1 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.5087, allocations: 346.8 kB / 368.5 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001521/0.5102, allocations: 0.553 MB / 369 MB, free: 64 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1833/0.6936, allocations: 0.7378 MB / 369.8 MB, free: 88.86 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/0.6953, allocations: 0.6184 MB / 370.4 MB, free: 88.79 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.721e-06/0.6953, allocations: 2.297 kB / 370.4 MB, free: 88.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03394/0.7292, allocations: 6.161 MB / 376.6 MB, free: 88.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.567e-05/0.7294, allocations: 62.06 kB / 376.6 MB, free: 88.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/0.7294, allocations: 3.969 kB / 376.6 MB, free: 88.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03928/0.7687, allocations: 6.097 MB / 382.7 MB, free: 87.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000888/0.7696, allocations: 183.4 kB / 382.9 MB, free: 87.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005872/0.7755, allocations: 2.935 MB / 385.8 MB, free: 84.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002362/0.7779, allocations: 294.1 kB / 386.1 MB, free: 84.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001816/0.7781, allocations: 43.69 kB / 386.2 MB, free: 84.42 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.0003425/0.7785, allocations: 163.7 kB / 386.3 MB, free: 84.26 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002053/0.7787, allocations: 79.47 kB / 386.4 MB, free: 84.22 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0235/0.8022, allocations: 4.755 MB / 391.2 MB, free: 79.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/0.8023, allocations: 8 kB / 391.2 MB, free: 79.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.823e-06/0.8023, allocations: 4 kB / 391.2 MB, free: 79.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.161e-05/0.8023, allocations: 7.984 kB / 391.2 MB, free: 79.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.8042, allocations: 1.261 MB / 392.4 MB, free: 78.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.106e-06/0.8042, allocations: 0 / 392.4 MB, free: 78.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000666/0.8049, allocations: 130.4 kB / 392.6 MB, free: 78.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03435/0.8392, allocations: 6.046 MB / 398.6 MB, free: 72.47 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002342/0.8395, allocations: 26.83 kB / 398.6 MB, free: 72.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02817/0.8677, allocations: 8.692 MB / 407.3 MB, free: 63.62 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.212e-06/0.8677, allocations: 3.953 kB / 407.3 MB, free: 63.61 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02536/0.8931, allocations: 5.48 MB / 412.8 MB, free: 58.11 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002209/0.8934, allocations: 144.2 kB / 413 MB, free: 57.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002353/0.8936, allocations: 28.75 kB / 413 MB, free: 57.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002045/0.8957, allocations: 283.7 kB / 413.3 MB, free: 57.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005167/0.8962, allocations: 140.2 kB / 413.4 MB, free: 57.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000149/0.8964, allocations: 35.02 kB / 413.4 MB, free: 57.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004619/0.8969, allocations: 337.6 kB / 413.8 MB, free: 57.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.56e-07/0.8969, allocations: 4 kB / 413.8 MB, free: 57.15 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001165/0.898, allocations: 332.5 kB / 414.1 MB, free: 56.83 MB / 314.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.0002884/0.8984, allocations: 133.7 kB / 414.2 MB, free: 56.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004514/0.9029, allocations: 1.664 MB / 415.9 MB, free: 55.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.042e-06/0.9029, allocations: 7.562 kB / 415.9 MB, free: 55.01 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004511/0.9074, allocations: 1.255 MB / 417.1 MB, free: 53.74 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000844/0.9083, allocations: 109.9 kB / 417.3 MB, free: 53.64 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00662/0.915, allocations: 1.928 MB / 419.2 MB, free: 51.69 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.9154, allocations: 0.9705 MB / 420.1 MB, free: 50.69 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.9157, allocations: 39.42 kB / 420.2 MB, free: 50.65 MB / 314.7 MB Notification: Performance of SimCode: time 2.234e-06/0.9157, allocations: 0 / 420.2 MB, free: 50.65 MB / 314.7 MB Notification: Performance of Templates: time 0.02461/0.9403, allocations: 18.14 MB / 438.3 MB, free: 32.6 MB / 314.7 MB