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.0008236/0.0008244, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.0008983/0.0008984, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.384/1.384, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004355/0.0004355, allocations: 8 kB / 280.7 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0865/0.08694, allocations: 47.59 MB / 328.3 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01325/0.1002, allocations: 12.71 MB / 341 MB, free: 7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.03597/0.1362, allocations: 19.2 MB / 360.2 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002557/0.1388, allocations: 63.5 kB / 360.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004182/0.1431, allocations: 0.9707 MB / 361.3 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01051/0.1536, allocations: 1.876 MB / 363.1 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006243/0.1599, allocations: 1.137 MB / 364.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01567/0.1756, allocations: 6.105 MB / 370.4 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001162/0.1768, allocations: 396.9 kB / 370.8 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002051/0.1789, allocations: 0.9015 MB / 371.7 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001765/0.1807, allocations: 0.9973 MB / 372.7 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002116/0.1809, allocations: 43.94 kB / 372.7 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005513/0.1864, allocations: 1.128 MB / 373.8 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005155/0.187, allocations: 285.7 kB / 374.1 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002194/0.1892, allocations: 1.298 MB / 375.4 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007873/0.1971, allocations: 3.509 MB / 378.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1971, allocations: 0 / 378.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1971, allocations: 0 / 378.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.517e-05/0.1972, allocations: 0 / 378.9 MB, free: 0.9141 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.1657/0.3629, allocations: 3.086 MB / 382 MB, free: 52.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.363, allocations: 9.625 kB / 382 MB, free: 52.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005895/0.3636, allocations: 375.8 kB / 382.4 MB, free: 52.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004207/0.3678, allocations: 2.532 MB / 384.9 MB, free: 52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.57e-05/0.3679, allocations: 40.05 kB / 385 MB, free: 52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.368, allocations: 46.84 kB / 385 MB, free: 52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.3695, allocations: 0.7247 MB / 385.7 MB, free: 51.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.3695, allocations: 3.844 kB / 385.7 MB, free: 51.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.816e-05/0.3696, allocations: 20.89 kB / 385.7 MB, free: 51.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.946e-05/0.3696, allocations: 23.88 kB / 385.8 MB, free: 51.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/0.3713, allocations: 0.8346 MB / 386.6 MB, free: 51.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005317/0.3766, allocations: 2.919 MB / 389.5 MB, free: 50.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001328/0.378, allocations: 0.7342 MB / 390.3 MB, free: 49.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/0.379, allocations: 0.6744 MB / 390.9 MB, free: 49.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0218/0.4008, allocations: 30.19 MB / 421.1 MB, free: 19.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006802/0.4016, allocations: 384.5 kB / 421.5 MB, free: 19.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/0.4016, allocations: 0 / 421.5 MB, free: 19.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002988/0.4046, allocations: 1.458 MB / 423 MB, free: 18.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/0.4046, allocations: 59.34 kB / 423 MB, free: 18.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00261/0.4072, allocations: 2.828 MB / 425.8 MB, free: 15.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.15e-05/0.4073, allocations: 33.7 kB / 425.9 MB, free: 15.14 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008459/0.4081, allocations: 1.39 MB / 427.3 MB, free: 13.74 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.4083, allocations: 166 kB / 427.4 MB, free: 13.58 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.865e-05/0.4084, allocations: 69.67 kB / 427.5 MB, free: 13.51 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.31e-05/0.4085, allocations: 341.9 kB / 427.8 MB, free: 13.17 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005408/0.409, allocations: 257.9 kB / 428.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00067/0.4097, allocations: 0.6125 MB / 428.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.4109, allocations: 0.9285 MB / 429.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.411, allocations: 4 kB / 429.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002046/0.413, allocations: 1.325 MB / 431 MB, free: 9.699 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.413, allocations: 10.66 kB / 431 MB, free: 9.691 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.744e-05/0.4131, allocations: 84 kB / 431 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004896/0.4136, allocations: 275 kB / 431.3 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005506/0.4142, allocations: 187.6 kB / 431.5 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007949/0.415, allocations: 0.8829 MB / 432.4 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001248/0.4163, allocations: 123.1 kB / 432.5 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.75e-05/0.4163, allocations: 64 kB / 432.6 MB, free: 8.066 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.0006407/0.417, allocations: 424.6 kB / 433 MB, free: 7.645 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003078/0.4173, allocations: 367.5 kB / 433.3 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002849/0.4202, allocations: 1.317 MB / 434.7 MB, free: 5.965 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.4202, allocations: 4 kB / 434.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4202, allocations: 0 / 434.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.4202, allocations: 3.984 kB / 434.7 MB, free: 5.957 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003245/0.4235, allocations: 2.236 MB / 436.9 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.537e-05/0.4236, allocations: 75.98 kB / 437 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003059/0.4239, allocations: 72.02 kB / 437 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004094/0.4243, allocations: 267.4 kB / 437.3 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.901e-05/0.4243, allocations: 36 kB / 437.3 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006815/0.425, allocations: 0.8683 MB / 438.2 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.425, allocations: 4.031 kB / 438.2 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001843/0.4269, allocations: 1.181 MB / 439.4 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007423/0.4277, allocations: 456.5 kB / 439.8 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002798/0.4279, allocations: 12 kB / 439.9 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006531/0.4286, allocations: 42.28 kB / 439.9 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.4288, allocations: 67.88 kB / 440 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.34e-05/0.4288, allocations: 39.98 kB / 440 MB, free: 472 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002215/0.4311, allocations: 1.836 MB / 441.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4311, allocations: 0 / 441.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001482/0.4326, allocations: 0.57 MB / 442.4 MB, free: 14.07 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.001165/0.4337, allocations: 0.7802 MB / 443.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001912/0.4357, allocations: 0.8817 MB / 444.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4357, allocations: 0 / 444.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009189/0.4366, allocations: 0.5129 MB / 444.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002464/0.4391, allocations: 483.1 kB / 445 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006255/0.4454, allocations: 4.793 MB / 449.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/0.4465, allocations: 1.609 MB / 451.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001398/0.4479, allocations: 390 kB / 451.8 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.4481, allocations: 163.4 kB / 452 MB, free: 4.535 MB / 334.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4481, allocations: 0 / 452 MB, free: 4.535 MB / 334.1 MB Notification: Performance of Templates: time 0.05422/0.5024, allocations: 32.17 MB / 484.2 MB, free: 4.352 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)