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.01018/0.01018, allocations: 164 kB / 15.11 MB, free: 6.039 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.387/1.387, allocations: 170.8 MB / 186.6 MB, free: 1.141 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.0016/0.0016, allocations: 107.3 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003363/0.0003363, allocations: 8 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2331, allocations: 38.77 MB / 312.9 MB, free: 38.7 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1165/0.3497, allocations: 93.93 MB / 406.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.3499, allocations: 79.97 kB / 406.9 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4022/0.7522, allocations: 125.3 MB / 0.5197 GB, free: 6.809 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.827e-06/0.7522, allocations: 0 / 0.5197 GB, free: 6.809 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.693e-05/0.7523, allocations: 44 kB / 0.5197 GB, free: 6.766 MB / 330.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.007729/0.7601, allocations: 3.246 MB / 0.5229 GB, free: 3.453 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.7601, allocations: 8.031 kB / 0.5229 GB, free: 3.445 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005658/0.7607, allocations: 379.4 kB / 0.5233 GB, free: 3.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004223/0.7649, allocations: 2.251 MB / 0.5255 GB, free: 0.7422 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.854e-05/0.765, allocations: 44.94 kB / 0.5255 GB, free: 0.6992 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.7651, allocations: 47.94 kB / 0.5255 GB, free: 0.6523 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.7666, allocations: 0.83 MB / 0.5264 GB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.7666, allocations: 0 / 0.5264 GB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.326e-05/0.7667, allocations: 24 kB / 0.5264 GB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.778e-05/0.7667, allocations: 19.98 kB / 0.5264 GB, free: 15.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001526/0.7683, allocations: 0.828 MB / 0.5272 GB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005472/0.7738, allocations: 2.947 MB / 0.5301 GB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.775, allocations: 0.7293 MB / 0.5308 GB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2585/1.034, allocations: 35.9 MB / 0.5659 GB, free: 40.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008523/1.034, allocations: 388.5 kB / 0.5662 GB, free: 40 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/1.034, allocations: 0 / 0.5662 GB, free: 40 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.003439/1.038, allocations: 1.447 MB / 0.5676 GB, free: 39.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.365e-05/1.038, allocations: 272.9 kB / 0.5679 GB, free: 39.36 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004338/1.042, allocations: 2.354 MB / 0.5702 GB, free: 39.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001335/1.043, allocations: 33.33 kB / 0.5702 GB, free: 39.06 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001267/1.044, allocations: 1.398 MB / 0.5716 GB, free: 38.85 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/1.044, allocations: 167.1 kB / 0.5718 GB, free: 38.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.73e-05/1.044, allocations: 16.19 kB / 0.5718 GB, free: 38.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.638e-05/1.044, allocations: 339 kB / 0.5721 GB, free: 38.46 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005679/1.045, allocations: 264.4 kB / 0.5723 GB, free: 38.46 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007352/1.046, allocations: 0.6512 MB / 0.573 GB, free: 37.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006511/1.046, allocations: 343.2 kB / 0.5733 GB, free: 37.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/1.046, allocations: 3.062 kB / 0.5733 GB, free: 37.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002807/1.049, allocations: 1.315 MB / 0.5746 GB, free: 37.74 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.536e-05/1.049, allocations: 10.19 kB / 0.5746 GB, free: 37.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001812/1.049, allocations: 81.44 kB / 0.5747 GB, free: 37.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008581/1.05, allocations: 281 kB / 0.575 GB, free: 37.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007307/1.051, allocations: 180.5 kB / 0.5751 GB, free: 37.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/1.052, allocations: 0.8813 MB / 0.576 GB, free: 37.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/1.054, allocations: 129.7 kB / 0.5761 GB, free: 37.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/1.054, allocations: 66.22 kB / 0.5762 GB, free: 37.18 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 () * Number of clocked 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.001309/1.056, allocations: 428.2 kB / 0.5766 GB, free: 37.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006075/1.056, allocations: 365.9 kB / 0.5769 GB, free: 36.89 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003453/1.06, allocations: 1.362 MB / 0.5783 GB, free: 36.78 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/1.06, allocations: 3.406 kB / 0.5783 GB, free: 36.78 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/1.06, allocations: 0 / 0.5783 GB, free: 36.78 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/1.06, allocations: 6.5 kB / 0.5783 GB, free: 36.78 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004146/1.064, allocations: 2.257 MB / 0.5805 GB, free: 36.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.637e-05/1.064, allocations: 71.5 kB / 0.5805 GB, free: 36.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003245/1.064, allocations: 77.3 kB / 0.5806 GB, free: 36.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004246/1.065, allocations: 263.9 kB / 0.5809 GB, free: 36.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.812e-05/1.065, allocations: 32.91 kB / 0.5809 GB, free: 36.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007585/1.066, allocations: 0.8563 MB / 0.5817 GB, free: 35.83 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.066, allocations: 6.406 kB / 0.5817 GB, free: 35.83 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002039/1.068, allocations: 1.28 MB / 0.583 GB, free: 35.29 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/1.069, allocations: 476.2 kB / 0.5834 GB, free: 35.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002806/1.069, allocations: 8.938 kB / 0.5835 GB, free: 35.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006548/1.07, allocations: 49.89 kB / 0.5835 GB, free: 35.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/1.07, allocations: 68.34 kB / 0.5836 GB, free: 35.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.899e-05/1.07, allocations: 37.53 kB / 0.5836 GB, free: 35.01 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002844/1.073, allocations: 1.806 MB / 0.5854 GB, free: 34.83 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.4e-07/1.073, allocations: 0 / 0.5854 GB, free: 34.83 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00227/1.075, allocations: 0.6251 MB / 0.586 GB, free: 34.82 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) * Number of clocked states: 0 () * 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.001459/1.077, allocations: 0.8628 MB / 0.5868 GB, free: 34.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001846/1.078, allocations: 0.8844 MB / 0.5877 GB, free: 34.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/1.078, allocations: 3.656 kB / 0.5877 GB, free: 34.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007922/1.079, allocations: 0.5046 MB / 0.5882 GB, free: 34.45 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/1.081, allocations: 463 kB / 0.5886 GB, free: 34.42 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006014/1.087, allocations: 4.437 MB / 0.593 GB, free: 32.26 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/1.088, allocations: 1.661 MB / 0.5946 GB, free: 31.54 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001306/1.09, allocations: 345.5 kB / 0.5949 GB, free: 31.51 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/1.09, allocations: 144.7 kB / 0.595 GB, free: 31.5 MB / 346.7 MB Notification: Performance of SimCode: time 1.362e-06/1.09, allocations: 0 / 0.595 GB, free: 31.5 MB / 346.7 MB Notification: Performance of Templates: time 0.05672/1.146, allocations: 31.51 MB / 0.6258 GB, free: 19.05 MB / 346.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)