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.001026/0.001026, allocations: 170.4 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.128/1.128, allocations: 170.6 MB / 183.8 MB, free: 11.49 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.001559/0.001559, allocations: 110.7 kB / 223.2 MB, free: 4.109 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.06e-05/3.064e-05, allocations: 4 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06755/0.06759, allocations: 38.76 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2917/0.3594, allocations: 93.84 MB / 401.5 MB, free: 14.67 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/0.3596, allocations: 73.53 kB / 401.5 MB, free: 14.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4349/0.7945, allocations: 125.1 MB / 0.5143 GB, free: 71.72 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.7946, allocations: 0 / 0.5143 GB, free: 71.72 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.283e-05/0.7946, allocations: 46.53 kB / 0.5144 GB, free: 71.71 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.003972/0.7986, allocations: 2.588 MB / 0.5169 GB, free: 70.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.7987, allocations: 14.22 kB / 0.5169 GB, free: 70.01 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003331/0.799, allocations: 380.7 kB / 0.5173 GB, free: 69.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002958/0.802, allocations: 2.229 MB / 0.5195 GB, free: 68.11 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/0.802, allocations: 40.94 kB / 0.5195 GB, free: 68.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.8021, allocations: 55.89 kB / 0.5195 GB, free: 68.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000946/0.8031, allocations: 0.7559 MB / 0.5203 GB, free: 67.22 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.8031, allocations: 3.938 kB / 0.5203 GB, free: 67.22 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.526e-05/0.8032, allocations: 20 kB / 0.5203 GB, free: 67.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.8032, allocations: 19.98 kB / 0.5203 GB, free: 67.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000803/0.804, allocations: 0.676 MB / 0.521 GB, free: 66.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004516/0.8085, allocations: 2.94 MB / 0.5239 GB, free: 63.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006431/0.8092, allocations: 0.5947 MB / 0.5244 GB, free: 62.88 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005843/0.8098, allocations: 0.6098 MB / 0.525 GB, free: 62.26 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02789/0.8377, allocations: 36.07 MB / 0.5603 GB, free: 21.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004343/0.8382, allocations: 313.7 kB / 0.5606 GB, free: 20.74 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.506e-06/0.8382, allocations: 0 / 0.5606 GB, free: 20.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001364/0.8396, allocations: 0.8959 MB / 0.5614 GB, free: 19.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.128e-05/0.8396, allocations: 269 kB / 0.5617 GB, free: 19.51 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002627/0.8423, allocations: 2.318 MB / 0.564 GB, free: 17.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/0.8423, allocations: 37.7 kB / 0.564 GB, free: 17.13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008237/0.8432, allocations: 1.387 MB / 0.5653 GB, free: 15.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.8433, allocations: 165.7 kB / 0.5655 GB, free: 15.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.778e-05/0.8433, allocations: 16 kB / 0.5655 GB, free: 15.56 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.086e-05/0.8434, allocations: 337.9 kB / 0.5658 GB, free: 15.22 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002733/0.8437, allocations: 182 kB / 0.566 GB, free: 15.04 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004379/0.8441, allocations: 0.588 MB / 0.5666 GB, free: 14.26 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.8445, allocations: 273 kB / 0.5668 GB, free: 13.99 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.8445, allocations: 7.938 kB / 0.5669 GB, free: 13.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001512/0.846, allocations: 1.178 MB / 0.568 GB, free: 12.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.8461, allocations: 12 kB / 0.568 GB, free: 12.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.738e-05/0.8462, allocations: 83.98 kB / 0.5681 GB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005056/0.8467, allocations: 272.7 kB / 0.5684 GB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005555/0.8473, allocations: 179.7 kB / 0.5685 GB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007479/0.848, allocations: 0.884 MB / 0.5694 GB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001201/0.8492, allocations: 134.9 kB / 0.5695 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.482e-05/0.8493, allocations: 64 kB / 0.5696 GB, free: 11.15 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.0001783/0.8495, allocations: 169 kB / 0.5697 GB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002809/0.8498, allocations: 371.6 kB / 0.5701 GB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002735/0.8525, allocations: 1.216 MB / 0.5713 GB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.8526, allocations: 4 kB / 0.5713 GB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.8526, allocations: 0 / 0.5713 GB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.8526, allocations: 4 kB / 0.5713 GB, free: 9.375 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002771/0.8554, allocations: 2.119 MB / 0.5734 GB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.412e-05/0.8554, allocations: 67.98 kB / 0.5734 GB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003097/0.8558, allocations: 80 kB / 0.5735 GB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003912/0.8562, allocations: 264.6 kB / 0.5738 GB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.911e-05/0.8562, allocations: 35.92 kB / 0.5738 GB, free: 6.727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006844/0.8569, allocations: 0.8529 MB / 0.5746 GB, free: 5.848 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.8569, allocations: 4.031 kB / 0.5746 GB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.858, allocations: 1.153 MB / 0.5758 GB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007018/0.8587, allocations: 472.5 kB / 0.5762 GB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000256/0.859, allocations: 19.95 kB / 0.5762 GB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000673/0.8596, allocations: 39.95 kB / 0.5763 GB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.8598, allocations: 63.94 kB / 0.5763 GB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.645e-05/0.8599, allocations: 43.98 kB / 0.5764 GB, free: 3.969 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00174/0.8616, allocations: 1.764 MB / 0.5781 GB, free: 2.195 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8616, allocations: 0 / 0.5781 GB, free: 2.195 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001234/0.8628, allocations: 0.6206 MB / 0.5787 GB, free: 1.574 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.0009935/0.8639, allocations: 0.8651 MB / 0.5795 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001055/0.8649, allocations: 0.7372 MB / 0.5803 GB, free: 15.94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.8649, allocations: 0 / 0.5803 GB, free: 15.94 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006249/0.8656, allocations: 448 kB / 0.5807 GB, free: 15.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001321/0.8669, allocations: 469.9 kB / 0.5811 GB, free: 15.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.8712, allocations: 2.777 MB / 0.5838 GB, free: 12.18 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/0.8724, allocations: 1.663 MB / 0.5855 GB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001173/0.8736, allocations: 348.4 kB / 0.5858 GB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.8738, allocations: 139.4 kB / 0.5859 GB, free: 10.01 MB / 362.7 MB Notification: Performance of SimCode: time 1.162e-06/0.8738, allocations: 0 / 0.5859 GB, free: 10.01 MB / 362.7 MB Notification: Performance of Templates: time 0.2582/1.132, allocations: 32.92 MB / 0.6181 GB, free: 84.97 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)