Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadModel(Modelica): time 2.031/2.031, allocations: 225.8 MB / 238.8 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.884e-05/2.896e-05, allocations: 8 kB / 292.1 MB, free: 8.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09316/0.09321, allocations: 50.41 MB / 342.6 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3526/0.4459, allocations: 83.19 MB / 425.7 MB, free: 11.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002147/0.4461, allocations: 74.45 kB / 425.8 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05283/0.499, allocations: 12.66 MB / 438.5 MB, free: 180 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.067e-06/0.499, allocations: 4 kB / 438.5 MB, free: 176 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.125e-05/0.4991, allocations: 12 kB / 438.5 MB, free: 164 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.002826/0.5019, allocations: 1.07 MB / 439.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.502, allocations: 8.031 kB / 439.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002363/0.5022, allocations: 98.72 kB / 439.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.5034, allocations: 0.4981 MB / 440.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.847e-05/0.5035, allocations: 44.81 kB / 440.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001654/0.5037, allocations: 71.81 kB / 440.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.5054, allocations: 0.5556 MB / 440.8 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.11e-05/0.5055, allocations: 0 / 440.8 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002149/0.5057, allocations: 33.61 kB / 440.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-05/0.5058, allocations: 16 kB / 440.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00316/0.509, allocations: 0.539 MB / 441.4 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0113/0.5203, allocations: 2.343 MB / 443.8 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002324/0.5227, allocations: 452.6 kB / 444.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001254/0.524, allocations: 259.8 kB / 444.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001189/0.5241, allocations: 12.3 kB / 444.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001663/0.5258, allocations: 343.8 kB / 444.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.167e-05/0.5259, allocations: 3.984 kB / 444.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.1068/0.6327, allocations: 13.47 MB / 458.3 MB, free: 14.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.6329, allocations: 141.3 kB / 458.4 MB, free: 14.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008389/0.6337, allocations: 460.9 kB / 458.9 MB, free: 14.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001889/0.6339, allocations: 41.7 kB / 458.9 MB, free: 13.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003863/0.6343, allocations: 387.8 kB / 459.3 MB, free: 13.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003885/0.6347, allocations: 315.4 kB / 459.6 MB, free: 13.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.6349, allocations: 20 kB / 459.6 MB, free: 13.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002519/0.6351, allocations: 390.7 kB / 460 MB, free: 12.87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.6364, allocations: 478.2 kB / 460.5 MB, free: 12.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/0.638, allocations: 0.688 MB / 461.2 MB, free: 11.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.6393, allocations: 0.5509 MB / 461.7 MB, free: 11.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.799e-06/0.6393, allocations: 0 / 461.7 MB, free: 11.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02618/0.6655, allocations: 4.824 MB / 466.5 MB, free: 6.211 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.103e-05/0.6657, allocations: 67.39 kB / 466.6 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/0.6657, allocations: 4 kB / 466.6 MB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04234/0.708, allocations: 6.934 MB / 473.5 MB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009451/0.709, allocations: 171.8 kB / 473.7 MB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006109/0.7152, allocations: 2.681 MB / 476.4 MB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002031/0.7172, allocations: 219.8 kB / 476.6 MB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001707/0.7174, allocations: 48.22 kB / 476.6 MB, free: 12.02 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.0003669/0.7178, allocations: 172.7 kB / 476.8 MB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/0.718, allocations: 79.06 kB / 476.9 MB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02544/0.7435, allocations: 4.673 MB / 481.6 MB, free: 7.07 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.7435, allocations: 8 kB / 481.6 MB, free: 7.062 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.7435, allocations: 0 / 481.6 MB, free: 7.062 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.152e-05/0.7436, allocations: 11.91 kB / 481.6 MB, free: 7.051 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/0.7457, allocations: 1.126 MB / 482.7 MB, free: 5.875 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.7457, allocations: 0 / 482.7 MB, free: 5.875 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007251/0.7464, allocations: 127.9 kB / 482.8 MB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04193/0.7884, allocations: 6.895 MB / 489.7 MB, free: 14.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001919/0.7886, allocations: 23.97 kB / 489.8 MB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006045/0.7947, allocations: 2.678 MB / 492.4 MB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.049e-06/0.7947, allocations: 0 / 492.4 MB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02723/0.8219, allocations: 5.321 MB / 497.8 MB, free: 6.734 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002853/0.8223, allocations: 144.2 kB / 497.9 MB, free: 6.574 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002193/0.8225, allocations: 16 kB / 497.9 MB, free: 6.559 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001777/0.8243, allocations: 219.8 kB / 498.1 MB, free: 6.344 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003477/0.8247, allocations: 100.6 kB / 498.2 MB, free: 6.246 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000149/0.8248, allocations: 36.22 kB / 498.3 MB, free: 6.211 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005976/0.8254, allocations: 341.6 kB / 498.6 MB, free: 5.879 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.06e-07/0.8254, allocations: 0 / 498.6 MB, free: 5.879 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001053/0.8265, allocations: 268 kB / 498.9 MB, free: 5.617 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.0003616/0.8269, allocations: 158.8 kB / 499 MB, free: 5.453 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004642/0.8315, allocations: 1.504 MB / 0.4888 GB, free: 3.918 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.8316, allocations: 1.375 kB / 0.4888 GB, free: 3.918 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002953/0.8345, allocations: 0.8121 MB / 0.4896 GB, free: 3.105 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007379/0.8353, allocations: 110 kB / 0.4897 GB, free: 2.996 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003263/0.8386, allocations: 1.233 MB / 0.4909 GB, free: 1.738 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007421/0.8393, allocations: 0.9706 MB / 0.4918 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003815/0.8397, allocations: 62.25 kB / 0.4919 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.8399, allocations: 35.44 kB / 0.4919 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of SimCode: time 1.533e-06/0.8399, allocations: 0 / 0.4919 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of Templates: time 0.04643/0.8864, allocations: 20.88 MB / 0.5123 GB, free: 11.81 MB / 442.7 MB