Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 0.9958/0.9958, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.204e-05/2.204e-05, allocations: 0 / 151.4 MB, free: 15.63 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2198, allocations: 25.15 MB / 176.5 MB, free: 28 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07912/0.299, allocations: 38.83 MB / 215.4 MB, free: 10.64 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.2993, allocations: 67.91 kB / 215.4 MB, free: 10.58 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05887/0.3581, allocations: 13.69 MB / 229.1 MB, free: 12.85 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.08e-06/0.3582, allocations: 3.938 kB / 229.1 MB, free: 12.84 MB / 202.7 MB Notification: Performance of Transformations before backend: time 4.103e-05/0.3582, allocations: 12 kB / 229.1 MB, free: 12.83 MB / 202.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.004073/0.3623, allocations: 1.249 MB / 230.4 MB, free: 11.54 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.3624, allocations: 8.031 kB / 230.4 MB, free: 11.53 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002457/0.3626, allocations: 86.97 kB / 230.5 MB, free: 11.44 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009042/0.3636, allocations: 476.4 kB / 231 MB, free: 10.93 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.136e-05/0.3636, allocations: 49.3 kB / 231 MB, free: 10.89 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001922/0.3638, allocations: 64 kB / 231.1 MB, free: 10.82 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00194/0.3658, allocations: 0.7457 MB / 231.8 MB, free: 10.07 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.3658, allocations: 4 kB / 231.8 MB, free: 10.07 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.366, allocations: 28 kB / 231.8 MB, free: 10.04 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.366, allocations: 16 kB / 231.9 MB, free: 10.02 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002297/0.3683, allocations: 0.8188 MB / 232.7 MB, free: 9.207 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007526/0.3759, allocations: 2.898 MB / 235.6 MB, free: 6.219 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001749/0.3776, allocations: 0.6251 MB / 236.2 MB, free: 5.582 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.3787, allocations: 434.5 kB / 236.6 MB, free: 5.156 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.589e-05/0.3788, allocations: 12.55 kB / 236.6 MB, free: 5.145 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001341/0.3801, allocations: 0.5608 MB / 237.2 MB, free: 4.555 MB / 202.7 MB Notification: Performance of pre-optimization done (n=69): time 4.492e-06/0.3802, allocations: 0 / 237.2 MB, free: 4.555 MB / 202.7 MB Notification: Performance of matching and sorting (n=71): time 0.01274/0.3929, allocations: 3.197 MB / 240.4 MB, free: 1.293 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.3931, allocations: 153.2 kB / 240.5 MB, free: 1.113 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007354/0.3938, allocations: 416.7 kB / 240.9 MB, free: 0.6992 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000137/0.394, allocations: 37.7 kB / 241 MB, free: 0.6562 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003075/0.3943, allocations: 370.6 kB / 241.3 MB, free: 296 kB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000294/0.3946, allocations: 232.6 kB / 241.6 MB, free: 60 kB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.817e-05/0.3947, allocations: 16 kB / 241.6 MB, free: 44 kB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.3949, allocations: 342.8 kB / 241.9 MB, free: 15.7 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000947/0.3959, allocations: 341.5 kB / 242.3 MB, free: 15.37 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/0.397, allocations: 470.9 kB / 242.7 MB, free: 14.86 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009835/0.398, allocations: 364.2 kB / 243.1 MB, free: 14.51 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.916e-06/0.398, allocations: 0 / 243.1 MB, free: 14.51 MB / 218.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.007956/0.406, allocations: 1.915 MB / 245 MB, free: 12.58 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.406, allocations: 4 kB / 245 MB, free: 12.57 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.4061, allocations: 4 kB / 245 MB, free: 12.57 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007211/0.4133, allocations: 1.294 MB / 246.3 MB, free: 11.27 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/0.4147, allocations: 227.6 kB / 246.5 MB, free: 11.04 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005697/0.4205, allocations: 3.564 MB / 250.1 MB, free: 7.289 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001743/0.4222, allocations: 219.8 kB / 250.3 MB, free: 7.074 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.4224, allocations: 35.92 kB / 250.3 MB, free: 7.039 MB / 218.7 MB Warning: Assuming fixed start value for the following 10 variables: V1.signalSource.counter:DISCRETE(start = V1.signalSource.nperiod fixed = false protected = true ) "Period counter" type: Integer V2.signalSource.counter:DISCRETE(start = V2.signalSource.nperiod fixed = false protected = true ) "Period counter" type: Integer T2.vbc:VARIABLE() type: Real T1.vbc:VARIABLE() type: Real C2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real V2.signalSource.counter2:DISCRETE(start = V2.signalSource.nperiod fixed = false protected = true ) type: Integer V2.signalSource.T0:DISCRETE(start = V2.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real V1.signalSource.counter2:DISCRETE(start = V1.signalSource.nperiod fixed = false protected = true ) type: Integer V1.signalSource.T0:DISCRETE(start = V1.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real HeatCapacitor1.T:VARIABLE(min = max(1.0, max(1.0, max(1.0, 1.0))) max = min(6000.0, min(6000.0, min(6000.0, 6000.0))) start = 293.15 unit = "K" nominal = 300.0 ) "Temperature of element" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.V1.signalSource.counter,V1.signalSource.counter,$PRE.V2.signalSource.counter,V2.signalSource.counter,$whenCondition2,$whenCondition1,$PRE.V1.signalSource.T0,V1.signalSource.T0,$PRE.V1.signalSource.counter2,V1.signalSource.counter2,$PRE.V2.signalSource.T0,V2.signalSource.T0,$PRE.V2.signalSource.counter2,V2.signalSource.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 9} * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.000442/0.4228, allocations: 199 kB / 250.5 MB, free: 6.844 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.423, allocations: 63.25 kB / 250.6 MB, free: 6.781 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006709/0.4297, allocations: 1.707 MB / 252.3 MB, free: 5.055 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.4298, allocations: 7.984 kB / 252.3 MB, free: 5.047 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.4298, allocations: 4 kB / 252.3 MB, free: 5.043 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.4298, allocations: 0 / 252.3 MB, free: 5.043 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.4314, allocations: 0.9001 MB / 253.2 MB, free: 4.094 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.6e-06/0.4315, allocations: 0 / 253.2 MB, free: 4.094 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.4327, allocations: 191.7 kB / 253.4 MB, free: 3.906 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006816/0.4395, allocations: 1.275 MB / 254.7 MB, free: 2.621 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/0.4397, allocations: 23.97 kB / 254.7 MB, free: 2.598 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1256/0.5653, allocations: 3.587 MB / 258.3 MB, free: 62.78 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.455e-06/0.5654, allocations: 3.188 kB / 258.3 MB, free: 62.78 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007563/0.5729, allocations: 2.149 MB / 260.4 MB, free: 62.7 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004919/0.5735, allocations: 226.8 kB / 260.6 MB, free: 62.6 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.5737, allocations: 19.06 kB / 260.7 MB, free: 62.6 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/0.5752, allocations: 217.9 kB / 260.9 MB, free: 62.6 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.5754, allocations: 62.77 kB / 260.9 MB, free: 62.6 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.5755, allocations: 32.08 kB / 261 MB, free: 62.6 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0004809/0.576, allocations: 321.3 kB / 261.3 MB, free: 62.51 MB / 218.7 MB Notification: Performance of sort global known variables: time 7.98e-07/0.576, allocations: 0 / 261.3 MB, free: 62.51 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.000994/0.577, allocations: 234.5 kB / 261.5 MB, free: 62.51 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (HeatCapacitor1.T,C2.v,T1.vbc,T2.vbc) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,V1.signalSource.T0,V1.signalSource.counter,V1.signalSource.counter2,V2.signalSource.T0,V2.signalSource.counter,V2.signalSource.counter2) * Number of discrete states: 4 (V2.signalSource.counter,V1.signalSource.counter,V2.signalSource.counter2,V1.signalSource.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 9} * Non-linear torn systems: 2 {1 12,1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002628/0.5773, allocations: 137.4 kB / 261.6 MB, free: 62.43 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.002621/0.5799, allocations: 1.06 MB / 262.7 MB, free: 62.3 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.58, allocations: 4 kB / 262.7 MB, free: 62.3 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001537/0.5815, allocations: 0.6403 MB / 263.4 MB, free: 62.18 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009346/0.5825, allocations: 144.4 kB / 263.5 MB, free: 62.18 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002389/0.5849, allocations: 1.13 MB / 264.6 MB, free: 61.85 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.5853, allocations: 0.9377 MB / 265.6 MB, free: 61.14 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003752/0.5857, allocations: 50.36 kB / 265.6 MB, free: 61.14 MB / 218.7 MB Notification: Performance of SimCode: time 1.836e-06/0.5857, allocations: 0 / 265.6 MB, free: 61.14 MB / 218.7 MB Notification: Performance of Templates: time 0.02125/0.6069, allocations: 17.52 MB / 283.1 MB, free: 50.82 MB / 218.7 MB