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 1.05/1.05, allocations: 111.1 MB / 126.3 MB, free: 6.402 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.021e-05/3.023e-05, allocations: 6.656 kB / 154.5 MB, free: 2.84 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05311/0.05316, allocations: 25.18 MB / 179.7 MB, free: 9.621 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005956/0.05918, allocations: 3.592 MB / 183.3 MB, free: 6.016 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.003075/0.06231, allocations: 1.109 MB / 184.4 MB, free: 4.906 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005658/0.06293, allocations: 16 kB / 184.4 MB, free: 4.891 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002153/0.06316, allocations: 79.36 kB / 184.5 MB, free: 4.812 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007757/0.06395, allocations: 247.1 kB / 184.7 MB, free: 4.57 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009003/0.06487, allocations: 263.5 kB / 185 MB, free: 4.312 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.00143/0.06632, allocations: 0.5824 MB / 185.6 MB, free: 3.73 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00036/0.06671, allocations: 129.6 kB / 185.7 MB, free: 3.598 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007017/0.06743, allocations: 383.1 kB / 186.1 MB, free: 3.223 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.06846, allocations: 0.4947 MB / 186.6 MB, free: 2.727 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003189/0.06881, allocations: 64 kB / 186.6 MB, free: 2.664 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002503/0.06907, allocations: 56 kB / 186.7 MB, free: 2.609 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002438/0.06933, allocations: 183.3 kB / 186.9 MB, free: 2.43 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002893/0.06963, allocations: 72 kB / 186.9 MB, free: 2.359 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.07099, allocations: 0.8494 MB / 187.8 MB, free: 1.508 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.07102, allocations: 0 / 187.8 MB, free: 1.508 MB / 154.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.07104, allocations: 0 / 187.8 MB, free: 1.508 MB / 154.7 MB Notification: Performance of Transformations before backend: time 3.006e-05/0.07108, allocations: 0 / 187.8 MB, free: 1.508 MB / 154.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.0061/0.07719, allocations: 1.256 MB / 189 MB, free: 204 kB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.07726, allocations: 8.031 kB / 189 MB, free: 196 kB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004127/0.07768, allocations: 86.97 kB / 189.1 MB, free: 108 kB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.07876, allocations: 476.4 kB / 189.6 MB, free: 15.6 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.609e-05/0.07885, allocations: 49.31 kB / 189.6 MB, free: 15.55 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002329/0.07909, allocations: 67.91 kB / 189.7 MB, free: 15.48 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00503/0.08414, allocations: 1.099 MB / 190.8 MB, free: 14.38 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.345e-05/0.08422, allocations: 0 / 190.8 MB, free: 14.38 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/0.08438, allocations: 24 kB / 190.8 MB, free: 14.36 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.577e-05/0.08441, allocations: 23.89 kB / 190.8 MB, free: 14.33 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007995/0.09242, allocations: 1.535 MB / 192.4 MB, free: 12.8 MB / 170.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01007/0.1025, allocations: 3.085 MB / 195.5 MB, free: 9.566 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005597/0.1082, allocations: 1.106 MB / 196.6 MB, free: 8.449 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001267/0.1083, allocations: 20.55 kB / 196.6 MB, free: 8.43 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004217/0.1126, allocations: 0.8974 MB / 197.5 MB, free: 7.508 MB / 170.7 MB Notification: Performance of pre-optimization done (n=69): time 3.287e-06/0.1126, allocations: 4 kB / 197.5 MB, free: 7.504 MB / 170.7 MB Notification: Performance of matching and sorting (n=71): time 0.04702/0.1596, allocations: 7.233 MB / 204.7 MB, free: 108 kB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1388/0.2985, allocations: 145.2 kB / 204.9 MB, free: 24.93 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008501/0.2994, allocations: 410.2 kB / 205.3 MB, free: 24.81 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002339/0.2997, allocations: 42.44 kB / 205.3 MB, free: 24.78 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002903/0.3, allocations: 366.7 kB / 205.7 MB, free: 24.62 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003299/0.3003, allocations: 234.3 kB / 205.9 MB, free: 24.51 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.3004, allocations: 14.28 kB / 205.9 MB, free: 24.51 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.3005, allocations: 340.1 kB / 206.2 MB, free: 24.2 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003726/0.3043, allocations: 0.6877 MB / 206.9 MB, free: 24.16 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003801/0.3081, allocations: 0.815 MB / 207.7 MB, free: 23.88 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0037/0.3119, allocations: 0.7069 MB / 208.5 MB, free: 23.67 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-05/0.3119, allocations: 1.375 kB / 208.5 MB, free: 23.67 MB / 170.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.01542/0.3273, allocations: 2.55 MB / 211 MB, free: 23.07 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.3274, allocations: 5.156 kB / 211 MB, free: 23.07 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.3275, allocations: 2.281 kB / 211 MB, free: 23.07 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01232/0.3398, allocations: 1.572 MB / 212.6 MB, free: 22.64 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001948/0.3418, allocations: 221.1 kB / 212.8 MB, free: 22.58 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008284/0.3501, allocations: 4.018 MB / 216.8 MB, free: 19.28 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002564/0.3527, allocations: 216.9 kB / 217 MB, free: 19.2 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002083/0.353, allocations: 33.02 kB / 217.1 MB, free: 19.19 MB / 170.7 MB Warning: Assuming fixed start value for the following 10 variables: V1.signalSource.counter:DISCRETE(start = V1.signalSource.nperiod fixed = true protected = true ) "Period counter" type: Integer V2.signalSource.counter:DISCRETE(start = V2.signalSource.nperiod fixed = true protected = true ) "Period counter" type: Integer T2.vbc:VARIABLE(fixed = true ) type: Real T1.vbc:VARIABLE(fixed = true ) type: Real C2.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real V2.signalSource.counter2:DISCRETE(start = V2.signalSource.nperiod fixed = true protected = true ) type: Integer V2.signalSource.T0:DISCRETE(start = V2.signalSource.startTime unit = "s" fixed = true protected = true ) "Start time of current period" type: Real V1.signalSource.counter2:DISCRETE(start = V1.signalSource.nperiod fixed = true protected = true ) type: Integer V1.signalSource.T0:DISCRETE(start = V1.signalSource.startTime unit = "s" fixed = true 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" fixed = true 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.0007157/0.3537, allocations: 254.8 kB / 217.3 MB, free: 18.98 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000218/0.3539, allocations: 67.77 kB / 217.4 MB, free: 18.95 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01503/0.369, allocations: 2.571 MB / 219.9 MB, free: 17.24 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.88e-05/0.369, allocations: 9.078 kB / 220 MB, free: 17.23 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.369, allocations: 3.938 kB / 220 MB, free: 17.23 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/0.3691, allocations: 3.984 kB / 220 MB, free: 17.23 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001617/0.3707, allocations: 0.8927 MB / 220.9 MB, free: 16.32 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.3707, allocations: 4 kB / 220.9 MB, free: 16.32 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001594/0.3723, allocations: 179.8 kB / 221 MB, free: 16.14 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01135/0.3837, allocations: 1.555 MB / 222.6 MB, free: 14.58 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002403/0.384, allocations: 23.97 kB / 222.6 MB, free: 14.55 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008/0.392, allocations: 4.042 MB / 226.7 MB, free: 10.33 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3921, allocations: 0 / 226.7 MB, free: 10.33 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01789/0.41, allocations: 3.368 MB / 230 MB, free: 6.945 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005889/0.4106, allocations: 228.2 kB / 230.2 MB, free: 6.703 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/0.4109, allocations: 16 kB / 230.3 MB, free: 6.688 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002238/0.4131, allocations: 219.7 kB / 230.5 MB, free: 6.473 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002701/0.4134, allocations: 60.56 kB / 230.5 MB, free: 6.414 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/0.4136, allocations: 27.97 kB / 230.6 MB, free: 6.387 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0004767/0.4141, allocations: 330.8 kB / 230.9 MB, free: 6.062 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4141, allocations: 0 / 230.9 MB, free: 6.062 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.001029/0.4151, allocations: 228 kB / 231.1 MB, free: 5.84 MB / 170.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.0002834/0.4154, allocations: 129 kB / 231.2 MB, free: 5.707 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.008077/0.4235, allocations: 1.782 MB / 233 MB, free: 3.914 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.4236, allocations: 4.062 kB / 233 MB, free: 3.91 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0044/0.428, allocations: 1.004 MB / 234 MB, free: 2.895 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.4293, allocations: 150.2 kB / 234.2 MB, free: 2.746 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005647/0.435, allocations: 2.025 MB / 236.2 MB, free: 0.6914 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004995/0.4356, allocations: 0.942 MB / 237.1 MB, free: 15.72 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005577/0.4361, allocations: 51.41 kB / 237.2 MB, free: 15.67 MB / 186.7 MB Notification: Performance of SimCode: time 1.192e-06/0.4362, allocations: 0 / 237.2 MB, free: 15.67 MB / 186.7 MB Notification: Performance of Templates: time 0.03569/0.4718, allocations: 17.54 MB / 254.7 MB, free: 14.12 MB / 202.7 MB