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.851/1.851, allocations: 194.9 MB / 208.4 MB, free: 3.234 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.443e-05/2.466e-05, allocations: 0 / 255.3 MB, free: 3.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08708/0.08713, allocations: 44.5 MB / 299.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3527/0.4399, allocations: 76.64 MB / 376.5 MB, free: 22.65 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002135/0.4402, allocations: 72.39 kB / 376.5 MB, free: 22.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05567/0.4959, allocations: 13.87 MB / 390.4 MB, free: 21.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.765e-06/0.4959, allocations: 1.094 kB / 390.4 MB, free: 21.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.428e-05/0.496, allocations: 15.62 kB / 390.4 MB, free: 21.07 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.003714/0.4997, allocations: 1.317 MB / 391.7 MB, free: 20.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.4997, allocations: 11.72 kB / 391.8 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002375/0.5, allocations: 89.98 kB / 391.8 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/0.5015, allocations: 0.5695 MB / 392.4 MB, free: 20.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.285e-05/0.5015, allocations: 52.89 kB / 392.5 MB, free: 20.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.5017, allocations: 69.91 kB / 392.5 MB, free: 20.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.5031, allocations: 0.6129 MB / 393.1 MB, free: 20.03 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.5031, allocations: 7.812 kB / 393.2 MB, free: 20.03 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.662e-05/0.5032, allocations: 23.34 kB / 393.2 MB, free: 20.03 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.5032, allocations: 19.56 kB / 393.2 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.5047, allocations: 0.631 MB / 393.8 MB, free: 20.01 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004706/0.5094, allocations: 2.344 MB / 396.2 MB, free: 19.31 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.5105, allocations: 0.5001 MB / 396.7 MB, free: 19.27 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005878/0.5111, allocations: 305.4 kB / 397 MB, free: 19.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.141e-05/0.5112, allocations: 4.375 kB / 397 MB, free: 19.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007687/0.5119, allocations: 401.4 kB / 397.4 MB, free: 19.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 3.862e-06/0.512, allocations: 4 kB / 397.4 MB, free: 19.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.05011/0.5621, allocations: 10.52 MB / 407.9 MB, free: 17.67 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.5622, allocations: 145 kB / 408 MB, free: 17.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006513/0.5629, allocations: 443 kB / 408.5 MB, free: 17.35 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000207/0.5631, allocations: 48.33 kB / 408.5 MB, free: 17.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002105/0.5633, allocations: 410.4 kB / 408.9 MB, free: 17.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000284/0.5636, allocations: 305.2 kB / 409.2 MB, free: 16.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.5637, allocations: 21.53 kB / 409.2 MB, free: 16.8 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.323e-05/0.5638, allocations: 356.6 kB / 409.6 MB, free: 16.46 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.5651, allocations: 0.5471 MB / 410.1 MB, free: 16.45 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001378/0.5665, allocations: 0.7533 MB / 410.9 MB, free: 16.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.5678, allocations: 0.6165 MB / 411.5 MB, free: 16.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.587e-06/0.5678, allocations: 0 / 411.5 MB, free: 16.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02989/0.5977, allocations: 6.147 MB / 417.6 MB, free: 13.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.023e-05/0.5978, allocations: 67.23 kB / 417.7 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.5979, allocations: 7.812 kB / 417.7 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03216/0.63, allocations: 6.069 MB / 423.8 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008755/0.631, allocations: 179.5 kB / 424 MB, free: 11.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005794/0.6368, allocations: 2.903 MB / 426.9 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002302/0.6391, allocations: 300.5 kB / 427.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001724/0.6393, allocations: 42.2 kB / 427.2 MB, free: 10.45 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.0003382/0.6397, allocations: 165.3 kB / 427.4 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002014/0.6399, allocations: 78.47 kB / 427.4 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02298/0.6629, allocations: 4.747 MB / 432.2 MB, free: 7.074 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/0.6629, allocations: 8 kB / 432.2 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.229e-06/0.663, allocations: 0 / 432.2 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.059e-05/0.663, allocations: 7.984 kB / 432.2 MB, free: 7.059 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001831/0.6648, allocations: 1.263 MB / 433.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.66e-06/0.6649, allocations: 0 / 433.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006557/0.6655, allocations: 128.6 kB / 433.6 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03193/0.6975, allocations: 6.032 MB / 439.6 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002495/0.6978, allocations: 22.92 kB / 439.6 MB, free: 320 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03055/0.7283, allocations: 8.637 MB / 448.3 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.181e-06/0.7284, allocations: 3.984 kB / 448.3 MB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02721/0.7556, allocations: 5.462 MB / 453.7 MB, free: 2.355 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007588/0.7564, allocations: 283.9 kB / 454 MB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000226/0.7566, allocations: 23.95 kB / 454 MB, free: 2.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002172/0.7588, allocations: 287.8 kB / 454.3 MB, free: 1.754 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005737/0.7594, allocations: 140.5 kB / 454.5 MB, free: 1.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001538/0.7596, allocations: 27.97 kB / 454.5 MB, free: 1.586 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000565/0.7602, allocations: 337.6 kB / 454.8 MB, free: 1.258 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.6e-07/0.7602, allocations: 0 / 454.8 MB, free: 1.258 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0013/0.7615, allocations: 335.9 kB / 455.1 MB, free: 0.9297 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.0003318/0.7619, allocations: 133.2 kB / 455.3 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005077/0.767, allocations: 1.668 MB / 456.9 MB, free: 15.1 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.547e-06/0.767, allocations: 1.125 kB / 456.9 MB, free: 15.1 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004921/0.7719, allocations: 1.281 MB / 458.2 MB, free: 13.8 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009004/0.7729, allocations: 106 kB / 458.3 MB, free: 13.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007292/0.7802, allocations: 1.932 MB / 460.3 MB, free: 11.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007356/0.7809, allocations: 0.9705 MB / 461.2 MB, free: 10.74 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000251/0.7812, allocations: 35.44 kB / 461.3 MB, free: 10.7 MB / 346.7 MB Notification: Performance of SimCode: time 2.093e-06/0.7812, allocations: 0 / 461.3 MB, free: 10.7 MB / 346.7 MB Notification: Performance of Templates: time 0.03108/0.8123, allocations: 18.03 MB / 479.3 MB, free: 8.66 MB / 362.7 MB