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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00429/0.00429, allocations: 176.5 kB / 7.452 MB, free: 2.484 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.2/1.2, allocations: 170.6 MB / 178.4 MB, free: 15.37 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.001711/0.001711, allocations: 112.9 kB / 217.7 MB, free: 8.133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.031e-06/6.181e-06, allocations: 0 / 261.7 MB, free: 26.62 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07321/0.07323, allocations: 38.76 MB / 300.5 MB, free: 3.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2415/0.3148, allocations: 93.1 MB / 393.6 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.315, allocations: 72.22 kB / 393.7 MB, free: 7.531 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.4158/0.7309, allocations: 120.6 MB / 0.5022 GB, free: 58.97 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001164/0.7311, allocations: 43.34 kB / 0.5023 GB, free: 58.97 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.007323/0.7384, allocations: 2.631 MB / 0.5048 GB, free: 57.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.7385, allocations: 7.875 kB / 0.5048 GB, free: 57.53 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00124/0.7397, allocations: 384.5 kB / 0.5052 GB, free: 57.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006357/0.7461, allocations: 2.232 MB / 0.5074 GB, free: 56.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.451e-05/0.7462, allocations: 15.41 kB / 0.5074 GB, free: 56.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000272/0.7465, allocations: 30.69 kB / 0.5074 GB, free: 56.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001565/0.748, allocations: 0.6543 MB / 0.5081 GB, free: 56.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.7496, allocations: 0.701 MB / 0.5088 GB, free: 56.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.7496, allocations: 0 / 0.5088 GB, free: 56.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000112/0.7497, allocations: 0 / 0.5088 GB, free: 56.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.001e-05/0.7497, allocations: 22.05 kB / 0.5088 GB, free: 56.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007644/0.7574, allocations: 2.841 MB / 0.5115 GB, free: 56.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006076/0.7581, allocations: 355.7 kB / 0.5119 GB, free: 56.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009137/0.759, allocations: 0.5564 MB / 0.5124 GB, free: 56.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04747/0.8065, allocations: 35.93 MB / 0.5475 GB, free: 26.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006516/0.8072, allocations: 292.1 kB / 0.5478 GB, free: 26.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 3.707e-06/0.8072, allocations: 0 / 0.5478 GB, free: 26.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=50): time 0.002205/0.8094, allocations: 0.8608 MB / 0.5486 GB, free: 25.59 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.652e-05/0.8095, allocations: 273 kB / 0.5489 GB, free: 25.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005243/0.8148, allocations: 2.104 MB / 0.551 GB, free: 23.15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.8149, allocations: 25.7 kB / 0.551 GB, free: 23.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006384/0.8156, allocations: 0.6096 MB / 0.5516 GB, free: 22.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002338/0.8158, allocations: 161.7 kB / 0.5517 GB, free: 22.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.026e-05/0.8159, allocations: 4 kB / 0.5517 GB, free: 22.34 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.064e-05/0.816, allocations: 341.9 kB / 0.5521 GB, free: 22 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003913/0.8164, allocations: 174 kB / 0.5522 GB, free: 21.82 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005775/0.817, allocations: 0.5553 MB / 0.5528 GB, free: 21.08 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006755/0.8177, allocations: 268.3 kB / 0.553 GB, free: 20.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.8177, allocations: 4 kB / 0.553 GB, free: 20.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002454/0.8202, allocations: 1.08 MB / 0.5541 GB, free: 19.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.8202, allocations: 11.91 kB / 0.5541 GB, free: 19.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001625/0.8204, allocations: 79.98 kB / 0.5542 GB, free: 19.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007591/0.8211, allocations: 278.7 kB / 0.5544 GB, free: 19.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008077/0.822, allocations: 183.7 kB / 0.5546 GB, free: 19.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/0.8233, allocations: 0.9392 MB / 0.5555 GB, free: 18.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001963/0.8253, allocations: 111.2 kB / 0.5556 GB, free: 18.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001442/0.8255, allocations: 67.98 kB / 0.5557 GB, free: 18.04 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002635/0.8257, allocations: 140.7 kB / 0.5558 GB, free: 17.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007583/0.8265, allocations: 363.6 kB / 0.5562 GB, free: 17.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00641/0.8329, allocations: 1.451 MB / 0.5576 GB, free: 16.1 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.833, allocations: 7.984 kB / 0.5576 GB, free: 16.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.833, allocations: 4 kB / 0.5576 GB, free: 16.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.833, allocations: 4 kB / 0.5576 GB, free: 16.08 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006423/0.8394, allocations: 2.017 MB / 0.5596 GB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001398/0.8396, allocations: 71.98 kB / 0.5596 GB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004657/0.8401, allocations: 80 kB / 0.5597 GB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006501/0.8407, allocations: 260.6 kB / 0.56 GB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.923e-05/0.8408, allocations: 31.92 kB / 0.56 GB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.8421, allocations: 0.9313 MB / 0.5609 GB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.8421, allocations: 0 / 0.5609 GB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001931/0.8441, allocations: 1.125 MB / 0.562 GB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001189/0.8453, allocations: 468.5 kB / 0.5625 GB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008879/0.8462, allocations: 11.91 kB / 0.5625 GB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.8474, allocations: 43.95 kB / 0.5625 GB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.8476, allocations: 63.81 kB / 0.5626 GB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.734e-05/0.8476, allocations: 39.98 kB / 0.5626 GB, free: 10.78 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.002797/0.8505, allocations: 1.563 MB / 0.5641 GB, free: 9.215 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001765/0.8522, allocations: 0.5892 MB / 0.5647 GB, free: 8.625 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.00144/0.8537, allocations: 0.9539 MB / 0.5656 GB, free: 7.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.8549, allocations: 0.6891 MB / 0.5663 GB, free: 7.043 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.299e-06/0.8549, allocations: 4 kB / 0.5663 GB, free: 7.039 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005951/0.8555, allocations: 415.8 kB / 0.5667 GB, free: 6.609 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/0.8572, allocations: 449.3 kB / 0.5671 GB, free: 6.168 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005572/0.8627, allocations: 2.769 MB / 0.5698 GB, free: 3.328 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/0.864, allocations: 1.81 MB / 0.5716 GB, free: 1.492 MB / 346.7 MB Notification: Performance of SimCode: time 6.81e-07/0.864, allocations: 0 / 0.5716 GB, free: 1.492 MB / 346.7 MB Notification: Performance of Templates: time 0.06008/0.9241, allocations: 29.71 MB / 0.6006 GB, free: 3.934 MB / 378.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)