Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001569/0.001569, allocations: 171.3 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.203/1.203, allocations: 170.7 MB / 178.7 MB, free: 15.65 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001539/0.001539, allocations: 115.4 kB / 218 MB, free: 8.402 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.651e-05/1.663e-05, allocations: 4 kB / 262.2 MB, free: 26.42 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06052/0.06055, allocations: 38.77 MB / 301 MB, free: 3.652 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2606/0.3212, allocations: 93.19 MB / 394.2 MB, free: 7.434 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001801/0.3214, allocations: 72.66 kB / 394.2 MB, free: 7.398 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4119/0.7333, allocations: 119.9 MB / 0.5021 GB, free: 75.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.7334, allocations: 0 / 0.5021 GB, free: 75.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.533e-05/0.7334, allocations: 51.81 kB / 0.5022 GB, free: 75.39 MB / 346.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.004593/0.7381, allocations: 2.587 MB / 0.5047 GB, free: 73.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.7381, allocations: 6.594 kB / 0.5047 GB, free: 73.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005626/0.7387, allocations: 380.6 kB / 0.5051 GB, free: 73.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003662/0.7423, allocations: 2.236 MB / 0.5072 GB, free: 72.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.7424, allocations: 19.97 kB / 0.5073 GB, free: 72.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.7425, allocations: 33.47 kB / 0.5073 GB, free: 72.56 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008697/0.7434, allocations: 0.6568 MB / 0.5079 GB, free: 72.36 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008547/0.7442, allocations: 0.698 MB / 0.5086 GB, free: 72.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.7443, allocations: 3.609 kB / 0.5086 GB, free: 72.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.453e-05/0.7443, allocations: 3.938 kB / 0.5086 GB, free: 72.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.7444, allocations: 19.39 kB / 0.5086 GB, free: 72.04 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004861/0.7492, allocations: 2.822 MB / 0.5114 GB, free: 70.72 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005591/0.7498, allocations: 0.5705 MB / 0.512 GB, free: 70.37 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005309/0.7504, allocations: 0.5786 MB / 0.5125 GB, free: 70.08 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02714/0.7775, allocations: 36.06 MB / 0.5477 GB, free: 36.76 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000392/0.778, allocations: 297.7 kB / 0.548 GB, free: 36.45 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.995e-06/0.778, allocations: 0 / 0.548 GB, free: 36.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.00146/0.7794, allocations: 0.8681 MB / 0.5489 GB, free: 35.58 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/0.7795, allocations: 268.9 kB / 0.5491 GB, free: 35.26 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003517/0.783, allocations: 2.108 MB / 0.5512 GB, free: 33.14 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.99e-05/0.7831, allocations: 29.64 kB / 0.5512 GB, free: 33.1 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009577/0.7841, allocations: 1.387 MB / 0.5526 GB, free: 31.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.7842, allocations: 165.8 kB / 0.5527 GB, free: 31.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.463e-05/0.7843, allocations: 0 / 0.5527 GB, free: 31.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.022e-05/0.7844, allocations: 337.9 kB / 0.5531 GB, free: 31.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002415/0.7846, allocations: 166.6 kB / 0.5532 GB, free: 31.04 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003676/0.785, allocations: 0.5728 MB / 0.5538 GB, free: 30.28 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004209/0.7854, allocations: 260.5 kB / 0.554 GB, free: 30.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.7854, allocations: 0 / 0.554 GB, free: 30.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001457/0.7869, allocations: 1.069 MB / 0.5551 GB, free: 28.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.7869, allocations: 12.22 kB / 0.5551 GB, free: 28.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001072/0.787, allocations: 83.98 kB / 0.5552 GB, free: 28.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004485/0.7875, allocations: 282.8 kB / 0.5554 GB, free: 28.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005438/0.788, allocations: 179.7 kB / 0.5556 GB, free: 28.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007457/0.7888, allocations: 0.9196 MB / 0.5565 GB, free: 27.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/0.7901, allocations: 111.1 kB / 0.5566 GB, free: 27.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.769e-05/0.7902, allocations: 64 kB / 0.5567 GB, free: 27.28 MB / 346.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 () * 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.0001773/0.7904, allocations: 148.5 kB / 0.5568 GB, free: 27.13 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000402/0.7908, allocations: 367.5 kB / 0.5572 GB, free: 26.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002609/0.7934, allocations: 1.178 MB / 0.5583 GB, free: 25.58 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.7934, allocations: 4 kB / 0.5583 GB, free: 25.58 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.7934, allocations: 3.953 kB / 0.5583 GB, free: 25.57 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.7934, allocations: 3.984 kB / 0.5583 GB, free: 25.57 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00292/0.7964, allocations: 2.01 MB / 0.5603 GB, free: 23.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.234e-05/0.7965, allocations: 67.98 kB / 0.5603 GB, free: 23.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003161/0.7968, allocations: 75.88 kB / 0.5604 GB, free: 23.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003543/0.7971, allocations: 256.6 kB / 0.5607 GB, free: 23.12 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.733e-05/0.7972, allocations: 27.98 kB / 0.5607 GB, free: 23.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007275/0.7979, allocations: 0.8971 MB / 0.5616 GB, free: 22.17 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.798, allocations: 7.969 kB / 0.5616 GB, free: 22.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.7993, allocations: 1.124 MB / 0.5627 GB, free: 20.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007346/0.8001, allocations: 476.4 kB / 0.5631 GB, free: 20.47 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004676/0.8006, allocations: 8 kB / 0.5631 GB, free: 20.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008266/0.8014, allocations: 39.95 kB / 0.5632 GB, free: 20.42 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.8015, allocations: 67.89 kB / 0.5632 GB, free: 20.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.05e-05/0.8016, allocations: 39.69 kB / 0.5633 GB, free: 20.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001919/0.8035, allocations: 1.563 MB / 0.5648 GB, free: 18.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.8035, allocations: 0 / 0.5648 GB, free: 18.75 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001361/0.8049, allocations: 0.5892 MB / 0.5654 GB, free: 18.16 MB / 346.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) * 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.00112/0.806, allocations: 0.9465 MB / 0.5663 GB, free: 17.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001006/0.807, allocations: 0.6968 MB / 0.567 GB, free: 16.58 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.8071, allocations: 3.938 kB / 0.567 GB, free: 16.57 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005114/0.8076, allocations: 432 kB / 0.5674 GB, free: 16.13 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/0.809, allocations: 454 kB / 0.5678 GB, free: 15.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003916/0.8129, allocations: 2.744 MB / 0.5705 GB, free: 12.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008719/0.8138, allocations: 1.674 MB / 0.5721 GB, free: 11.18 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001154/0.815, allocations: 333.2 kB / 0.5725 GB, free: 10.86 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.8152, allocations: 147.4 kB / 0.5726 GB, free: 10.71 MB / 346.7 MB Notification: Performance of SimCode: time 8.92e-07/0.8152, allocations: 0 / 0.5726 GB, free: 10.71 MB / 346.7 MB Notification: Performance of Templates: time 0.2139/1.029, allocations: 28.44 MB / 0.6004 GB, free: 88.79 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)