Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.263/1.263, allocations: 111.1 MB / 126.3 MB, free: 6.406 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.421e-05/2.424e-05, allocations: 0 / 154.5 MB, free: 2.836 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05859/0.05864, allocations: 25.18 MB / 179.7 MB, free: 9.613 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005334/0.06404, allocations: 3.189 MB / 182.9 MB, free: 6.414 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002594/0.06669, allocations: 0.9001 MB / 183.8 MB, free: 5.512 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005343/0.06728, allocations: 12 kB / 183.8 MB, free: 5.5 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002119/0.06751, allocations: 67.45 kB / 183.9 MB, free: 5.434 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006224/0.06814, allocations: 187.4 kB / 184 MB, free: 5.25 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005985/0.06875, allocations: 151.8 kB / 184.2 MB, free: 5.102 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009033/0.06967, allocations: 439.6 kB / 184.6 MB, free: 4.672 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003814/0.07008, allocations: 146.2 kB / 184.8 MB, free: 4.531 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004821/0.07057, allocations: 251.4 kB / 185 MB, free: 4.285 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005928/0.07118, allocations: 327 kB / 185.3 MB, free: 3.965 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000156/0.07135, allocations: 39.94 kB / 185.4 MB, free: 3.926 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.07151, allocations: 40 kB / 185.4 MB, free: 3.887 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.07169, allocations: 127.5 kB / 185.5 MB, free: 3.762 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001843/0.07189, allocations: 52 kB / 185.6 MB, free: 3.711 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001282/0.07319, allocations: 0.8416 MB / 186.4 MB, free: 2.867 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.07322, allocations: 0 / 186.4 MB, free: 2.867 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.07323, allocations: 0 / 186.4 MB, free: 2.867 MB / 154.7 MB Notification: Performance of Transformations before backend: time 2.402e-05/0.07327, allocations: 4 kB / 186.4 MB, free: 2.863 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.004279/0.07756, allocations: 1.022 MB / 187.4 MB, free: 1.785 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.07763, allocations: 12.03 kB / 187.5 MB, free: 1.773 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003205/0.07796, allocations: 67.16 kB / 187.5 MB, free: 1.707 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008612/0.07884, allocations: 432.8 kB / 187.9 MB, free: 1.242 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.117e-05/0.07893, allocations: 37.31 kB / 188 MB, free: 1.207 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/0.07911, allocations: 56 kB / 188 MB, free: 1.152 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0039/0.08302, allocations: 0.9419 MB / 189 MB, free: 176 kB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.0831, allocations: 0 / 189 MB, free: 176 kB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/0.08323, allocations: 20 kB / 189 MB, free: 156 kB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.08326, allocations: 19.95 kB / 189 MB, free: 136 kB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005765/0.08904, allocations: 1.101 MB / 190.1 MB, free: 15.03 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008161/0.09725, allocations: 3.107 MB / 193.2 MB, free: 11.79 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004466/0.1018, allocations: 1.014 MB / 194.2 MB, free: 10.73 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001159/0.102, allocations: 16.48 kB / 194.3 MB, free: 10.71 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002297/0.1043, allocations: 0.4972 MB / 194.8 MB, free: 10.21 MB / 170.7 MB Notification: Performance of pre-optimization done (n=52): time 5.541e-06/0.1043, allocations: 0 / 194.8 MB, free: 10.21 MB / 170.7 MB Notification: Performance of matching and sorting (n=52): time 0.006143/0.1105, allocations: 1.232 MB / 196 MB, free: 8.969 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.249e-05/0.1106, allocations: 71.78 kB / 196.1 MB, free: 8.887 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Sources.mo:1077:5-1078:65:writable] Warning: Parameter VIN2.nperiod has no value, and is fixed during initialization (fixed=true), using available start value (start=-1) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Sources.mo:1077:5-1078:65:writable] Warning: Parameter VIN1.nperiod has no value, and is fixed during initialization (fixed=true), using available start value (start=-1) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.1118, allocations: 461 kB / 196.5 MB, free: 8.426 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001423/0.1119, allocations: 33.7 kB / 196.5 MB, free: 8.387 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003381/0.1123, allocations: 378.1 kB / 196.9 MB, free: 8.016 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/0.1126, allocations: 169.5 kB / 197.1 MB, free: 7.848 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.988e-05/0.1126, allocations: 16 kB / 197.1 MB, free: 7.832 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.1128, allocations: 338.8 kB / 197.4 MB, free: 7.492 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002244/0.1151, allocations: 429.7 kB / 197.8 MB, free: 7.074 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002432/0.1175, allocations: 0.6406 MB / 198.5 MB, free: 6.344 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002349/0.1199, allocations: 465.2 kB / 198.9 MB, free: 5.887 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.12, allocations: 4 kB / 198.9 MB, free: 5.883 MB / 170.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.005257/0.1252, allocations: 1.135 MB / 200.1 MB, free: 4.738 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.1253, allocations: 8 kB / 200.1 MB, free: 4.73 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.086e-05/0.1254, allocations: 12 kB / 200.1 MB, free: 4.719 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.237e-05/0.1254, allocations: 8 kB / 200.1 MB, free: 4.711 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002126/0.1275, allocations: 260 kB / 200.4 MB, free: 4.457 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.942e-05/0.1276, allocations: 11.94 kB / 200.4 MB, free: 4.445 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.1293, allocations: 194.9 kB / 200.6 MB, free: 4.254 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.1295, allocations: 28 kB / 200.6 MB, free: 4.227 MB / 170.7 MB Warning: Assuming fixed start value for the following 8 variables: VIN1.signalSource.counter:DISCRETE(start = VIN1.signalSource.nperiod fixed = true protected = true ) "Period counter" type: Integer VIN2.signalSource.counter:DISCRETE(start = VIN2.signalSource.nperiod fixed = true protected = true ) "Period counter" type: Integer Nand.C7.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Nand.C4.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real VIN2.signalSource.counter2:DISCRETE(start = VIN2.signalSource.nperiod fixed = true protected = true ) type: Integer VIN2.signalSource.T0:DISCRETE(start = VIN2.signalSource.startTime unit = "s" fixed = true protected = true ) "Start time of current period" type: Real VIN1.signalSource.counter2:DISCRETE(start = VIN1.signalSource.nperiod fixed = true protected = true ) type: Integer VIN1.signalSource.T0:DISCRETE(start = VIN1.signalSource.startTime unit = "s" fixed = true protected = true ) "Start time of current period" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.VIN1.signalSource.counter,VIN1.signalSource.counter,$PRE.VIN2.signalSource.counter,VIN2.signalSource.counter,$whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T0,VIN1.signalSource.T0,$PRE.VIN1.signalSource.counter2,VIN1.signalSource.counter2,$PRE.VIN2.signalSource.T0,VIN2.signalSource.T0,$PRE.VIN2.signalSource.counter2,VIN2.signalSource.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 95 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006736/0.1302, allocations: 240.2 kB / 200.8 MB, free: 3.984 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.1304, allocations: 59.3 kB / 200.9 MB, free: 3.926 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000225/0.1306, allocations: 61.59 kB / 200.9 MB, free: 3.867 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.719e-05/0.1306, allocations: 8 kB / 200.9 MB, free: 3.859 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.1306, allocations: 3.984 kB / 200.9 MB, free: 3.855 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.1307, allocations: 0 / 200.9 MB, free: 3.855 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005955/0.1366, allocations: 1.735 MB / 202.7 MB, free: 2.066 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.1367, allocations: 0 / 202.7 MB, free: 2.066 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001569/0.1383, allocations: 167.8 kB / 202.8 MB, free: 1.902 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.241e-05/0.1383, allocations: 4 kB / 202.8 MB, free: 1.898 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.828e-05/0.1384, allocations: 15.98 kB / 202.9 MB, free: 1.883 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.782e-06/0.1384, allocations: 0 / 202.9 MB, free: 1.883 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1384, allocations: 0 / 202.9 MB, free: 1.883 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009333/0.1478, allocations: 1.447 MB / 204.3 MB, free: 424 kB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003758/0.1482, allocations: 140.3 kB / 204.4 MB, free: 264 kB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003934/0.1486, allocations: 12 kB / 204.5 MB, free: 252 kB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001852/0.1505, allocations: 104 kB / 204.6 MB, free: 148 kB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003365/0.1509, allocations: 48.31 kB / 204.6 MB, free: 100 kB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001543/0.1511, allocations: 19.98 kB / 204.6 MB, free: 80 kB / 170.7 MB Notification: Performance of sorting global known variables: time 0.1866/0.3377, allocations: 343.2 kB / 205 MB, free: 23.95 MB / 170.7 MB Notification: Performance of sort global known variables: time 1.473e-06/0.3378, allocations: 0 / 205 MB, free: 23.95 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.001735/0.3396, allocations: 162 kB / 205.1 MB, free: 23.95 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,VIN1.signalSource.T0,VIN1.signalSource.counter,VIN1.signalSource.counter2,VIN2.signalSource.T0,VIN2.signalSource.counter,VIN2.signalSource.counter2) * Number of discrete states: 4 (VIN1.signalSource.counter2,VIN2.signalSource.counter2,VIN1.signalSource.counter,VIN2.signalSource.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 46 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000317/0.34, allocations: 119.2 kB / 205.2 MB, free: 23.87 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.006429/0.3464, allocations: 0.9743 MB / 206.2 MB, free: 23.86 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/0.3465, allocations: 2.062 kB / 206.2 MB, free: 23.86 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002798/0.3493, allocations: 462.4 kB / 206.7 MB, free: 23.85 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.3507, allocations: 103.1 kB / 206.8 MB, free: 23.85 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005018/0.3558, allocations: 1.428 MB / 208.2 MB, free: 23.1 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005592/0.3564, allocations: 0.8749 MB / 209.1 MB, free: 22.39 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007257/0.3572, allocations: 54.88 kB / 209.1 MB, free: 22.38 MB / 170.7 MB Notification: Performance of SimCode: time 1.213e-06/0.3572, allocations: 0 / 209.1 MB, free: 22.38 MB / 170.7 MB Notification: Performance of Templates: time 0.02721/0.3844, allocations: 8.179 MB / 217.3 MB, free: 19.12 MB / 170.7 MB