Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.NandGate.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) 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 0.9603/0.9603, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.01e-05/2.021e-05, allocations: 0 / 154.3 MB, free: 13.2 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1366, allocations: 25.16 MB / 179.4 MB, free: 0.7891 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05675/0.1934, allocations: 37.05 MB / 216.5 MB, free: 12.06 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.1936, allocations: 63.97 kB / 216.5 MB, free: 12 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05077/0.2444, allocations: 9.818 MB / 226.4 MB, free: 2.156 MB / 186.7 MB Notification: Performance of FrontEnd: time 3.184e-06/0.2445, allocations: 0 / 226.4 MB, free: 2.156 MB / 186.7 MB Notification: Performance of Transformations before backend: time 6.853e-05/0.2446, allocations: 16 kB / 226.4 MB, free: 2.141 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.005206/0.2498, allocations: 1.003 MB / 227.4 MB, free: 1.086 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.445e-05/0.2499, allocations: 8.031 kB / 227.4 MB, free: 1.078 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003642/0.2503, allocations: 71.16 kB / 227.5 MB, free: 1.008 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.2517, allocations: 423.2 kB / 227.9 MB, free: 0.5547 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.2519, allocations: 37.31 kB / 227.9 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002677/0.2522, allocations: 56 kB / 228 MB, free: 476 kB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002976/0.2552, allocations: 0.6846 MB / 228.7 MB, free: 15.74 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.028e-05/0.2552, allocations: 7.938 kB / 228.7 MB, free: 15.73 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001674/0.2554, allocations: 20 kB / 228.7 MB, free: 15.71 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.184e-05/0.2555, allocations: 16 kB / 228.7 MB, free: 15.7 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002926/0.2584, allocations: 0.5936 MB / 229.3 MB, free: 15.1 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01131/0.2698, allocations: 3.136 MB / 232.4 MB, free: 11.84 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002793/0.2726, allocations: 0.6795 MB / 233.1 MB, free: 11.11 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001413/0.2741, allocations: 307.2 kB / 233.4 MB, free: 10.81 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001053/0.2742, allocations: 20.36 kB / 233.4 MB, free: 10.79 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001548/0.2758, allocations: 329.3 kB / 233.7 MB, free: 10.46 MB / 202.7 MB Notification: Performance of pre-optimization done (n=52): time 7.509e-06/0.2758, allocations: 0 / 233.7 MB, free: 10.46 MB / 202.7 MB Notification: Performance of matching and sorting (n=52): time 0.00275/0.2786, allocations: 0.5112 MB / 234.3 MB, free: 9.941 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.195e-05/0.2787, allocations: 59.84 kB / 234.3 MB, free: 9.871 MB / 202.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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.001475/0.2802, allocations: 441.9 kB / 234.7 MB, free: 9.434 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001396/0.2804, allocations: 37.7 kB / 234.8 MB, free: 9.391 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005256/0.2809, allocations: 381.9 kB / 235.2 MB, free: 9.012 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003786/0.2813, allocations: 181.6 kB / 235.3 MB, free: 8.832 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.2815, allocations: 16 kB / 235.4 MB, free: 8.816 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.000302/0.2818, allocations: 338.8 kB / 235.7 MB, free: 8.477 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001286/0.2831, allocations: 237.6 kB / 235.9 MB, free: 8.246 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00163/0.2848, allocations: 450.1 kB / 236.4 MB, free: 7.711 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/0.2861, allocations: 274.5 kB / 236.6 MB, free: 7.441 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.2862, allocations: 0 / 236.6 MB, free: 7.441 MB / 202.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003715/0.2899, allocations: 0.7567 MB / 237.4 MB, free: 6.68 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.308e-05/0.29, allocations: 8 kB / 237.4 MB, free: 6.672 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.29, allocations: 7.938 kB / 237.4 MB, free: 6.664 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.262e-05/0.2901, allocations: 12 kB / 237.4 MB, free: 6.652 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002666/0.2928, allocations: 251.7 kB / 237.7 MB, free: 6.406 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.079e-05/0.2928, allocations: 15.94 kB / 237.7 MB, free: 6.391 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002285/0.2951, allocations: 183.1 kB / 237.8 MB, free: 6.211 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/0.2954, allocations: 28 kB / 237.9 MB, free: 6.184 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.0005816/0.296, allocations: 195.1 kB / 238.1 MB, free: 5.992 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002643/0.2962, allocations: 63.23 kB / 238.1 MB, free: 5.93 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003438/0.2966, allocations: 57.38 kB / 238.2 MB, free: 5.875 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/0.2966, allocations: 4 kB / 238.2 MB, free: 5.871 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.2967, allocations: 8 kB / 238.2 MB, free: 5.863 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/0.2967, allocations: 3.984 kB / 238.2 MB, free: 5.859 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006309/0.303, allocations: 1.385 MB / 239.6 MB, free: 4.418 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.163e-06/0.3031, allocations: 0 / 239.6 MB, free: 4.418 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002288/0.3054, allocations: 171.8 kB / 239.7 MB, free: 4.25 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.808e-05/0.3055, allocations: 0 / 239.7 MB, free: 4.25 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001433/0.3056, allocations: 11.98 kB / 239.8 MB, free: 4.238 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.604e-05/0.3057, allocations: 4 kB / 239.8 MB, free: 4.234 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.614e-06/0.3057, allocations: 3.953 kB / 239.8 MB, free: 4.23 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004774/0.3105, allocations: 0.912 MB / 240.7 MB, free: 3.301 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004826/0.311, allocations: 140.3 kB / 240.8 MB, free: 3.145 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003002/0.3113, allocations: 12.06 kB / 240.8 MB, free: 3.133 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001854/0.3132, allocations: 107.9 kB / 240.9 MB, free: 3.027 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00031/0.3136, allocations: 52.31 kB / 241 MB, free: 2.977 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/0.3137, allocations: 12 kB / 241 MB, free: 2.965 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.001242/0.315, allocations: 329.6 kB / 241.3 MB, free: 2.641 MB / 202.7 MB Notification: Performance of sort global known variables: time 1.357e-06/0.315, allocations: 0 / 241.3 MB, free: 2.641 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001994/0.317, allocations: 167.7 kB / 241.5 MB, free: 2.477 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.0004207/0.3175, allocations: 131.7 kB / 241.6 MB, free: 2.34 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.003351/0.3209, allocations: 0.6048 MB / 242.2 MB, free: 1.734 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 6.989e-06/0.3209, allocations: 0 / 242.2 MB, free: 1.734 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001526/0.3225, allocations: 282.5 kB / 242.5 MB, free: 1.461 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001632/0.3241, allocations: 97.97 kB / 242.6 MB, free: 1.359 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004738/0.3289, allocations: 0.8643 MB / 243.5 MB, free: 476 kB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1168/0.4458, allocations: 0.8713 MB / 244.3 MB, free: 51.74 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004739/0.4463, allocations: 54.22 kB / 244.4 MB, free: 51.74 MB / 202.7 MB Notification: Performance of SimCode: time 2.111e-06/0.4463, allocations: 0 / 244.4 MB, free: 51.74 MB / 202.7 MB Notification: Performance of Templates: time 0.0128/0.4591, allocations: 8.164 MB / 252.5 MB, free: 50.75 MB / 202.7 MB