Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.007/1.007, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.87e-05/2.873e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1729, allocations: 25.16 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06919/0.2422, allocations: 38.84 MB / 215.5 MB, free: 10.51 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.2424, allocations: 59.97 kB / 215.5 MB, free: 10.45 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07337/0.3158, allocations: 13.69 MB / 229.2 MB, free: 12.71 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3159, allocations: 0 / 229.2 MB, free: 12.71 MB / 202.7 MB Notification: Performance of Transformations before backend: time 5.107e-05/0.316, allocations: 16 kB / 229.2 MB, free: 12.7 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.006441/0.3224, allocations: 1.253 MB / 230.5 MB, free: 11.4 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.3225, allocations: 12.03 kB / 230.5 MB, free: 11.39 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003484/0.3228, allocations: 102.5 kB / 230.6 MB, free: 11.28 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003381/0.3232, allocations: 90.88 kB / 230.7 MB, free: 11.19 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/0.3243, allocations: 472.5 kB / 231.2 MB, free: 10.68 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.296e-05/0.3243, allocations: 45.31 kB / 231.2 MB, free: 10.64 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000228/0.3246, allocations: 67.95 kB / 231.3 MB, free: 10.57 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002377/0.327, allocations: 0.7419 MB / 232 MB, free: 9.824 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.3271, allocations: 0 / 232 MB, free: 9.824 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001564/0.3272, allocations: 28 kB / 232 MB, free: 9.797 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.308e-05/0.3273, allocations: 15.98 kB / 232 MB, free: 9.781 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002707/0.33, allocations: 0.8266 MB / 232.9 MB, free: 8.957 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01072/0.3407, allocations: 2.89 MB / 235.8 MB, free: 5.977 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00211/0.3429, allocations: 0.6329 MB / 236.4 MB, free: 5.332 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/0.3441, allocations: 422.5 kB / 236.8 MB, free: 4.918 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.272e-05/0.3443, allocations: 20.53 kB / 236.8 MB, free: 4.898 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001551/0.3458, allocations: 0.553 MB / 237.4 MB, free: 4.316 MB / 202.7 MB Notification: Performance of pre-optimization done (n=69): time 3.807e-06/0.3458, allocations: 0 / 237.4 MB, free: 4.316 MB / 202.7 MB Notification: Performance of matching and sorting (n=71): time 0.01831/0.3642, allocations: 3.205 MB / 240.6 MB, free: 1.047 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.3644, allocations: 153.2 kB / 240.7 MB, free: 0.8672 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008042/0.3652, allocations: 412.7 kB / 241.1 MB, free: 468 kB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002261/0.3654, allocations: 49.7 kB / 241.2 MB, free: 412 kB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003124/0.3657, allocations: 362.6 kB / 241.5 MB, free: 44 kB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003431/0.3661, allocations: 232.8 kB / 241.8 MB, free: 15.81 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.3662, allocations: 16 kB / 241.8 MB, free: 15.79 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3664, allocations: 338.8 kB / 242.1 MB, free: 15.45 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001096/0.3675, allocations: 345.5 kB / 242.5 MB, free: 15.12 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/0.3687, allocations: 470.9 kB / 242.9 MB, free: 14.61 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.3698, allocations: 364.2 kB / 243.3 MB, free: 14.26 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3699, allocations: 0 / 243.3 MB, free: 14.26 MB / 218.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0113/0.3812, allocations: 1.911 MB / 245.2 MB, free: 12.34 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.3812, allocations: 8 kB / 245.2 MB, free: 12.33 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.3813, allocations: 4 kB / 245.2 MB, free: 12.32 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01068/0.392, allocations: 1.298 MB / 246.5 MB, free: 11.02 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002126/0.3941, allocations: 227.6 kB / 246.7 MB, free: 10.79 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006733/0.4009, allocations: 3.564 MB / 250.3 MB, free: 7.039 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002813/0.4038, allocations: 223.8 kB / 250.5 MB, free: 6.82 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002403/0.404, allocations: 35.97 kB / 250.5 MB, free: 6.785 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.0005377/0.4046, allocations: 199 kB / 250.7 MB, free: 6.59 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000215/0.4048, allocations: 63.25 kB / 250.8 MB, free: 6.527 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009739/0.4146, allocations: 1.707 MB / 252.5 MB, free: 4.801 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.052e-05/0.4147, allocations: 8 kB / 252.5 MB, free: 4.793 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.4147, allocations: 4 kB / 252.5 MB, free: 4.789 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.772e-05/0.4147, allocations: 3.984 kB / 252.5 MB, free: 4.785 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.417, allocations: 0.8962 MB / 253.4 MB, free: 3.84 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.511e-05/0.417, allocations: 0 / 253.4 MB, free: 3.84 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001953/0.419, allocations: 187.7 kB / 253.6 MB, free: 3.656 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01026/0.4293, allocations: 1.275 MB / 254.9 MB, free: 2.371 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002694/0.4296, allocations: 23.97 kB / 254.9 MB, free: 2.348 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1678/0.5974, allocations: 3.593 MB / 258.5 MB, free: 62.54 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.5975, allocations: 3.531 kB / 258.5 MB, free: 62.54 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01067/0.6081, allocations: 2.144 MB / 260.6 MB, free: 62.45 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005449/0.6087, allocations: 227.8 kB / 260.9 MB, free: 62.35 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/0.609, allocations: 21.69 kB / 260.9 MB, free: 62.35 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002341/0.6113, allocations: 211.9 kB / 261.1 MB, free: 62.35 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/0.6116, allocations: 72.81 kB / 261.2 MB, free: 62.35 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/0.6117, allocations: 25.06 kB / 261.2 MB, free: 62.35 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0005063/0.6122, allocations: 322.9 kB / 261.5 MB, free: 62.26 MB / 218.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6122, allocations: 3.875 kB / 261.5 MB, free: 62.26 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001094/0.6133, allocations: 227.5 kB / 261.7 MB, free: 62.26 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.0102/0.6235, allocations: 2.729 MB / 264.4 MB, free: 61.61 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.003115/0.6267, allocations: 1.059 MB / 265.5 MB, free: 61.17 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.6268, allocations: 4 kB / 265.5 MB, free: 61.16 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001941/0.6287, allocations: 0.6362 MB / 266.1 MB, free: 60.86 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.63, allocations: 149.5 kB / 266.3 MB, free: 60.82 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003531/0.6336, allocations: 1.255 MB / 267.5 MB, free: 60.25 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003709/0.634, allocations: 0.9435 MB / 268.5 MB, free: 59.55 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007253/0.6347, allocations: 261.6 kB / 268.7 MB, free: 59.35 MB / 218.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6347, allocations: 3.812 kB / 268.7 MB, free: 59.35 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.133/3.768, allocations: 20.49 MB / 289.2 MB, free: 44.39 MB / 218.7 MB