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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6406/0.6406, allocations: 110.9 MB / 125.9 MB, free: 6.223 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001585/0.001585, allocations: 142.2 kB / 151.8 MB, free: 5.004 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002583/0.0002583, allocations: 12 kB / 184.9 MB, free: 3.934 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1111, allocations: 25.15 MB / 210 MB, free: 29.74 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.03968/0.1508, allocations: 37.16 MB / 247.2 MB, free: 12.66 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001851/0.151, allocations: 67.97 kB / 247.3 MB, free: 12.59 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02429/0.1753, allocations: 9.804 MB / 257.1 MB, free: 2.805 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1754, allocations: 0 / 257.1 MB, free: 2.805 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.596e-05/0.1754, allocations: 15.98 kB / 257.1 MB, free: 2.789 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.002173/0.1776, allocations: 1.067 MB / 258.2 MB, free: 1.672 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.1776, allocations: 8.031 kB / 258.2 MB, free: 1.664 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.1778, allocations: 71.16 kB / 258.2 MB, free: 1.594 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005047/0.1783, allocations: 420.8 kB / 258.7 MB, free: 1.141 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.189e-05/0.1783, allocations: 45.31 kB / 258.7 MB, free: 1.094 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.794e-05/0.1784, allocations: 52 kB / 258.7 MB, free: 1.043 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001934/0.1804, allocations: 0.9342 MB / 259.7 MB, free: 76 kB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.1804, allocations: 11.89 kB / 259.7 MB, free: 64 kB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.709e-05/0.1805, allocations: 27 kB / 259.7 MB, free: 40 kB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.1805, allocations: 16 kB / 259.7 MB, free: 24 kB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002658/0.1832, allocations: 1.101 MB / 260.8 MB, free: 14.91 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004309/0.1875, allocations: 3.119 MB / 264 MB, free: 11.67 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002134/0.1896, allocations: 1.007 MB / 265 MB, free: 10.61 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.909e-05/0.1897, allocations: 20.47 kB / 265 MB, free: 10.59 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001177/0.1909, allocations: 0.5011 MB / 265.5 MB, free: 10.09 MB / 202.7 MB Notification: Performance of pre-optimization done (n=52): time 2.835e-06/0.1909, allocations: 0 / 265.5 MB, free: 10.09 MB / 202.7 MB Notification: Performance of matching and sorting (n=52): time 0.002959/0.1939, allocations: 1.236 MB / 266.7 MB, free: 8.84 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.1939, allocations: 63.84 kB / 266.8 MB, free: 8.766 MB / 202.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.0006439/0.1946, allocations: 457 kB / 267.2 MB, free: 8.312 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 5.041e-05/0.1946, allocations: 37.7 kB / 267.3 MB, free: 8.27 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000215/0.1949, allocations: 343.5 kB / 267.6 MB, free: 7.926 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.195, allocations: 165.6 kB / 267.8 MB, free: 7.762 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.926e-05/0.1951, allocations: 16 kB / 267.8 MB, free: 7.746 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1952, allocations: 370.7 kB / 268.1 MB, free: 7.375 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/0.1963, allocations: 429.7 kB / 268.6 MB, free: 6.957 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/0.1974, allocations: 0.6411 MB / 269.2 MB, free: 6.227 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.1985, allocations: 474.8 kB / 269.7 MB, free: 5.762 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.1985, allocations: 0 / 269.7 MB, free: 5.762 MB / 202.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002545/0.2011, allocations: 1.158 MB / 270.8 MB, free: 4.598 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.2011, allocations: 8 kB / 270.8 MB, free: 4.59 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.2011, allocations: 8 kB / 270.8 MB, free: 4.582 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.157e-05/0.2012, allocations: 11.98 kB / 270.9 MB, free: 4.57 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.2023, allocations: 251.9 kB / 271.1 MB, free: 4.324 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.844e-05/0.2023, allocations: 15.94 kB / 271.1 MB, free: 4.309 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009306/0.2032, allocations: 190.9 kB / 271.3 MB, free: 4.121 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.393e-05/0.2033, allocations: 31.98 kB / 271.3 MB, free: 4.09 MB / 202.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.0004207/0.2037, allocations: 243.6 kB / 271.6 MB, free: 3.852 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.475e-05/0.2038, allocations: 65.47 kB / 271.6 MB, free: 3.789 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001466/0.204, allocations: 65.59 kB / 271.7 MB, free: 3.719 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.204, allocations: 4 kB / 271.7 MB, free: 3.715 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.204, allocations: 0 / 271.7 MB, free: 3.715 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.204, allocations: 3.984 kB / 271.7 MB, free: 3.711 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00312/0.2071, allocations: 1.732 MB / 273.4 MB, free: 1.922 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.2072, allocations: 4 kB / 273.4 MB, free: 1.918 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007844/0.208, allocations: 167.8 kB / 273.6 MB, free: 1.754 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.208, allocations: 4 kB / 273.6 MB, free: 1.75 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.103e-05/0.208, allocations: 15.98 kB / 273.6 MB, free: 1.734 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.208, allocations: 3.938 kB / 273.6 MB, free: 1.73 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2081, allocations: 0.9375 kB / 273.6 MB, free: 1.73 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003059/0.2111, allocations: 1.439 MB / 275.1 MB, free: 284 kB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.2113, allocations: 140.3 kB / 275.2 MB, free: 124 kB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.886e-05/0.2114, allocations: 15.98 kB / 275.2 MB, free: 108 kB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006115/0.212, allocations: 108 kB / 275.3 MB, free: 0 / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.2122, allocations: 44.36 kB / 275.4 MB, free: 15.96 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.427e-05/0.2122, allocations: 19.98 kB / 275.4 MB, free: 15.94 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0004732/0.2127, allocations: 346.8 kB / 275.7 MB, free: 15.6 MB / 218.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2127, allocations: 0 / 275.7 MB, free: 15.6 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.0005604/0.2133, allocations: 171.7 kB / 275.9 MB, free: 15.43 MB / 218.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.0001545/0.2135, allocations: 119.2 kB / 276 MB, free: 15.3 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.002191/0.2157, allocations: 0.975 MB / 277 MB, free: 14.32 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2157, allocations: 4.312 kB / 277 MB, free: 14.32 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.2167, allocations: 466.2 kB / 277.4 MB, free: 13.87 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005015/0.2172, allocations: 95.2 kB / 277.5 MB, free: 13.78 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/0.2192, allocations: 1.406 MB / 278.9 MB, free: 12.35 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.2196, allocations: 0.8746 MB / 279.8 MB, free: 11.45 MB / 218.7 MB Notification: Performance of simCode: alias equations: time 0.0003856/0.22, allocations: 72.72 kB / 279.9 MB, free: 11.38 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.2202, allocations: 43.42 kB / 279.9 MB, free: 11.33 MB / 218.7 MB Notification: Performance of SimCode: time 4.11e-07/0.2202, allocations: 7.938 kB / 279.9 MB, free: 11.32 MB / 218.7 MB Notification: Performance of Templates: time 0.01041/0.2306, allocations: 6.385 MB / 286.3 MB, free: 4.98 MB / 218.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)