Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadModel(Modelica): time 1.889/1.889, allocations: 205.8 MB / 218.9 MB, free: 9.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.844e-05/2.863e-05, allocations: 4 kB / 269.4 MB, free: 6.398 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08444/0.08449, allocations: 47.57 MB / 316.9 MB, free: 6.742 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3884/0.473, allocations: 81.07 MB / 398 MB, free: 7.109 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/0.4733, allocations: 74.89 kB / 398.1 MB, free: 7.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05208/0.5254, allocations: 12.04 MB / 410.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.26e-06/0.5254, allocations: 0 / 410.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.346e-05/0.5255, allocations: 12 kB / 410.1 MB, free: 12.76 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.002706/0.5282, allocations: 1.039 MB / 411.2 MB, free: 11.71 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.5283, allocations: 8.031 kB / 411.2 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002619/0.5285, allocations: 94.97 kB / 411.3 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.5297, allocations: 0.4905 MB / 411.7 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.958e-05/0.5298, allocations: 48.31 kB / 411.8 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.5299, allocations: 58.5 kB / 411.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.5314, allocations: 0.5389 MB / 412.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/0.5314, allocations: 3.938 kB / 412.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.336e-05/0.5315, allocations: 31.11 kB / 412.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.073e-05/0.5316, allocations: 19.94 kB / 412.4 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00134/0.5329, allocations: 0.5216 MB / 413 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005337/0.5383, allocations: 2.287 MB / 415.3 MB, free: 8.434 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.5394, allocations: 449.9 kB / 415.7 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005922/0.54, allocations: 259 kB / 415.9 MB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.378e-05/0.5401, allocations: 12.41 kB / 416 MB, free: 8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007798/0.5409, allocations: 347.4 kB / 416.3 MB, free: 7.727 MB / 330.7 MB Notification: Performance of pre-optimization done (n=54): time 4.065e-06/0.5409, allocations: 0 / 416.3 MB, free: 7.727 MB / 330.7 MB Notification: Performance of matching and sorting (n=94): time 0.07236/0.6133, allocations: 13.47 MB / 429.8 MB, free: 11.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.6134, allocations: 149.1 kB / 429.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007445/0.6142, allocations: 422.8 kB / 430.3 MB, free: 10.97 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002005/0.6144, allocations: 56.06 kB / 430.4 MB, free: 10.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003195/0.6147, allocations: 359.6 kB / 430.7 MB, free: 10.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003854/0.6152, allocations: 310.7 kB / 431 MB, free: 10.4 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.6153, allocations: 17.12 kB / 431.1 MB, free: 10.39 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002265/0.6155, allocations: 378.5 kB / 431.4 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.6167, allocations: 473.8 kB / 431.9 MB, free: 9.793 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/0.6182, allocations: 0.6645 MB / 432.5 MB, free: 9.273 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.6194, allocations: 0.5447 MB / 433.1 MB, free: 8.918 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.963e-06/0.6195, allocations: 4 kB / 433.1 MB, free: 8.914 MB / 346.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02528/0.6448, allocations: 4.79 MB / 437.9 MB, free: 4.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.97e-05/0.6449, allocations: 71.45 kB / 438 MB, free: 4.648 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/0.6449, allocations: 8 kB / 438 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04109/0.686, allocations: 6.929 MB / 444.9 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000957/0.687, allocations: 167.1 kB / 445.1 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006121/0.6932, allocations: 2.665 MB / 447.7 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00206/0.6953, allocations: 226.1 kB / 447.9 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001789/0.6955, allocations: 50.97 kB / 448 MB, free: 11.52 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.0003584/0.6959, allocations: 162 kB / 448.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002128/0.6961, allocations: 75.16 kB / 448.2 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0247/0.7208, allocations: 4.677 MB / 452.9 MB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.308e-05/0.7209, allocations: 8 kB / 452.9 MB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.7209, allocations: 4 kB / 452.9 MB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.369e-05/0.7209, allocations: 3.984 kB / 452.9 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002101/0.723, allocations: 1.11 MB / 454 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.477e-06/0.7231, allocations: 0 / 454 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007242/0.7238, allocations: 131.9 kB / 454.2 MB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0405/0.7643, allocations: 6.895 MB / 461.1 MB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002237/0.7646, allocations: 23.98 kB / 461.1 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006138/0.7707, allocations: 2.693 MB / 463.8 MB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.116e-06/0.7708, allocations: 3.938 kB / 463.8 MB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02675/0.7976, allocations: 5.306 MB / 469.1 MB, free: 6.711 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002754/0.7979, allocations: 144.1 kB / 469.2 MB, free: 6.551 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002205/0.7981, allocations: 19.98 kB / 469.2 MB, free: 6.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001739/0.7999, allocations: 211.8 kB / 469.4 MB, free: 6.324 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003473/0.8002, allocations: 100.6 kB / 469.5 MB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/0.8004, allocations: 35.97 kB / 469.6 MB, free: 6.191 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000564/0.801, allocations: 321.6 kB / 469.9 MB, free: 5.879 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.049e-06/0.801, allocations: 4 kB / 469.9 MB, free: 5.875 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00107/0.8021, allocations: 268 kB / 470.2 MB, free: 5.613 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.0003472/0.8025, allocations: 139.1 kB / 470.3 MB, free: 5.469 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004724/0.8072, allocations: 1.505 MB / 471.8 MB, free: 3.934 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.158e-06/0.8073, allocations: 0 / 471.8 MB, free: 3.934 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003082/0.8103, allocations: 0.82 MB / 472.6 MB, free: 3.117 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008429/0.8112, allocations: 102.6 kB / 472.7 MB, free: 3.016 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003419/0.8147, allocations: 1.208 MB / 473.9 MB, free: 1.785 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007264/0.8154, allocations: 0.9548 MB / 474.9 MB, free: 0.7969 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004282/0.8159, allocations: 62 kB / 474.9 MB, free: 0.7344 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.8161, allocations: 31.44 kB / 475 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of SimCode: time 1.912e-06/0.8161, allocations: 0 / 475 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of Templates: time 0.04852/0.8646, allocations: 20.81 MB / 495.8 MB, free: 11.92 MB / 410.7 MB