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_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.676/1.676, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.388e-05/3.412e-05, allocations: 4 kB / 225 MB, free: 2.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2657, allocations: 38.77 MB / 263.8 MB, free: 9.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1173/0.383, allocations: 71.51 MB / 335.3 MB, free: 2.227 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.3833, allocations: 71.95 kB / 335.4 MB, free: 2.156 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07845/0.4618, allocations: 13.93 MB / 349.3 MB, free: 4.168 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.4619, allocations: 8 kB / 349.3 MB, free: 4.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.791e-05/0.462, allocations: 12 kB / 349.3 MB, free: 4.148 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.007772/0.4697, allocations: 1.323 MB / 350.6 MB, free: 2.762 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.283e-05/0.4698, allocations: 12.03 kB / 350.6 MB, free: 2.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004131/0.4703, allocations: 86.97 kB / 350.7 MB, free: 2.664 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00295/0.4732, allocations: 0.5874 MB / 351.3 MB, free: 2.035 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.234e-05/0.4734, allocations: 41.31 kB / 351.4 MB, free: 1.996 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002847/0.4737, allocations: 60 kB / 351.4 MB, free: 1.938 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002777/0.4765, allocations: 0.6131 MB / 352 MB, free: 1.316 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.939e-05/0.4765, allocations: 0 / 352 MB, free: 1.316 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001839/0.4768, allocations: 31.98 kB / 352.1 MB, free: 1.285 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.279e-05/0.4768, allocations: 16 kB / 352.1 MB, free: 1.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003017/0.4798, allocations: 0.6196 MB / 352.7 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01033/0.4902, allocations: 2.358 MB / 355.1 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002315/0.4926, allocations: 0.5001 MB / 355.6 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00129/0.4939, allocations: 306 kB / 355.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.804e-05/0.494, allocations: 12.42 kB / 355.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00165/0.4957, allocations: 392.7 kB / 356.3 MB, free: 12.97 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 6.906e-06/0.4957, allocations: 0 / 356.3 MB, free: 12.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.07984/0.5756, allocations: 10.57 MB / 366.8 MB, free: 2.324 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.5758, allocations: 141.3 kB / 367 MB, free: 2.156 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008234/0.5766, allocations: 452.8 kB / 367.4 MB, free: 1.707 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001963/0.5768, allocations: 45.7 kB / 367.4 MB, free: 1.656 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000376/0.5772, allocations: 371.8 kB / 367.8 MB, free: 1.285 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004071/0.5776, allocations: 311.5 kB / 368.1 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.5778, allocations: 20 kB / 368.1 MB, free: 0.957 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002427/0.578, allocations: 382.8 kB / 368.5 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001495/0.5795, allocations: 0.5569 MB / 369.1 MB, free: 20 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2288/0.8084, allocations: 0.741 MB / 369.8 MB, free: 88.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001589/0.81, allocations: 0.6214 MB / 370.4 MB, free: 88.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.248e-06/0.81, allocations: 1.656 kB / 370.4 MB, free: 88.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03269/0.8427, allocations: 6.192 MB / 376.6 MB, free: 88.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.973e-05/0.8428, allocations: 64.73 kB / 376.7 MB, free: 88.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.8429, allocations: 3.875 kB / 376.7 MB, free: 88.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03695/0.8798, allocations: 6.097 MB / 382.8 MB, free: 87.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000869/0.8807, allocations: 186 kB / 383 MB, free: 87.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005836/0.8866, allocations: 2.933 MB / 385.9 MB, free: 84.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002357/0.889, allocations: 296.3 kB / 386.2 MB, free: 84.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001707/0.8892, allocations: 43.5 kB / 386.2 MB, free: 84.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.0003408/0.8895, allocations: 164.9 kB / 386.4 MB, free: 84.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.8897, allocations: 80.31 kB / 386.5 MB, free: 84.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02431/0.9141, allocations: 4.757 MB / 391.2 MB, free: 79.9 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.742e-05/0.9141, allocations: 12 kB / 391.2 MB, free: 79.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.211e-06/0.9142, allocations: 0 / 391.2 MB, free: 79.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-05/0.9142, allocations: 11.5 kB / 391.3 MB, free: 79.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001813/0.916, allocations: 1.258 MB / 392.5 MB, free: 78.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.516e-06/0.916, allocations: 0 / 392.5 MB, free: 78.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006605/0.9167, allocations: 126.7 kB / 392.6 MB, free: 78.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03304/0.9498, allocations: 6.05 MB / 398.7 MB, free: 72.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002433/0.9501, allocations: 27.97 kB / 398.7 MB, free: 72.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04716/0.9972, allocations: 8.693 MB / 407.4 MB, free: 63.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.159e-06/0.9973, allocations: 3.953 kB / 407.4 MB, free: 63.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04736/1.045, allocations: 5.482 MB / 412.9 MB, free: 58.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003494/1.045, allocations: 144.2 kB / 413 MB, free: 57.89 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003911/1.045, allocations: 24.06 kB / 413.1 MB, free: 57.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003794/1.049, allocations: 287.6 kB / 413.3 MB, free: 57.58 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008414/1.05, allocations: 140.3 kB / 413.5 MB, free: 57.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002597/1.05, allocations: 37.56 kB / 413.5 MB, free: 57.42 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008026/1.051, allocations: 333.6 kB / 413.8 MB, free: 57.1 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.602e-06/1.051, allocations: 4 kB / 413.8 MB, free: 57.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00217/1.054, allocations: 332.6 kB / 414.2 MB, free: 56.77 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.0004426/1.054, allocations: 138.9 kB / 414.3 MB, free: 56.63 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00816/1.062, allocations: 1.653 MB / 416 MB, free: 54.96 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.696e-06/1.062, allocations: 1.125 kB / 416 MB, free: 54.96 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008529/1.071, allocations: 1.267 MB / 417.2 MB, free: 53.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/1.072, allocations: 117 kB / 417.3 MB, free: 53.57 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/1.084, allocations: 1.889 MB / 419.2 MB, free: 51.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000651/1.085, allocations: 0.9705 MB / 420.2 MB, free: 50.66 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006892/1.085, allocations: 55.16 kB / 420.2 MB, free: 50.61 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000258/1.086, allocations: 39.44 kB / 420.3 MB, free: 50.57 MB / 314.7 MB Notification: Performance of SimCode: time 2.239e-06/1.086, allocations: 0 / 420.3 MB, free: 50.57 MB / 314.7 MB Notification: Performance of Templates: time 0.07876/1.164, allocations: 29.09 MB / 449.4 MB, free: 21.6 MB / 314.7 MB