Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 1.068/1.068, allocations: 111.1 MB / 127.3 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002609/0.000261, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07403/0.07432, allocations: 25.16 MB / 184 MB, free: 6.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2851/0.3595, allocations: 37.15 MB / 221.2 MB, free: 5.824 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003406/0.3599, allocations: 65.88 kB / 221.3 MB, free: 5.816 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04848/0.4084, allocations: 9.81 MB / 231.1 MB, free: 0.9453 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4085, allocations: 4 kB / 231.1 MB, free: 0.9414 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.424e-05/0.4085, allocations: 12 kB / 231.1 MB, free: 0.9297 MB / 170.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.004012/0.4126, allocations: 1.061 MB / 232.1 MB, free: 15.86 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.4126, allocations: 8.031 kB / 232.1 MB, free: 15.85 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004143/0.4131, allocations: 79.06 kB / 232.2 MB, free: 15.77 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009607/0.414, allocations: 421.8 kB / 232.6 MB, free: 15.4 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.942e-05/0.4141, allocations: 42.94 kB / 232.7 MB, free: 15.38 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.4143, allocations: 52.06 kB / 232.7 MB, free: 15.34 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004083/0.4184, allocations: 0.9401 MB / 233.7 MB, free: 14.59 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.68e-05/0.4185, allocations: 3.953 kB / 233.7 MB, free: 14.59 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001133/0.4186, allocations: 21.38 kB / 233.7 MB, free: 14.59 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.522e-05/0.4187, allocations: 20 kB / 233.7 MB, free: 14.57 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005871/0.4245, allocations: 1.101 MB / 234.8 MB, free: 13.7 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008753/0.4333, allocations: 3.13 MB / 237.9 MB, free: 11.1 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004524/0.4379, allocations: 1.004 MB / 238.9 MB, free: 10.26 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001115/0.4381, allocations: 12.38 kB / 239 MB, free: 10.25 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002321/0.4404, allocations: 0.5022 MB / 239.5 MB, free: 9.84 MB / 186.7 MB Notification: Performance of pre-optimization done (n=52): time 4.699e-06/0.4405, allocations: 0 / 239.5 MB, free: 9.84 MB / 186.7 MB Notification: Performance of matching and sorting (n=52): time 0.006359/0.4468, allocations: 1.238 MB / 240.7 MB, free: 8.855 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.71e-05/0.447, allocations: 63.83 kB / 240.8 MB, free: 8.781 MB / 186.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.001219/0.4482, allocations: 0.5073 MB / 241.3 MB, free: 8.383 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001769/0.4484, allocations: 37.58 kB / 241.3 MB, free: 8.348 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000343/0.4487, allocations: 373.8 kB / 241.7 MB, free: 8.047 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002941/0.4491, allocations: 171.5 kB / 241.8 MB, free: 7.902 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.729e-05/0.4491, allocations: 15.31 kB / 241.9 MB, free: 7.898 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.4493, allocations: 349.9 kB / 242.2 MB, free: 7.559 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002232/0.4516, allocations: 432.8 kB / 242.6 MB, free: 7.242 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002525/0.4541, allocations: 0.6397 MB / 243.3 MB, free: 6.633 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002347/0.4565, allocations: 471.6 kB / 243.7 MB, free: 6.289 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-05/0.4566, allocations: 4 kB / 243.7 MB, free: 6.285 MB / 186.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.005394/0.462, allocations: 1.127 MB / 244.8 MB, free: 5.406 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.786e-05/0.4621, allocations: 8 kB / 244.9 MB, free: 5.398 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.166e-05/0.4621, allocations: 8 kB / 244.9 MB, free: 5.391 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.398e-05/0.4621, allocations: 12.28 kB / 244.9 MB, free: 5.379 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002127/0.4643, allocations: 258.9 kB / 245.1 MB, free: 5.133 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.906e-05/0.4643, allocations: 11.94 kB / 245.1 MB, free: 5.121 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001833/0.4662, allocations: 185.6 kB / 245.3 MB, free: 4.949 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001547/0.4664, allocations: 35.48 kB / 245.4 MB, free: 4.922 MB / 186.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 () * Number of clocked 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.0006937/0.4671, allocations: 252 kB / 245.6 MB, free: 4.719 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001978/0.4673, allocations: 55.25 kB / 245.7 MB, free: 4.664 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002473/0.4676, allocations: 68.45 kB / 245.7 MB, free: 4.605 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.4676, allocations: 4 kB / 245.7 MB, free: 4.602 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.4676, allocations: 0 / 245.7 MB, free: 4.602 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.4676, allocations: 3.984 kB / 245.7 MB, free: 4.598 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006493/0.4741, allocations: 1.736 MB / 247.5 MB, free: 2.801 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/0.4742, allocations: 0 / 247.5 MB, free: 2.801 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001607/0.4758, allocations: 171.8 kB / 247.6 MB, free: 2.633 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.388e-05/0.4758, allocations: 0 / 247.6 MB, free: 2.633 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/0.476, allocations: 15.92 kB / 247.7 MB, free: 2.617 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.897e-06/0.476, allocations: 4 kB / 247.7 MB, free: 2.613 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.879e-06/0.476, allocations: 7.953 kB / 247.7 MB, free: 2.605 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006558/0.4826, allocations: 1.435 MB / 249.1 MB, free: 1.16 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003061/0.4829, allocations: 132.4 kB / 249.2 MB, free: 1.012 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002634/0.4832, allocations: 24 kB / 249.2 MB, free: 0.9883 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.4845, allocations: 99.89 kB / 249.3 MB, free: 0.8906 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000229/0.4848, allocations: 48.36 kB / 249.4 MB, free: 0.8398 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.954e-05/0.4849, allocations: 19.94 kB / 249.4 MB, free: 0.8203 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0009113/0.4858, allocations: 350.9 kB / 249.8 MB, free: 488 kB / 186.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4858, allocations: 0 / 249.8 MB, free: 488 kB / 186.7 MB Notification: Performance of remove unused functions: time 0.001063/0.4869, allocations: 167.7 kB / 249.9 MB, free: 320 kB / 186.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) * Number of clocked states: 0 () * 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.0002736/0.4872, allocations: 127.2 kB / 250 MB, free: 180 kB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.004995/0.4922, allocations: 0.9781 MB / 251 MB, free: 15.19 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/0.4923, allocations: 4 kB / 251 MB, free: 15.19 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002277/0.4946, allocations: 455.3 kB / 251.5 MB, free: 14.75 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.4957, allocations: 99.77 kB / 251.6 MB, free: 14.65 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004227/0.5, allocations: 1.434 MB / 253 MB, free: 13.18 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005864/0.5007, allocations: 0.8785 MB / 253.9 MB, free: 12.27 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006168/0.5013, allocations: 55.42 kB / 253.9 MB, free: 12.22 MB / 202.7 MB Notification: Performance of SimCode: time 8.62e-07/0.5013, allocations: 3.938 kB / 253.9 MB, free: 12.21 MB / 202.7 MB Notification: Performance of Templates: time 0.02104/0.5224, allocations: 8.159 MB / 262.1 MB, free: 4.062 MB / 202.7 MB