Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadModel(Modelica): time 1.962/1.962, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.906e-05/2.919e-05, allocations: 4 kB / 292.1 MB, free: 8.344 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09484/0.09489, allocations: 50.42 MB / 342.6 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3812/0.4761, allocations: 83.19 MB / 425.8 MB, free: 11.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/0.4764, allocations: 69.97 kB / 425.8 MB, free: 11.03 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05324/0.5296, allocations: 12.69 MB / 438.5 MB, free: 156 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.606e-06/0.5297, allocations: 0 / 438.5 MB, free: 156 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.539e-05/0.5297, allocations: 12 kB / 438.5 MB, free: 144 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002729/0.5325, allocations: 1.066 MB / 439.6 MB, free: 15.06 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.5325, allocations: 15.91 kB / 439.6 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000248/0.5328, allocations: 90.97 kB / 439.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.534, allocations: 0.5013 MB / 440.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.424e-05/0.5341, allocations: 44 kB / 440.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/0.5342, allocations: 76.81 kB / 440.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.5356, allocations: 0.5502 MB / 440.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.5356, allocations: 4 kB / 440.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.012e-05/0.5357, allocations: 24.88 kB / 440.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.5358, allocations: 16 kB / 440.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001368/0.5372, allocations: 0.5388 MB / 441.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005138/0.5423, allocations: 2.346 MB / 443.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.5434, allocations: 462 kB / 444.2 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005497/0.544, allocations: 256 kB / 444.5 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.795e-05/0.544, allocations: 12.41 kB / 444.5 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007463/0.5448, allocations: 349.3 kB / 444.9 MB, free: 11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 4.029e-06/0.5448, allocations: 0 / 444.9 MB, free: 11 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.07367/0.6185, allocations: 13.48 MB / 458.3 MB, free: 14.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.6187, allocations: 153.2 kB / 458.5 MB, free: 14.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008121/0.6195, allocations: 449 kB / 458.9 MB, free: 14.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001872/0.6197, allocations: 45.7 kB / 459 MB, free: 13.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003803/0.6201, allocations: 387.8 kB / 459.3 MB, free: 13.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003867/0.6205, allocations: 319.4 kB / 459.7 MB, free: 13.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.6206, allocations: 20 kB / 459.7 MB, free: 13.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002628/0.6209, allocations: 382.8 kB / 460 MB, free: 12.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002311/0.6232, allocations: 474.3 kB / 460.5 MB, free: 12.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/0.6252, allocations: 0.6958 MB / 461.2 MB, free: 11.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001416/0.6267, allocations: 0.5471 MB / 461.8 MB, free: 11.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.989e-06/0.6267, allocations: 0 / 461.8 MB, free: 11.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02619/0.6529, allocations: 4.832 MB / 466.6 MB, free: 6.219 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.662e-05/0.653, allocations: 67.42 kB / 466.7 MB, free: 6.141 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.055e-05/0.6531, allocations: 11.94 kB / 466.7 MB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04619/0.6993, allocations: 6.938 MB / 473.6 MB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/0.7009, allocations: 179.6 kB / 473.8 MB, free: 15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/0.7136, allocations: 2.821 MB / 476.6 MB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003844/0.7176, allocations: 227.8 kB / 476.8 MB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003183/0.7179, allocations: 47.97 kB / 476.9 MB, free: 11.86 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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.0006019/0.7185, allocations: 168.8 kB / 477 MB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004036/0.719, allocations: 83.05 kB / 477.1 MB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04756/0.7666, allocations: 4.685 MB / 481.8 MB, free: 6.895 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.03e-05/0.7666, allocations: 8 kB / 481.8 MB, free: 6.887 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.7667, allocations: 0 / 481.8 MB, free: 6.887 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.19e-05/0.7667, allocations: 3.984 kB / 481.8 MB, free: 6.883 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003503/0.7702, allocations: 1.13 MB / 482.9 MB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.928e-06/0.7703, allocations: 0 / 482.9 MB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001313/0.7716, allocations: 119.9 kB / 483.1 MB, free: 5.586 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05936/0.831, allocations: 6.899 MB / 490 MB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002275/0.8313, allocations: 23.97 kB / 490 MB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007397/0.8387, allocations: 2.838 MB / 492.8 MB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.16e-06/0.8387, allocations: 0 / 492.8 MB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02741/0.8662, allocations: 5.325 MB / 498.1 MB, free: 6.402 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000279/0.8665, allocations: 140.2 kB / 498.3 MB, free: 6.246 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002238/0.8667, allocations: 27.94 kB / 498.3 MB, free: 6.219 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/0.8685, allocations: 203.9 kB / 498.5 MB, free: 6.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003508/0.8688, allocations: 104.6 kB / 498.6 MB, free: 5.918 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.869, allocations: 39.97 kB / 498.6 MB, free: 5.879 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005972/0.8696, allocations: 337.6 kB / 499 MB, free: 5.551 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.64e-07/0.8696, allocations: 0 / 499 MB, free: 5.551 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001027/0.8707, allocations: 275.9 kB / 499.2 MB, free: 5.281 MB / 410.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.0003387/0.871, allocations: 143.2 kB / 499.4 MB, free: 5.133 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005815/0.8768, allocations: 1.66 MB / 0.4893 GB, free: 3.441 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.8769, allocations: 0 / 0.4893 GB, free: 3.441 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004199/0.8811, allocations: 0.9617 MB / 0.4902 GB, free: 2.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007631/0.8819, allocations: 114 kB / 0.4904 GB, free: 2.367 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.8855, allocations: 1.214 MB / 0.4915 GB, free: 1.129 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000724/0.8862, allocations: 0.9666 MB / 0.4925 GB, free: 136 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003934/0.8866, allocations: 62.27 kB / 0.4925 GB, free: 72 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.8868, allocations: 35.42 kB / 0.4926 GB, free: 36 kB / 410.7 MB Notification: Performance of SimCode: time 1.801e-06/0.8868, allocations: 0 / 0.4926 GB, free: 36 kB / 410.7 MB Notification: Performance of Templates: time 0.04546/0.9323, allocations: 20.35 MB / 0.5124 GB, free: 11.74 MB / 442.7 MB