Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.508e-05/2.53e-05, allocations: 0 / 269.3 MB, free: 6.406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08282/0.08287, allocations: 47.58 MB / 316.9 MB, free: 6.73 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3469/0.4298, allocations: 81.06 MB / 398 MB, free: 7.078 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.4301, allocations: 72.39 kB / 398.1 MB, free: 7.039 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05131/0.4814, allocations: 12.06 MB / 410.1 MB, free: 12.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.339e-06/0.4815, allocations: 4 kB / 410.1 MB, free: 12.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.568e-05/0.4816, allocations: 16 kB / 410.1 MB, free: 12.71 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002713/0.4843, allocations: 1.043 MB / 411.2 MB, free: 11.65 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.4843, allocations: 8.031 kB / 411.2 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002776/0.4846, allocations: 86.97 kB / 411.3 MB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.4858, allocations: 496.8 kB / 411.8 MB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.048e-05/0.4859, allocations: 46.62 kB / 411.8 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.4861, allocations: 62.25 kB / 411.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.4874, allocations: 0.5419 MB / 412.4 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.526e-05/0.4875, allocations: 0 / 412.4 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.83e-05/0.4876, allocations: 22.81 kB / 412.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.4876, allocations: 19.94 kB / 412.5 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/0.4889, allocations: 0.5208 MB / 413 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005273/0.4942, allocations: 2.29 MB / 415.3 MB, free: 8.395 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.4954, allocations: 457 kB / 415.7 MB, free: 8.121 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005608/0.4959, allocations: 258.8 kB / 416 MB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.98e-05/0.496, allocations: 12.42 kB / 416 MB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000789/0.4968, allocations: 346.3 kB / 416.3 MB, free: 7.688 MB / 330.7 MB Notification: Performance of pre-optimization done (n=54): time 4.122e-06/0.4968, allocations: 0 / 416.3 MB, free: 7.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=94): time 0.07312/0.57, allocations: 13.49 MB / 429.8 MB, free: 11.42 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.5701, allocations: 140.1 kB / 429.9 MB, free: 11.26 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007557/0.5709, allocations: 430.1 kB / 430.4 MB, free: 10.92 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000201/0.5711, allocations: 44.2 kB / 430.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003248/0.5715, allocations: 358.1 kB / 430.7 MB, free: 10.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003695/0.5718, allocations: 310.2 kB / 431.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.572, allocations: 30.25 kB / 431.1 MB, free: 10.35 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002281/0.5722, allocations: 382.6 kB / 431.5 MB, free: 9.992 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.5734, allocations: 470 kB / 431.9 MB, free: 9.742 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/0.5749, allocations: 0.6658 MB / 432.6 MB, free: 9.223 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.5762, allocations: 0.5486 MB / 433.1 MB, free: 8.863 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.534e-06/0.5763, allocations: 0 / 433.1 MB, free: 8.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02539/0.6017, allocations: 4.806 MB / 437.9 MB, free: 4.664 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.605e-05/0.6018, allocations: 63.41 kB / 438 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.6018, allocations: 4 kB / 438 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04129/0.6431, allocations: 6.951 MB / 444.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009246/0.6441, allocations: 174.4 kB / 445.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007297/0.6514, allocations: 2.816 MB / 447.9 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002221/0.6537, allocations: 231 kB / 448.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002527/0.654, allocations: 45.53 kB / 448.2 MB, free: 11.29 MB / 362.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 (50): * Single equations (assignments): 46 * 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.0003714/0.6544, allocations: 161.5 kB / 448.4 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002488/0.6546, allocations: 75.16 kB / 448.4 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02486/0.6795, allocations: 4.667 MB / 453.1 MB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.597e-05/0.6796, allocations: 12 kB / 453.1 MB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.6796, allocations: 7.984 kB / 453.1 MB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.558e-05/0.6796, allocations: 8.016 kB / 453.1 MB, free: 6.746 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00218/0.6818, allocations: 1.11 MB / 454.2 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.022e-06/0.6819, allocations: 0 / 454.2 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000743/0.6826, allocations: 127.8 kB / 454.4 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04157/0.7242, allocations: 6.899 MB / 461.3 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002395/0.7245, allocations: 27.97 kB / 461.3 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007361/0.7319, allocations: 2.849 MB / 464.1 MB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.433e-06/0.732, allocations: 4.109 kB / 464.1 MB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02657/0.7585, allocations: 5.302 MB / 469.4 MB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002909/0.7589, allocations: 144.2 kB / 469.6 MB, free: 6.121 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002413/0.7591, allocations: 23.95 kB / 469.6 MB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001793/0.7609, allocations: 211.8 kB / 469.8 MB, free: 5.891 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00035/0.7613, allocations: 100.6 kB / 469.9 MB, free: 5.793 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001516/0.7615, allocations: 31.97 kB / 469.9 MB, free: 5.762 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005836/0.7621, allocations: 325.6 kB / 470.3 MB, free: 5.445 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.6e-07/0.7621, allocations: 7.938 kB / 470.3 MB, free: 5.438 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00108/0.7632, allocations: 264 kB / 470.5 MB, free: 5.18 MB / 378.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.0003526/0.7636, allocations: 147.1 kB / 470.7 MB, free: 5.027 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006006/0.7696, allocations: 1.637 MB / 472.3 MB, free: 3.359 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.597e-06/0.7696, allocations: 0 / 472.3 MB, free: 3.359 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004319/0.774, allocations: 0.9614 MB / 473.3 MB, free: 2.402 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009559/0.775, allocations: 114 kB / 473.4 MB, free: 2.289 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003723/0.7787, allocations: 1.19 MB / 474.6 MB, free: 1.074 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007233/0.7795, allocations: 0.9587 MB / 475.5 MB, free: 84 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004249/0.7799, allocations: 54.08 kB / 475.6 MB, free: 28 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.7801, allocations: 27.44 kB / 475.6 MB, free: 0 / 378.7 MB Notification: Performance of SimCode: time 2.544e-05/0.7801, allocations: 0 / 475.6 MB, free: 0 / 378.7 MB Notification: Performance of Templates: time 0.04574/0.8259, allocations: 20.26 MB / 495.9 MB, free: 11.76 MB / 410.7 MB