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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 107 kB / 17.06 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.373/1.373, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 47.94 kB / 327.9 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08399/0.08515, allocations: 46.62 MB / 374.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.176/0.2612, allocations: 13.37 MB / 387.8 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02196/0.2832, allocations: 19.32 MB / 407.2 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002677/0.2859, allocations: 124.5 kB / 407.3 MB, free: 7.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002899/0.2889, allocations: 1.092 MB / 408.4 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00809/0.297, allocations: 2.233 MB / 410.6 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005078/0.3021, allocations: 1.373 MB / 412 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.3124, allocations: 6.22 MB / 418.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008216/0.3132, allocations: 428.5 kB / 418.6 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00169/0.3149, allocations: 0.9523 MB / 419.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001298/0.3162, allocations: 1.026 MB / 420.6 MB, free: 432 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001989/0.3165, allocations: 69.5 kB / 420.7 MB, free: 432 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004/0.3205, allocations: 1.154 MB / 421.8 MB, free: 92 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003677/0.3209, allocations: 307.3 kB / 422.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001465/0.3223, allocations: 1.312 MB / 423.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005672/0.328, allocations: 3.683 MB / 427.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.328, allocations: 0 / 427.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3281, allocations: 0 / 427.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001156/0.3282, allocations: 0 / 427.1 MB, free: 10.82 MB / 350.1 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.005023/0.3332, allocations: 3.649 MB / 430.8 MB, free: 7.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3333, allocations: 12.03 kB / 430.8 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003906/0.3337, allocations: 389.6 kB / 431.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003258/0.3369, allocations: 2.551 MB / 433.7 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.982e-05/0.337, allocations: 36.94 kB / 433.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.3371, allocations: 51.95 kB / 433.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.3384, allocations: 0.7069 MB / 434.5 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.3384, allocations: 0 / 434.5 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.22e-05/0.3384, allocations: 16 kB / 434.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.3385, allocations: 23.98 kB / 434.5 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.34, allocations: 0.789 MB / 435.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004748/0.3447, allocations: 2.896 MB / 438.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.346, allocations: 0.7014 MB / 438.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.347, allocations: 0.6509 MB / 439.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02699/0.374, allocations: 30.15 MB / 469.7 MB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007384/0.3748, allocations: 365.2 kB / 470.1 MB, free: 11.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.866e-06/0.3748, allocations: 3.938 kB / 470.1 MB, free: 11.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003162/0.378, allocations: 1.409 MB / 471.5 MB, free: 10.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.378, allocations: 63.33 kB / 471.6 MB, free: 9.969 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003352/0.3814, allocations: 2.816 MB / 474.4 MB, free: 7.133 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.024e-05/0.3815, allocations: 37.7 kB / 474.4 MB, free: 7.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.3826, allocations: 1.404 MB / 475.8 MB, free: 5.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.3828, allocations: 178.5 kB / 476 MB, free: 5.504 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002793/0.3831, allocations: 222.4 kB / 476.2 MB, free: 5.281 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.3832, allocations: 341.9 kB / 476.5 MB, free: 4.941 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005537/0.3838, allocations: 233.9 kB / 476.8 MB, free: 4.711 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007745/0.3846, allocations: 0.5891 MB / 477.4 MB, free: 3.949 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.3859, allocations: 0.888 MB / 478.2 MB, free: 2.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.386, allocations: 4 kB / 478.2 MB, free: 2.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002644/0.3886, allocations: 1.301 MB / 479.5 MB, free: 1.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.3887, allocations: 12 kB / 479.6 MB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/0.3888, allocations: 80.88 kB / 479.6 MB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005673/0.3894, allocations: 277.3 kB / 479.9 MB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005588/0.3899, allocations: 167.7 kB / 480.1 MB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000927/0.3909, allocations: 0.8842 MB / 481 MB, free: 140 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001094/0.392, allocations: 111.3 kB / 481.1 MB, free: 28 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.3921, allocations: 64.05 kB / 481.1 MB, free: 15.96 MB / 414.1 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 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.000824/0.3929, allocations: 417.5 kB / 481.5 MB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004352/0.3934, allocations: 389.6 kB / 481.9 MB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002682/0.3961, allocations: 1.283 MB / 483.2 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.3961, allocations: 4.625 kB / 483.2 MB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3961, allocations: 0 / 483.2 MB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.3961, allocations: 3.984 kB / 483.2 MB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003346/0.3995, allocations: 2.213 MB / 485.4 MB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001063/0.3996, allocations: 78.17 kB / 485.5 MB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003144/0.3999, allocations: 63.88 kB / 485.6 MB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004597/0.4004, allocations: 260.9 kB / 485.8 MB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.377e-05/0.4005, allocations: 32 kB / 485.8 MB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009634/0.4014, allocations: 0.8646 MB / 486.7 MB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4014, allocations: 0 / 486.7 MB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001897/0.4034, allocations: 1.154 MB / 487.9 MB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006641/0.404, allocations: 486.4 kB / 488.3 MB, free: 8.562 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002651/0.4043, allocations: 12 kB / 488.4 MB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006422/0.405, allocations: 31.95 kB / 488.4 MB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.4051, allocations: 55.95 kB / 488.4 MB, free: 8.465 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.53e-05/0.4052, allocations: 43.98 kB / 488.5 MB, free: 8.422 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002464/0.4077, allocations: 1.832 MB / 490.3 MB, free: 6.586 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4077, allocations: 0 / 490.3 MB, free: 6.586 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001468/0.4092, allocations: 0.5813 MB / 490.9 MB, free: 6.004 MB / 414.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001139/0.4103, allocations: 0.7817 MB / 491.7 MB, free: 5.215 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001759/0.4121, allocations: 0.8539 MB / 492.5 MB, free: 4.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4121, allocations: 3.938 kB / 492.5 MB, free: 4.336 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009004/0.413, allocations: 496.2 kB / 493 MB, free: 3.828 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00179/0.4148, allocations: 0.5078 MB / 493.5 MB, free: 3.324 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005637/0.4205, allocations: 4.008 MB / 497.5 MB, free: 15.26 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001038/0.4215, allocations: 1.612 MB / 499.1 MB, free: 13.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001015/0.4225, allocations: 395 kB / 499.5 MB, free: 13.23 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002317/0.4228, allocations: 163.4 kB / 499.7 MB, free: 13.07 MB / 430.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4228, allocations: 0 / 499.7 MB, free: 13.07 MB / 430.1 MB Notification: Performance of Templates: time 0.05204/0.4748, allocations: 33.51 MB / 0.5207 GB, free: 11.5 MB / 462.1 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)