Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadModel(Modelica): time 1.923/1.923, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.04e-05/3.057e-05, allocations: 4 kB / 292.7 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 50.42 MB / 343.1 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.367/0.4791, allocations: 83.19 MB / 426.3 MB, free: 11.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.4794, allocations: 73.95 kB / 426.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05306/0.5325, allocations: 12.69 MB / 439 MB, free: 176 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.192e-06/0.5325, allocations: 0 / 439 MB, free: 176 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.636e-05/0.5326, allocations: 15.98 kB / 439 MB, free: 160 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.002711/0.5353, allocations: 1.061 MB / 440.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.5354, allocations: 11.97 kB / 440.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002285/0.5356, allocations: 90.97 kB / 440.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.5368, allocations: 0.511 MB / 440.7 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.432e-05/0.5368, allocations: 42.62 kB / 440.8 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.537, allocations: 68.58 kB / 440.8 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.5383, allocations: 0.5603 MB / 441.4 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.794e-05/0.5384, allocations: 4 kB / 441.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.595e-05/0.5385, allocations: 22.38 kB / 441.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.146e-05/0.5385, allocations: 16 kB / 441.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.5399, allocations: 0.5343 MB / 442 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005126/0.5451, allocations: 2.35 MB / 444.3 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.5461, allocations: 459.6 kB / 444.8 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005409/0.5467, allocations: 253.8 kB / 445 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.541e-05/0.5467, allocations: 11.11 kB / 445 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007615/0.5475, allocations: 356.5 kB / 445.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 3.856e-06/0.5475, allocations: 0 / 445.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.07236/0.6199, allocations: 13.48 MB / 458.9 MB, free: 14.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.6201, allocations: 153.2 kB / 459 MB, free: 14.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008355/0.6209, allocations: 452.9 kB / 459.4 MB, free: 14.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001883/0.6211, allocations: 41.7 kB / 459.5 MB, free: 13.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003871/0.6215, allocations: 391.8 kB / 459.9 MB, free: 13.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000384/0.6219, allocations: 315.4 kB / 460.2 MB, free: 13.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.6221, allocations: 20 kB / 460.2 MB, free: 13.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002431/0.6223, allocations: 386.7 kB / 460.6 MB, free: 12.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.6236, allocations: 474.3 kB / 461 MB, free: 12.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001471/0.6251, allocations: 0.6919 MB / 461.7 MB, free: 11.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/0.6265, allocations: 0.5509 MB / 462.3 MB, free: 11.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.866e-06/0.6265, allocations: 0 / 462.3 MB, free: 11.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02582/0.6523, allocations: 4.828 MB / 467.1 MB, free: 6.195 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.527e-05/0.6524, allocations: 67.44 kB / 467.2 MB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/0.6525, allocations: 8 kB / 467.2 MB, free: 6.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04124/0.6937, allocations: 6.938 MB / 474.1 MB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009345/0.6947, allocations: 183.7 kB / 474.3 MB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007211/0.7019, allocations: 2.818 MB / 477.1 MB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002049/0.704, allocations: 235.7 kB / 477.3 MB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/0.7042, allocations: 48.22 kB / 477.4 MB, free: 11.83 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.0003576/0.7046, allocations: 157.3 kB / 477.5 MB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/0.7048, allocations: 79.06 kB / 477.6 MB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02494/0.7298, allocations: 4.692 MB / 482.3 MB, free: 6.875 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.929e-05/0.7299, allocations: 8 kB / 482.3 MB, free: 6.867 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.11e-06/0.7299, allocations: 0 / 482.3 MB, free: 6.867 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.381e-05/0.7299, allocations: 3.984 kB / 482.3 MB, free: 6.863 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00209/0.732, allocations: 1.122 MB / 483.5 MB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.224e-06/0.732, allocations: 3.984 kB / 483.5 MB, free: 5.688 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007459/0.7328, allocations: 119.9 kB / 483.6 MB, free: 5.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04079/0.7736, allocations: 6.903 MB / 490.5 MB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002148/0.7739, allocations: 23.97 kB / 490.5 MB, free: 14.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007227/0.7811, allocations: 2.842 MB / 493.3 MB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.523e-06/0.7811, allocations: 0 / 493.3 MB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02675/0.8079, allocations: 5.321 MB / 498.7 MB, free: 6.379 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002841/0.8082, allocations: 144.2 kB / 498.8 MB, free: 6.219 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002176/0.8085, allocations: 19.95 kB / 498.8 MB, free: 6.199 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00173/0.8102, allocations: 211.8 kB / 499 MB, free: 5.992 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003438/0.8106, allocations: 100.6 kB / 499.1 MB, free: 5.895 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/0.8107, allocations: 40.22 kB / 499.2 MB, free: 5.855 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006045/0.8114, allocations: 341.6 kB / 499.5 MB, free: 5.523 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.47e-07/0.8114, allocations: 0 / 499.5 MB, free: 5.523 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001033/0.8124, allocations: 271.9 kB / 499.8 MB, free: 5.258 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.0003488/0.8128, allocations: 150.9 kB / 499.9 MB, free: 5.102 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005737/0.8185, allocations: 1.649 MB / 0.4898 GB, free: 3.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.8186, allocations: 0 / 0.4898 GB, free: 3.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004199/0.8228, allocations: 0.9656 MB / 0.4908 GB, free: 2.461 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008548/0.8237, allocations: 110 kB / 0.4909 GB, free: 2.352 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00362/0.8273, allocations: 1.214 MB / 0.492 GB, free: 1.113 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007306/0.8281, allocations: 0.9705 MB / 0.493 GB, free: 116 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003945/0.8285, allocations: 62.27 kB / 0.493 GB, free: 52 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.8286, allocations: 31.44 kB / 0.4931 GB, free: 20 kB / 410.7 MB Notification: Performance of SimCode: time 1.767e-06/0.8287, allocations: 0 / 0.4931 GB, free: 20 kB / 410.7 MB Notification: Performance of Templates: time 0.04612/0.8748, allocations: 20.35 MB / 0.513 GB, free: 11.72 MB / 442.7 MB