Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6943/0.6943, allocations: 110.8 MB / 118 MB, free: 14.56 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001735/0.001735, allocations: 160 kB / 143.7 MB, free: 4.887 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.735e-06/7.925e-06, allocations: 0 / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03773/0.03776, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.122/0.1598, allocations: 36.32 MB / 234.9 MB, free: 4.285 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001488/0.1599, allocations: 64.45 kB / 235 MB, free: 4.285 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.02323/0.1832, allocations: 9.606 MB / 244.6 MB, free: 2.305 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.487e-05/0.1833, allocations: 15.16 kB / 244.6 MB, free: 2.305 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.002141/0.1854, allocations: 1.042 MB / 245.7 MB, free: 1.621 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.1855, allocations: 11.5 kB / 245.7 MB, free: 1.621 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.1856, allocations: 70.06 kB / 245.8 MB, free: 1.586 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004916/0.1861, allocations: 420.4 kB / 246.2 MB, free: 1.285 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.1862, allocations: 22.22 kB / 246.2 MB, free: 1.285 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.53e-05/0.1863, allocations: 37.97 kB / 246.2 MB, free: 1.281 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009241/0.1872, allocations: 0.5591 MB / 246.8 MB, free: 1.258 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008429/0.188, allocations: 0.6051 MB / 247.4 MB, free: 1.039 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.1881, allocations: 0 / 247.4 MB, free: 1.039 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.275e-05/0.1881, allocations: 11.31 kB / 247.4 MB, free: 1.035 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.1882, allocations: 15.38 kB / 247.4 MB, free: 1.031 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004155/0.1923, allocations: 3.07 MB / 250.5 MB, free: 15.19 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006734/0.193, allocations: 426.3 kB / 250.9 MB, free: 15.15 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003845/0.1934, allocations: 256.8 kB / 251.1 MB, free: 15.14 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.747e-05/0.1935, allocations: 19.61 kB / 251.2 MB, free: 15.13 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004878/0.194, allocations: 311.2 kB / 251.5 MB, free: 15.04 MB / 186.7 MB Notification: Performance of pre-optimization done (n=52): time 4.418e-06/0.194, allocations: 0 / 251.5 MB, free: 15.04 MB / 186.7 MB Notification: Performance of matching and sorting (n=52): time 0.0009135/0.1949, allocations: 491.6 kB / 252 MB, free: 14.93 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.195, allocations: 58.5 kB / 252 MB, free: 14.87 MB / 186.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/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.0005222/0.1955, allocations: 407.9 kB / 252.4 MB, free: 14.72 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 5.148e-05/0.1956, allocations: 28.14 kB / 252.4 MB, free: 14.69 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.1957, allocations: 286.7 kB / 252.7 MB, free: 14.47 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/0.1959, allocations: 167.8 kB / 252.9 MB, free: 14.34 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.732e-05/0.1959, allocations: 1 kB / 252.9 MB, free: 14.34 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1961, allocations: 374.1 kB / 253.2 MB, free: 14.01 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004105/0.1965, allocations: 224 kB / 253.5 MB, free: 14.01 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005955/0.1971, allocations: 441.7 kB / 253.9 MB, free: 13.74 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004099/0.1975, allocations: 263.4 kB / 254.2 MB, free: 13.69 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.1975, allocations: 1.25 kB / 254.2 MB, free: 13.69 MB / 186.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001189/0.1987, allocations: 0.7114 MB / 254.9 MB, free: 13.54 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.1988, allocations: 4.125 kB / 254.9 MB, free: 13.54 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.1988, allocations: 6.75 kB / 254.9 MB, free: 13.54 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.1988, allocations: 15.56 kB / 254.9 MB, free: 13.54 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/0.2001, allocations: 276.2 kB / 255.2 MB, free: 13.47 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.953e-05/0.2001, allocations: 14.44 kB / 255.2 MB, free: 13.46 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.2011, allocations: 186.1 kB / 255.4 MB, free: 13.38 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.984e-05/0.2012, allocations: 28.56 kB / 255.4 MB, free: 13.38 MB / 186.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.0002611/0.2014, allocations: 159 kB / 255.5 MB, free: 13.24 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.788e-05/0.2016, allocations: 64.98 kB / 255.6 MB, free: 13.2 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001699/0.2017, allocations: 55.83 kB / 255.7 MB, free: 13.19 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.2017, allocations: 5.438 kB / 255.7 MB, free: 13.19 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.2018, allocations: 0 / 255.7 MB, free: 13.19 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.2018, allocations: 7.922 kB / 255.7 MB, free: 13.18 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007116/0.2025, allocations: 0.6275 MB / 256.3 MB, free: 12.86 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2025, allocations: 5.125 kB / 256.3 MB, free: 12.85 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009102/0.2034, allocations: 185.7 kB / 256.5 MB, free: 12.8 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.276e-06/0.2034, allocations: 10.47 kB / 256.5 MB, free: 12.8 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.901e-05/0.2035, allocations: 3.344 kB / 256.5 MB, free: 12.8 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.2035, allocations: 2.219 kB / 256.5 MB, free: 12.8 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2035, allocations: 5.094 kB / 256.5 MB, free: 12.79 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001264/0.2048, allocations: 0.8117 MB / 257.3 MB, free: 12.65 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.2049, allocations: 139.1 kB / 257.5 MB, free: 12.52 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.2051, allocations: 5.188 kB / 257.5 MB, free: 12.52 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000701/0.2058, allocations: 115.1 kB / 257.6 MB, free: 12.48 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.2059, allocations: 49.3 kB / 257.6 MB, free: 12.45 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.974e-05/0.2059, allocations: 21.67 kB / 257.6 MB, free: 12.45 MB / 186.7 MB Notification: Performance of sort global known variables: time 0.0003491/0.2063, allocations: 296.5 kB / 257.9 MB, free: 12.34 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000546/0.2069, allocations: 147.6 kB / 258.1 MB, free: 12.32 MB / 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 (VIN2.signalSource.counter,VIN1.signalSource.counter,VIN2.signalSource.counter2,VIN1.signalSource.counter2) * 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.0001811/0.207, allocations: 110.9 kB / 258.2 MB, free: 12.22 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0009647/0.208, allocations: 0.5851 MB / 258.8 MB, free: 12.18 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.208, allocations: 4.125 kB / 258.8 MB, free: 12.18 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004648/0.2085, allocations: 276.3 kB / 259 MB, free: 12.16 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004579/0.209, allocations: 72.27 kB / 259.1 MB, free: 12.14 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/0.2109, allocations: 0.8302 MB / 259.9 MB, free: 11.77 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007638/0.2117, allocations: 0.9364 MB / 260.9 MB, free: 10.97 MB / 186.7 MB Notification: Performance of SimCode: time 5.71e-07/0.2117, allocations: 4 kB / 260.9 MB, free: 10.96 MB / 186.7 MB Notification: Performance of Templates: time 0.01391/0.2256, allocations: 7.812 MB / 268.7 MB, free: 3.738 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)