Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadModel(Modelica): time 1.971/1.971, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.654e-05/2.672e-05, allocations: 4 kB / 292.7 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09007/0.09012, allocations: 50.42 MB / 343.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4286/0.5188, allocations: 83.19 MB / 426.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.519, allocations: 66.59 kB / 426.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0529/0.572, allocations: 12.67 MB / 439 MB, free: 160 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.572, allocations: 0 / 439 MB, free: 160 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.605e-05/0.5721, allocations: 16 kB / 439 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.002685/0.5748, allocations: 1.06 MB / 440.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.5748, allocations: 15.97 kB / 440.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002244/0.5751, allocations: 86.97 kB / 440.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.5762, allocations: 0.5013 MB / 440.7 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.543e-05/0.5763, allocations: 50.81 kB / 440.7 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.5765, allocations: 64.58 kB / 440.8 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.5779, allocations: 0.5636 MB / 441.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.5779, allocations: 0 / 441.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.813e-05/0.578, allocations: 23.75 kB / 441.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.085e-05/0.578, allocations: 16 kB / 441.4 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.5794, allocations: 0.5369 MB / 441.9 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005358/0.5848, allocations: 2.35 MB / 444.3 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.5859, allocations: 460.2 kB / 444.7 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005816/0.5865, allocations: 249.4 kB / 445 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.304e-05/0.5866, allocations: 15.92 kB / 445 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007726/0.5874, allocations: 353 kB / 445.3 MB, free: 11.01 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 3.846e-06/0.5874, allocations: 0 / 445.3 MB, free: 11.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.07108/0.6585, allocations: 13.46 MB / 458.8 MB, free: 14.72 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.6587, allocations: 145.3 kB / 458.9 MB, free: 14.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008503/0.6595, allocations: 449 kB / 459.4 MB, free: 14.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002022/0.6598, allocations: 49.7 kB / 459.4 MB, free: 14.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003904/0.6602, allocations: 391.7 kB / 459.8 MB, free: 13.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003957/0.6606, allocations: 319.4 kB / 460.1 MB, free: 13.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.6607, allocations: 23.94 kB / 460.1 MB, free: 13.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002501/0.661, allocations: 386.8 kB / 460.5 MB, free: 12.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001327/0.6623, allocations: 474.3 kB / 461 MB, free: 12.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/0.6639, allocations: 0.6842 MB / 461.7 MB, free: 11.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.6653, allocations: 0.5548 MB / 462.2 MB, free: 11.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.684e-06/0.6653, allocations: 4 kB / 462.2 MB, free: 11.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02525/0.6906, allocations: 4.824 MB / 467.1 MB, free: 6.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.654e-05/0.6907, allocations: 63.41 kB / 467.1 MB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.262e-05/0.6908, allocations: 11.94 kB / 467.1 MB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03986/0.7306, allocations: 6.919 MB / 474 MB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009471/0.7316, allocations: 191.7 kB / 474.2 MB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006241/0.7379, allocations: 2.662 MB / 476.9 MB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002042/0.74, allocations: 231.8 kB / 477.1 MB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001749/0.7401, allocations: 47.97 kB / 477.2 MB, free: 12.07 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.0003636/0.7405, allocations: 160.8 kB / 477.3 MB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002156/0.7408, allocations: 79.06 kB / 477.4 MB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02466/0.7654, allocations: 4.689 MB / 482.1 MB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.298e-05/0.7655, allocations: 15.94 kB / 482.1 MB, free: 7.109 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.618e-06/0.7655, allocations: 4 kB / 482.1 MB, free: 7.105 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-05/0.7655, allocations: 3.984 kB / 482.1 MB, free: 7.102 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.7677, allocations: 1.118 MB / 483.2 MB, free: 5.934 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.116e-06/0.7677, allocations: 0 / 483.2 MB, free: 5.934 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007715/0.7685, allocations: 127.9 kB / 483.4 MB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04466/0.8132, allocations: 6.88 MB / 490.2 MB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002012/0.8134, allocations: 27.97 kB / 490.3 MB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006096/0.8195, allocations: 2.69 MB / 493 MB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.768e-06/0.8196, allocations: 0 / 493 MB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02615/0.8457, allocations: 5.317 MB / 498.3 MB, free: 6.793 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002856/0.8461, allocations: 144.2 kB / 498.4 MB, free: 6.633 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002183/0.8463, allocations: 20 kB / 498.4 MB, free: 6.613 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/0.848, allocations: 215.8 kB / 498.6 MB, free: 6.402 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003454/0.8484, allocations: 108.6 kB / 498.8 MB, free: 6.297 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/0.8486, allocations: 31.97 kB / 498.8 MB, free: 6.266 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006144/0.8492, allocations: 345.6 kB / 499.1 MB, free: 5.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.8492, allocations: 0 / 499.1 MB, free: 5.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001087/0.8503, allocations: 268 kB / 499.4 MB, free: 5.668 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.0003592/0.8507, allocations: 150.9 kB / 499.5 MB, free: 5.512 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004741/0.8554, allocations: 1.504 MB / 0.4893 GB, free: 3.984 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.795e-06/0.8555, allocations: 0 / 0.4893 GB, free: 3.984 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003011/0.8585, allocations: 0.8137 MB / 0.4901 GB, free: 3.168 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008166/0.8593, allocations: 110 kB / 0.4902 GB, free: 3.059 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.8628, allocations: 1.245 MB / 0.4914 GB, free: 1.789 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000748/0.8636, allocations: 0.9627 MB / 0.4923 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000447/0.864, allocations: 58.27 kB / 0.4924 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.8642, allocations: 31.44 kB / 0.4924 GB, free: 0.707 MB / 410.7 MB Notification: Performance of SimCode: time 1.9e-06/0.8642, allocations: 4 kB / 0.4924 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of Templates: time 0.04773/0.912, allocations: 20.88 MB / 0.5128 GB, free: 11.87 MB / 442.7 MB