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.001344/0.001344, allocations: 181.9 kB / 13.64 MB, free: 1.676 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.385/1.385, allocations: 194.2 MB / 208.4 MB, free: 6.707 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.001673/0.001673, allocations: 112.8 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.112e-05/2.114e-05, allocations: 0 / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06877/0.06881, allocations: 44.5 MB / 349.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3407/0.4095, allocations: 97.67 MB / 447.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.4098, allocations: 66.09 kB / 447.2 MB, free: 13.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4523/0.8622, allocations: 123.1 MB / 0.5569 GB, free: 81.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.8622, allocations: 0 / 0.5569 GB, free: 81.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.028e-05/0.8623, allocations: 43.09 kB / 0.5569 GB, free: 81.03 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.00374/0.866, allocations: 2.586 MB / 0.5595 GB, free: 79.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.8661, allocations: 7.469 kB / 0.5595 GB, free: 79.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003775/0.8664, allocations: 377.2 kB / 0.5598 GB, free: 79.47 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003039/0.8695, allocations: 2.239 MB / 0.562 GB, free: 78.85 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.8695, allocations: 33.25 kB / 0.562 GB, free: 78.85 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.8697, allocations: 46.31 kB / 0.5621 GB, free: 78.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009662/0.8706, allocations: 0.7633 MB / 0.5628 GB, free: 78.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.8707, allocations: 0 / 0.5628 GB, free: 78.72 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.003e-05/0.8707, allocations: 18.91 kB / 0.5628 GB, free: 78.72 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/0.8708, allocations: 23.45 kB / 0.5629 GB, free: 78.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00083/0.8716, allocations: 0.6842 MB / 0.5635 GB, free: 78.71 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004144/0.8757, allocations: 2.939 MB / 0.5664 GB, free: 78.21 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005979/0.8764, allocations: 0.594 MB / 0.567 GB, free: 78.08 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006076/0.877, allocations: 0.599 MB / 0.5676 GB, free: 78.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02725/0.9042, allocations: 36.07 MB / 0.6028 GB, free: 51.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004212/0.9047, allocations: 306.3 kB / 0.6031 GB, free: 51.61 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 2.434e-06/0.9047, allocations: 0 / 0.6031 GB, free: 51.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.001342/0.9061, allocations: 0.886 MB / 0.604 GB, free: 51.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.835e-05/0.9061, allocations: 270.7 kB / 0.6042 GB, free: 51.06 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002593/0.9087, allocations: 2.32 MB / 0.6065 GB, free: 50.58 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.752e-05/0.9088, allocations: 37.14 kB / 0.6065 GB, free: 50.54 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009174/0.9097, allocations: 1.393 MB / 0.6079 GB, free: 49.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.9099, allocations: 167.7 kB / 0.608 GB, free: 49.29 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.872e-05/0.9099, allocations: 17.38 kB / 0.6081 GB, free: 49.28 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.15e-05/0.91, allocations: 342.5 kB / 0.6084 GB, free: 48.96 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002753/0.9102, allocations: 181.1 kB / 0.6086 GB, free: 48.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004164/0.9107, allocations: 0.5865 MB / 0.6091 GB, free: 48.31 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003673/0.911, allocations: 263.1 kB / 0.6094 GB, free: 48.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.882e-06/0.9111, allocations: 3.969 kB / 0.6094 GB, free: 48.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001506/0.9126, allocations: 1.177 MB / 0.6105 GB, free: 47.83 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.9126, allocations: 11.81 kB / 0.6105 GB, free: 47.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.733e-05/0.9127, allocations: 79.52 kB / 0.6106 GB, free: 47.83 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005173/0.9132, allocations: 279 kB / 0.6109 GB, free: 47.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005338/0.9138, allocations: 185 kB / 0.6111 GB, free: 47.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007666/0.9146, allocations: 0.8962 MB / 0.6119 GB, free: 47.15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/0.9159, allocations: 121 kB / 0.6121 GB, free: 47.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.935e-05/0.916, allocations: 67.72 kB / 0.6121 GB, free: 47.09 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 () * 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.0001781/0.9162, allocations: 168.9 kB / 0.6123 GB, free: 46.94 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002946/0.9165, allocations: 365.1 kB / 0.6126 GB, free: 46.75 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002801/0.9193, allocations: 1.212 MB / 0.6138 GB, free: 46.33 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.9193, allocations: 11.77 kB / 0.6138 GB, free: 46.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.9193, allocations: 3.969 kB / 0.6138 GB, free: 46.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.9193, allocations: 3.703 kB / 0.6138 GB, free: 46.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002997/0.9223, allocations: 2.121 MB / 0.6159 GB, free: 45.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-05/0.9224, allocations: 66.45 kB / 0.616 GB, free: 45.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003161/0.9227, allocations: 83.25 kB / 0.616 GB, free: 45.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004237/0.9232, allocations: 259.1 kB / 0.6163 GB, free: 45.27 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.496e-05/0.9232, allocations: 34.95 kB / 0.6163 GB, free: 45.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006761/0.9239, allocations: 0.8598 MB / 0.6172 GB, free: 44.64 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.9239, allocations: 3.984 kB / 0.6172 GB, free: 44.64 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.9252, allocations: 1.145 MB / 0.6183 GB, free: 43.96 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007169/0.9259, allocations: 475.9 kB / 0.6187 GB, free: 43.63 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002621/0.9262, allocations: 11.97 kB / 0.6187 GB, free: 43.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006667/0.9268, allocations: 46.09 kB / 0.6188 GB, free: 43.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.927, allocations: 65.62 kB / 0.6189 GB, free: 43.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.224e-05/0.927, allocations: 41.59 kB / 0.6189 GB, free: 43.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002188/0.9292, allocations: 1.765 MB / 0.6206 GB, free: 42.92 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9292, allocations: 0 / 0.6206 GB, free: 42.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001481/0.9307, allocations: 0.6298 MB / 0.6212 GB, free: 42.82 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) * 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.001134/0.9319, allocations: 0.8543 MB / 0.6221 GB, free: 42.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.933, allocations: 0.7451 MB / 0.6228 GB, free: 42.13 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.9331, allocations: 4 kB / 0.6228 GB, free: 42.12 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005461/0.9336, allocations: 440.9 kB / 0.6232 GB, free: 41.69 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.935, allocations: 468.2 kB / 0.6237 GB, free: 41.28 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003723/0.9388, allocations: 2.77 MB / 0.6264 GB, free: 38.64 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008377/0.9396, allocations: 1.671 MB / 0.628 GB, free: 37.34 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001072/0.9407, allocations: 341.1 kB / 0.6283 GB, free: 37.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.9409, allocations: 143.4 kB / 0.6285 GB, free: 36.96 MB / 394.7 MB Notification: Performance of SimCode: time 7.51e-07/0.9409, allocations: 8 kB / 0.6285 GB, free: 36.95 MB / 394.7 MB Notification: Performance of Templates: time 0.04831/0.9892, allocations: 32.91 MB / 0.6606 GB, free: 7.293 MB / 394.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)