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.001188/0.001188, allocations: 98.92 kB / 16.5 MB, free: 6.641 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.001125/0.001126, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.481/1.481, allocations: 205.1 MB / 223.3 MB, free: 12.38 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.001215/0.001215, allocations: 47.92 kB / 279.3 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/0.08624, allocations: 46.63 MB / 326 MB, free: 4.875 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01144/0.09771, allocations: 13.24 MB / 339.2 MB, free: 7.578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02029/0.118, allocations: 19.48 MB / 358.7 MB, free: 4.023 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002271/0.1204, allocations: 67.44 kB / 358.7 MB, free: 3.957 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002894/0.1233, allocations: 0.9505 MB / 359.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006786/0.1301, allocations: 1.876 MB / 361.6 MB, free: 1.109 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004353/0.1345, allocations: 1.145 MB / 362.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009818/0.1443, allocations: 6.101 MB / 368.8 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006892/0.1451, allocations: 404.9 kB / 369.2 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001215/0.1463, allocations: 0.9132 MB / 370.1 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008634/0.1472, allocations: 1.005 MB / 371.1 MB, free: 7.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000175/0.1473, allocations: 48 kB / 371.2 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003415/0.1508, allocations: 1.128 MB / 372.3 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003246/0.1511, allocations: 289.7 kB / 372.6 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001267/0.1524, allocations: 1.288 MB / 373.9 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004089/0.1565, allocations: 3.564 MB / 377.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1565, allocations: 0 / 377.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.1565, allocations: 0 / 377.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.931e-05/0.1566, allocations: 0 / 377.4 MB, free: 1.148 MB / 318.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.1409/0.2975, allocations: 3.532 MB / 381 MB, free: 53.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.173e-05/0.2976, allocations: 9.062 kB / 381 MB, free: 53.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007096/0.2983, allocations: 377.2 kB / 381.4 MB, free: 53.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003752/0.302, allocations: 2.532 MB / 383.9 MB, free: 52.42 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.3021, allocations: 37.42 kB / 383.9 MB, free: 52.4 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.3022, allocations: 51.42 kB / 384 MB, free: 52.38 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.3035, allocations: 0.7002 MB / 384.7 MB, free: 52.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.3035, allocations: 3.812 kB / 384.7 MB, free: 52.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.564e-05/0.3036, allocations: 24.84 kB / 384.7 MB, free: 52.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.3036, allocations: 22.67 kB / 384.7 MB, free: 52.11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.3051, allocations: 0.7836 MB / 385.5 MB, free: 51.9 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004883/0.31, allocations: 2.897 MB / 388.4 MB, free: 50.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.3112, allocations: 0.7012 MB / 389.1 MB, free: 50.06 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009033/0.3121, allocations: 0.6465 MB / 389.7 MB, free: 49.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02083/0.3329, allocations: 30.18 MB / 419.9 MB, free: 20.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006418/0.3336, allocations: 364.7 kB / 420.3 MB, free: 20 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 3.267e-06/0.3336, allocations: 3 kB / 420.3 MB, free: 20 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002691/0.3363, allocations: 1.388 MB / 421.7 MB, free: 18.61 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.65e-05/0.3363, allocations: 67.39 kB / 421.7 MB, free: 18.53 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002506/0.3389, allocations: 2.816 MB / 424.6 MB, free: 15.7 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.3389, allocations: 31.67 kB / 424.6 MB, free: 15.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007419/0.3397, allocations: 1.399 MB / 426 MB, free: 14.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.62e-05/0.3398, allocations: 161.7 kB / 426.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002206/0.34, allocations: 222.2 kB / 426.4 MB, free: 13.87 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.224e-05/0.34, allocations: 344.4 kB / 426.7 MB, free: 13.53 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004882/0.3405, allocations: 233.9 kB / 426.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005904/0.3411, allocations: 0.5992 MB / 427.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/0.3422, allocations: 0.8764 MB / 428.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.3423, allocations: 4 kB / 428.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00183/0.3441, allocations: 1.283 MB / 429.7 MB, free: 10.22 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3441, allocations: 8 kB / 429.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.403e-05/0.3442, allocations: 84 kB / 429.8 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004658/0.3447, allocations: 273.5 kB / 430 MB, free: 9.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005189/0.3452, allocations: 172.3 kB / 430.2 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00069/0.3459, allocations: 0.8868 MB / 431.1 MB, free: 8.785 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.347, allocations: 118.2 kB / 431.2 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.088e-05/0.3471, allocations: 64 kB / 431.3 MB, free: 8.609 MB / 318.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.0005713/0.3477, allocations: 421.6 kB / 431.7 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002736/0.348, allocations: 363.6 kB / 432 MB, free: 7.828 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002585/0.3506, allocations: 1.272 MB / 433.3 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3506, allocations: 4 kB / 433.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.3506, allocations: 7.391 kB / 433.3 MB, free: 6.547 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3506, allocations: 3.984 kB / 433.3 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002881/0.3535, allocations: 2.195 MB / 435.5 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.481e-05/0.3536, allocations: 79.92 kB / 435.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/0.3539, allocations: 55.95 kB / 435.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004054/0.3543, allocations: 268.8 kB / 435.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.931e-05/0.3543, allocations: 36 kB / 436 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006574/0.355, allocations: 0.8684 MB / 436.8 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.355, allocations: 4.031 kB / 436.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/0.3565, allocations: 1.133 MB / 438 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005835/0.3571, allocations: 464.5 kB / 438.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003514/0.3575, allocations: 12 kB / 438.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008273/0.3583, allocations: 31.95 kB / 438.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.3584, allocations: 59.89 kB / 438.5 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.853e-05/0.3585, allocations: 43.92 kB / 438.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002106/0.3606, allocations: 1.84 MB / 440.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3606, allocations: 4 kB / 440.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001375/0.362, allocations: 0.5764 MB / 441 MB, free: 14.73 MB / 334.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.001093/0.3631, allocations: 0.7827 MB / 441.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.3648, allocations: 0.8426 MB / 442.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3648, allocations: 3.938 kB / 442.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008813/0.3657, allocations: 492.5 kB / 443.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/0.3674, allocations: 483.3 kB / 443.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005911/0.3734, allocations: 4.732 MB / 448.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/0.3745, allocations: 1.609 MB / 449.9 MB, free: 5.707 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001285/0.3758, allocations: 397.5 kB / 450.3 MB, free: 5.324 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002182/0.376, allocations: 163.4 kB / 450.5 MB, free: 5.164 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.376, allocations: 0 / 450.5 MB, free: 5.164 MB / 334.1 MB Notification: Performance of Templates: time 0.05213/0.4282, allocations: 32.25 MB / 482.7 MB, free: 4.887 MB / 366.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)