Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009729/0.0009729, allocations: 180.9 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.159/1.159, allocations: 194.5 MB / 211.6 MB, free: 3.051 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001543/0.001543, allocations: 115.8 kB / 256.9 MB, free: 4.375 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002796/0.0002796, allocations: 8 kB / 310.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07636/0.07666, allocations: 44.51 MB / 355.1 MB, free: 2.352 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2431/0.3198, allocations: 97.74 MB / 452.8 MB, free: 8.027 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/0.3201, allocations: 79.27 kB / 452.9 MB, free: 7.984 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.364/0.6841, allocations: 123.2 MB / 0.5626 GB, free: 85.31 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.6842, allocations: 3.188 kB / 0.5626 GB, free: 85.31 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.307e-05/0.6842, allocations: 41.97 kB / 0.5626 GB, free: 85.31 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.004499/0.6887, allocations: 3.253 MB / 0.5658 GB, free: 83.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.6888, allocations: 13.47 kB / 0.5658 GB, free: 83.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002943/0.6891, allocations: 382.2 kB / 0.5662 GB, free: 83.04 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002869/0.692, allocations: 2.249 MB / 0.5684 GB, free: 82.01 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/0.692, allocations: 36.22 kB / 0.5684 GB, free: 81.99 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.6921, allocations: 56.39 kB / 0.5684 GB, free: 81.97 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.6933, allocations: 0.8245 MB / 0.5692 GB, free: 81.62 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.6933, allocations: 0 / 0.5692 GB, free: 81.62 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.6e-05/0.6934, allocations: 23 kB / 0.5693 GB, free: 81.6 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.834e-05/0.6934, allocations: 21.36 kB / 0.5693 GB, free: 81.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/0.6946, allocations: 0.833 MB / 0.5701 GB, free: 81.38 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004184/0.6988, allocations: 2.936 MB / 0.573 GB, free: 79.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009982/0.6998, allocations: 0.7411 MB / 0.5737 GB, free: 79.6 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02473/0.7246, allocations: 35.91 MB / 0.6088 GB, free: 46.73 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00067/0.7253, allocations: 380.1 kB / 0.6091 GB, free: 46.35 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 2.374e-06/0.7253, allocations: 1.5 kB / 0.6091 GB, free: 46.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.00272/0.728, allocations: 1.457 MB / 0.6105 GB, free: 44.87 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.7281, allocations: 269 kB / 0.6108 GB, free: 44.54 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002473/0.7306, allocations: 2.347 MB / 0.6131 GB, free: 42.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.28e-05/0.7307, allocations: 45.69 kB / 0.6131 GB, free: 42.13 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008041/0.7315, allocations: 1.389 MB / 0.6145 GB, free: 40.74 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.924e-05/0.7316, allocations: 164.5 kB / 0.6146 GB, free: 40.58 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.8e-05/0.7316, allocations: 16 kB / 0.6147 GB, free: 40.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.399e-05/0.7317, allocations: 341.9 kB / 0.615 GB, free: 40.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004685/0.7322, allocations: 253.9 kB / 0.6152 GB, free: 39.98 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006027/0.7328, allocations: 0.6544 MB / 0.6159 GB, free: 39.14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005375/0.7333, allocations: 346.7 kB / 0.6162 GB, free: 38.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.7333, allocations: 4 kB / 0.6162 GB, free: 38.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002107/0.7354, allocations: 1.318 MB / 0.6175 GB, free: 37.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.7355, allocations: 17.5 kB / 0.6175 GB, free: 37.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.429e-05/0.7356, allocations: 84.11 kB / 0.6176 GB, free: 37.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005162/0.7361, allocations: 281.2 kB / 0.6179 GB, free: 37.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000551/0.7367, allocations: 175.7 kB / 0.618 GB, free: 36.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000744/0.7374, allocations: 0.8802 MB / 0.6189 GB, free: 36.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.7387, allocations: 139 kB / 0.619 GB, free: 35.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-05/0.7387, allocations: 60 kB / 0.6191 GB, free: 35.83 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0009313/0.7397, allocations: 425.5 kB / 0.6195 GB, free: 35.4 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002762/0.74, allocations: 371.6 kB / 0.6198 GB, free: 35.04 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002829/0.7428, allocations: 1.356 MB / 0.6212 GB, free: 33.67 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.7428, allocations: 4 kB / 0.6212 GB, free: 33.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.7428, allocations: 0 / 0.6212 GB, free: 33.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.7428, allocations: 0 / 0.6212 GB, free: 33.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003259/0.7461, allocations: 2.256 MB / 0.6234 GB, free: 31.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.971e-05/0.7462, allocations: 84.05 kB / 0.6234 GB, free: 31.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002814/0.7465, allocations: 67.94 kB / 0.6235 GB, free: 31.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003735/0.7469, allocations: 264.3 kB / 0.6238 GB, free: 30.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.634e-05/0.7469, allocations: 43.94 kB / 0.6238 GB, free: 30.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006814/0.7476, allocations: 0.851 MB / 0.6246 GB, free: 30.01 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.7476, allocations: 0 / 0.6246 GB, free: 30.01 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001525/0.7492, allocations: 1.284 MB / 0.6259 GB, free: 28.65 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008625/0.75, allocations: 472.4 kB / 0.6263 GB, free: 28.17 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002564/0.7503, allocations: 15.98 kB / 0.6264 GB, free: 28.15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000644/0.751, allocations: 50.17 kB / 0.6264 GB, free: 28.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.7511, allocations: 63.92 kB / 0.6265 GB, free: 28.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.137e-05/0.7512, allocations: 39.98 kB / 0.6265 GB, free: 28 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001953/0.7531, allocations: 1.801 MB / 0.6283 GB, free: 26.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7531, allocations: 1.969 kB / 0.6283 GB, free: 26.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001347/0.7545, allocations: 0.6206 MB / 0.6289 GB, free: 25.58 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001141/0.7556, allocations: 0.8608 MB / 0.6297 GB, free: 24.88 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.7573, allocations: 0.8806 MB / 0.6306 GB, free: 23.97 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.7573, allocations: 0 / 0.6306 GB, free: 23.97 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007491/0.7581, allocations: 0.4964 MB / 0.6311 GB, free: 23.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/0.76, allocations: 474.9 kB / 0.6315 GB, free: 22.99 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005233/0.7652, allocations: 4.444 MB / 0.6358 GB, free: 18.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000714/0.766, allocations: 1.663 MB / 0.6375 GB, free: 16.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001029/0.767, allocations: 344.4 kB / 0.6378 GB, free: 16.46 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.7672, allocations: 139.4 kB / 0.6379 GB, free: 16.33 MB / 394.7 MB Notification: Performance of SimCode: time 9.32e-07/0.7672, allocations: 0 / 0.6379 GB, free: 16.33 MB / 394.7 MB Notification: Performance of Templates: time 0.0485/0.8157, allocations: 31.53 MB / 0.6687 GB, free: 0.7969 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)