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.055/1.055, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.468e-05/2.483e-05, allocations: 4 kB / 151.4 MB, free: 15.58 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1514, allocations: 25.15 MB / 176.5 MB, free: 16 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05687/0.2083, allocations: 37.08 MB / 213.6 MB, free: 12.38 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.2086, allocations: 67.97 kB / 213.7 MB, free: 12.32 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03729/0.2459, allocations: 9.804 MB / 223.5 MB, free: 2.492 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.79e-06/0.2459, allocations: 0 / 223.5 MB, free: 2.492 MB / 186.7 MB Notification: Performance of Transformations before backend: time 4.029e-05/0.246, allocations: 15.94 kB / 223.5 MB, free: 2.477 MB / 186.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.002664/0.2486, allocations: 1.003 MB / 224.5 MB, free: 1.422 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.2487, allocations: 8.031 kB / 224.5 MB, free: 1.414 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002031/0.2489, allocations: 71.16 kB / 224.6 MB, free: 1.344 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007737/0.2497, allocations: 419.2 kB / 225 MB, free: 0.8945 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.878e-05/0.2498, allocations: 45.31 kB / 225 MB, free: 0.8516 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.2499, allocations: 55.98 kB / 225.1 MB, free: 0.7969 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.2515, allocations: 0.6781 MB / 225.8 MB, free: 84 kB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.2516, allocations: 3.953 kB / 225.8 MB, free: 80 kB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.685e-05/0.2517, allocations: 24 kB / 225.8 MB, free: 56 kB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.887e-05/0.2517, allocations: 16 kB / 225.8 MB, free: 40 kB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.2533, allocations: 0.5916 MB / 226.4 MB, free: 15.45 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006183/0.2595, allocations: 3.125 MB / 229.5 MB, free: 12.2 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/0.2612, allocations: 0.6745 MB / 230.2 MB, free: 11.47 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007783/0.262, allocations: 314.5 kB / 230.5 MB, free: 11.16 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.659e-05/0.262, allocations: 8.578 kB / 230.5 MB, free: 11.15 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007905/0.2628, allocations: 328.5 kB / 230.8 MB, free: 10.82 MB / 202.7 MB Notification: Performance of pre-optimization done (n=52): time 7.018e-06/0.2629, allocations: 0 / 230.8 MB, free: 10.82 MB / 202.7 MB Notification: Performance of matching and sorting (n=52): time 0.0014/0.2643, allocations: 0.515 MB / 231.4 MB, free: 10.3 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.986e-05/0.2644, allocations: 67.83 kB / 231.4 MB, free: 10.22 MB / 202.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.0007781/0.2652, allocations: 436.5 kB / 231.8 MB, free: 9.785 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 7.555e-05/0.2652, allocations: 37.7 kB / 231.9 MB, free: 9.742 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003093/0.2656, allocations: 374.1 kB / 232.2 MB, free: 9.371 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/0.2658, allocations: 181.5 kB / 232.4 MB, free: 9.191 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.093e-05/0.2659, allocations: 16 kB / 232.4 MB, free: 9.176 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.2661, allocations: 338.8 kB / 232.8 MB, free: 8.836 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006243/0.2667, allocations: 241.5 kB / 233 MB, free: 8.602 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008064/0.2675, allocations: 444.5 kB / 233.4 MB, free: 8.074 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006884/0.2682, allocations: 274.5 kB / 233.7 MB, free: 7.805 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.979e-06/0.2682, allocations: 4 kB / 233.7 MB, free: 7.801 MB / 202.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001843/0.2701, allocations: 0.733 MB / 234.4 MB, free: 7.062 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.2701, allocations: 8 kB / 234.5 MB, free: 7.055 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.2702, allocations: 4 kB / 234.5 MB, free: 7.051 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.782e-05/0.2702, allocations: 12 kB / 234.5 MB, free: 7.039 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/0.2716, allocations: 252.1 kB / 234.7 MB, free: 6.793 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.658e-05/0.2716, allocations: 19.92 kB / 234.7 MB, free: 6.773 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.2728, allocations: 175.2 kB / 234.9 MB, free: 6.602 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.2e-05/0.2729, allocations: 36 kB / 234.9 MB, free: 6.566 MB / 202.7 MB Warning: Assuming fixed start value for the following 8 variables: VIN1.signalSource.counter:DISCRETE(start = VIN1.signalSource.nperiod fixed = false protected = true ) "Period counter" type: Integer VIN2.signalSource.counter:DISCRETE(start = VIN2.signalSource.nperiod fixed = false protected = true ) "Period counter" type: Integer Nand.C7.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Nand.C4.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real VIN2.signalSource.counter2:DISCRETE(start = VIN2.signalSource.nperiod fixed = false protected = true ) type: Integer VIN2.signalSource.T0:DISCRETE(start = VIN2.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real VIN1.signalSource.counter2:DISCRETE(start = VIN1.signalSource.nperiod fixed = false protected = true ) type: Integer VIN1.signalSource.T0:DISCRETE(start = VIN1.signalSource.startTime unit = "s" fixed = false 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.0003419/0.2732, allocations: 187.9 kB / 235.1 MB, free: 6.379 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001345/0.2734, allocations: 59.25 kB / 235.2 MB, free: 6.32 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001981/0.2736, allocations: 65.38 kB / 235.2 MB, free: 6.254 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.2736, allocations: 7.984 kB / 235.3 MB, free: 6.246 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.819e-06/0.2736, allocations: 4 kB / 235.3 MB, free: 6.242 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.2736, allocations: 0 / 235.3 MB, free: 6.242 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/0.2766, allocations: 1.385 MB / 236.6 MB, free: 4.801 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.751e-06/0.2766, allocations: 4 kB / 236.6 MB, free: 4.797 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.2777, allocations: 167.8 kB / 236.8 MB, free: 4.633 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.984e-06/0.2777, allocations: 0 / 236.8 MB, free: 4.633 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-05/0.2778, allocations: 19.98 kB / 236.8 MB, free: 4.613 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.591e-06/0.2778, allocations: 4 kB / 236.8 MB, free: 4.609 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.251e-06/0.2778, allocations: 3.953 kB / 236.8 MB, free: 4.605 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002086/0.2799, allocations: 0.912 MB / 237.8 MB, free: 3.68 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001985/0.2801, allocations: 140.3 kB / 237.9 MB, free: 3.523 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.2803, allocations: 12 kB / 237.9 MB, free: 3.512 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008119/0.2811, allocations: 104 kB / 238 MB, free: 3.41 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/0.2813, allocations: 52.31 kB / 238.1 MB, free: 3.359 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-05/0.2813, allocations: 16 kB / 238.1 MB, free: 3.344 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0005798/0.2819, allocations: 333.6 kB / 238.4 MB, free: 3.02 MB / 202.7 MB Notification: Performance of sort global known variables: time 8.45e-07/0.282, allocations: 0 / 238.4 MB, free: 3.02 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0008109/0.2828, allocations: 163.7 kB / 238.6 MB, free: 2.859 MB / 202.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.0002202/0.283, allocations: 127.1 kB / 238.7 MB, free: 2.727 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.2845, allocations: 0.5912 MB / 239.3 MB, free: 2.137 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 6.586e-06/0.2845, allocations: 4.062 kB / 239.3 MB, free: 2.133 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006676/0.2852, allocations: 277.5 kB / 239.5 MB, free: 1.859 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007322/0.2859, allocations: 102 kB / 239.6 MB, free: 1.762 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/0.2881, allocations: 0.8575 MB / 240.5 MB, free: 0.8672 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006375/0.2887, allocations: 0.8709 MB / 241.4 MB, free: 15.97 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003965/0.2892, allocations: 55.42 kB / 241.4 MB, free: 15.91 MB / 218.7 MB Notification: Performance of SimCode: time 1.616e-06/0.2892, allocations: 0 / 241.4 MB, free: 15.91 MB / 218.7 MB Notification: Performance of Templates: time 0.03035/0.3195, allocations: 8.113 MB / 249.5 MB, free: 7.816 MB / 218.7 MB