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.0009235/0.0009236, allocations: 183.8 kB / 8.354 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.367/1.367, allocations: 194.3 MB / 203.1 MB, free: 13.02 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.00157/0.00157, allocations: 124.6 kB / 248.1 MB, free: 20 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.293e-05/1.295e-05, allocations: 0 / 298.1 MB, free: 35.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07902/0.07904, allocations: 44.49 MB / 342.6 MB, free: 7 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3371/0.4162, allocations: 97 MB / 439.6 MB, free: 5.266 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/0.4165, allocations: 68.66 kB / 439.6 MB, free: 5.258 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4368/0.8533, allocations: 117.9 MB / 0.5445 GB, free: 78.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.8533, allocations: 0 / 0.5445 GB, free: 78.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.131e-05/0.8534, allocations: 45.5 kB / 0.5445 GB, free: 78.38 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.004382/0.8578, allocations: 2.588 MB / 0.547 GB, free: 77.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.8579, allocations: 13.88 kB / 0.547 GB, free: 77.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005032/0.8584, allocations: 374.8 kB / 0.5474 GB, free: 77.04 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003731/0.8621, allocations: 2.235 MB / 0.5496 GB, free: 76.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.8621, allocations: 14.62 kB / 0.5496 GB, free: 76.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.8623, allocations: 35.78 kB / 0.5496 GB, free: 76.43 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001049/0.8633, allocations: 0.6621 MB / 0.5503 GB, free: 76.42 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.8644, allocations: 0.6951 MB / 0.551 GB, free: 76.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.8645, allocations: 0 / 0.551 GB, free: 76.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.665e-05/0.8645, allocations: 6.016 kB / 0.551 GB, free: 76.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.8646, allocations: 23.05 kB / 0.551 GB, free: 76.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004713/0.8693, allocations: 2.824 MB / 0.5537 GB, free: 75.86 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005674/0.8699, allocations: 0.564 MB / 0.5543 GB, free: 75.73 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005533/0.8704, allocations: 0.5838 MB / 0.5549 GB, free: 75.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02658/0.897, allocations: 36.04 MB / 0.5901 GB, free: 49.32 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004009/0.8975, allocations: 302.4 kB / 0.5903 GB, free: 49.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 2.745e-06/0.8975, allocations: 3.938 kB / 0.5904 GB, free: 49.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.001254/0.8987, allocations: 0.8594 MB / 0.5912 GB, free: 49.03 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.343e-05/0.8988, allocations: 272.6 kB / 0.5915 GB, free: 48.72 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002377/0.9012, allocations: 2.104 MB / 0.5935 GB, free: 48.44 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.127e-05/0.9013, allocations: 29.5 kB / 0.5935 GB, free: 48.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000858/0.9021, allocations: 1.395 MB / 0.5949 GB, free: 48.16 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.9023, allocations: 157.3 kB / 0.595 GB, free: 48.06 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.191e-05/0.9023, allocations: 0 / 0.595 GB, free: 48.06 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.512e-05/0.9024, allocations: 337.9 kB / 0.5954 GB, free: 47.76 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002289/0.9026, allocations: 169.1 kB / 0.5955 GB, free: 47.75 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003727/0.903, allocations: 0.561 MB / 0.5961 GB, free: 47.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00037/0.9034, allocations: 255 kB / 0.5963 GB, free: 47.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.9034, allocations: 7.203 kB / 0.5963 GB, free: 47.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001358/0.9048, allocations: 1.083 MB / 0.5974 GB, free: 47.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.9048, allocations: 11.25 kB / 0.5974 GB, free: 47.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-05/0.9049, allocations: 77.91 kB / 0.5975 GB, free: 47.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004734/0.9054, allocations: 281.3 kB / 0.5977 GB, free: 47.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005586/0.9059, allocations: 179.4 kB / 0.5979 GB, free: 47.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007783/0.9067, allocations: 0.9234 MB / 0.5988 GB, free: 46.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.908, allocations: 105.1 kB / 0.5989 GB, free: 46.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.063e-05/0.9081, allocations: 66.98 kB / 0.599 GB, free: 46.43 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.0001711/0.9083, allocations: 147.2 kB / 0.5991 GB, free: 46.31 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002692/0.9085, allocations: 371.6 kB / 0.5995 GB, free: 46.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002634/0.9112, allocations: 1.19 MB / 0.6006 GB, free: 46.02 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.9112, allocations: 2.312 kB / 0.6006 GB, free: 46.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.9112, allocations: 0 / 0.6006 GB, free: 46.02 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.9112, allocations: 0 / 0.6006 GB, free: 46.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002948/0.9142, allocations: 2.015 MB / 0.6026 GB, free: 45.65 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.221e-05/0.9143, allocations: 71.17 kB / 0.6027 GB, free: 45.65 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003143/0.9146, allocations: 76.05 kB / 0.6027 GB, free: 45.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003596/0.915, allocations: 250.1 kB / 0.603 GB, free: 45.64 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.834e-05/0.915, allocations: 28.59 kB / 0.603 GB, free: 45.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006935/0.9157, allocations: 0.9098 MB / 0.6039 GB, free: 45.11 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.9157, allocations: 0 / 0.6039 GB, free: 45.11 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.9169, allocations: 1.113 MB / 0.605 GB, free: 44.57 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008092/0.9177, allocations: 472.8 kB / 0.6054 GB, free: 44.29 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000324/0.918, allocations: 7.891 kB / 0.6054 GB, free: 44.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007123/0.9187, allocations: 36.98 kB / 0.6055 GB, free: 44.29 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.9189, allocations: 68 kB / 0.6055 GB, free: 44.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.233e-05/0.9189, allocations: 36.59 kB / 0.6056 GB, free: 44.29 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001838/0.9208, allocations: 1.565 MB / 0.6071 GB, free: 44.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9208, allocations: 0 / 0.6071 GB, free: 44.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001463/0.9223, allocations: 0.5903 MB / 0.6077 GB, free: 44.03 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.001171/0.9234, allocations: 0.9449 MB / 0.6086 GB, free: 43.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.9245, allocations: 0.7041 MB / 0.6093 GB, free: 43.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.9245, allocations: 2.812 kB / 0.6093 GB, free: 43.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000538/0.9251, allocations: 435.2 kB / 0.6097 GB, free: 43.62 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.9264, allocations: 464.4 kB / 0.6102 GB, free: 43.58 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004075/0.9305, allocations: 2.744 MB / 0.6128 GB, free: 42.63 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008518/0.9314, allocations: 1.667 MB / 0.6145 GB, free: 41.91 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001086/0.9325, allocations: 340.3 kB / 0.6148 GB, free: 41.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/0.9327, allocations: 140.9 kB / 0.6149 GB, free: 41.88 MB / 394.7 MB Notification: Performance of SimCode: time 5.31e-07/0.9327, allocations: 0 / 0.6149 GB, free: 41.88 MB / 394.7 MB Notification: Performance of Templates: time 0.04505/0.9777, allocations: 28.44 MB / 0.6427 GB, free: 26.85 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)