Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.005161/0.005161, allocations: 98.56 kB / 15.73 MB, free: 6.059 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.0012/0.0012, allocations: 195.6 kB / 16.68 MB, free: 5.977 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.382/1.382, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.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.001216/0.001216, allocations: 47.44 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0925/0.09373, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01258/0.1063, allocations: 13.35 MB / 386.5 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02434/0.1307, allocations: 19.32 MB / 405.8 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002579/0.1333, allocations: 126.9 kB / 406 MB, free: 396 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003217/0.1366, allocations: 1.089 MB / 407 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007151/0.1438, allocations: 2.239 MB / 409.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004626/0.1484, allocations: 1.377 MB / 410.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009931/0.1584, allocations: 6.207 MB / 416.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008211/0.1592, allocations: 432.4 kB / 417.3 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001439/0.1607, allocations: 0.9525 MB / 418.2 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.1621, allocations: 1.029 MB / 419.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002101/0.1624, allocations: 72 kB / 419.3 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003579/0.166, allocations: 1.152 MB / 420.5 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002999/0.1663, allocations: 305.7 kB / 420.8 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001357/0.1676, allocations: 1.316 MB / 422.1 MB, free: 132 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006352/0.174, allocations: 3.675 MB / 425.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.174, allocations: 0 / 425.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.174, allocations: 4 kB / 425.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.234e-05/0.1741, allocations: 0 / 425.8 MB, free: 12.43 MB / 366.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.00532/0.1794, allocations: 3.649 MB / 429.4 MB, free: 8.711 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1795, allocations: 8.031 kB / 429.4 MB, free: 8.703 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004045/0.1799, allocations: 393.5 kB / 429.8 MB, free: 8.316 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003394/0.1833, allocations: 2.548 MB / 432.4 MB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.949e-05/0.1834, allocations: 40.94 kB / 432.4 MB, free: 5.652 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.1835, allocations: 47.95 kB / 432.5 MB, free: 5.605 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.1848, allocations: 0.7031 MB / 433.2 MB, free: 4.895 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.1848, allocations: 3.938 kB / 433.2 MB, free: 4.891 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-05/0.1849, allocations: 16 kB / 433.2 MB, free: 4.875 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.164e-05/0.185, allocations: 23.98 kB / 433.2 MB, free: 4.852 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.1865, allocations: 0.789 MB / 434 MB, free: 4.066 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004962/0.1915, allocations: 2.904 MB / 436.9 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.1927, allocations: 0.7053 MB / 437.6 MB, free: 364 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001023/0.1937, allocations: 0.6509 MB / 438.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.206/0.3998, allocations: 30.14 MB / 468.4 MB, free: 61.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007486/0.4006, allocations: 362.9 kB / 468.8 MB, free: 61.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.186e-06/0.4006, allocations: 0 / 468.8 MB, free: 61.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003293/0.4039, allocations: 1.417 MB / 470.2 MB, free: 60.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.571e-05/0.404, allocations: 62.62 kB / 470.2 MB, free: 60.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004215/0.4082, allocations: 2.818 MB / 473.1 MB, free: 59.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.861e-05/0.4083, allocations: 36.45 kB / 473.1 MB, free: 58.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009808/0.4092, allocations: 1.4 MB / 474.5 MB, free: 57.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.4094, allocations: 174.6 kB / 474.7 MB, free: 57.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003508/0.4098, allocations: 229.1 kB / 474.9 MB, free: 57.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.982e-05/0.4098, allocations: 332.9 kB / 475.2 MB, free: 57.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005727/0.4104, allocations: 241.3 kB / 475.4 MB, free: 57.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006707/0.4111, allocations: 0.5954 MB / 476 MB, free: 56.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.4123, allocations: 0.8782 MB / 476.9 MB, free: 55.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.4123, allocations: 3.906 kB / 476.9 MB, free: 55.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002032/0.4143, allocations: 1.298 MB / 478.2 MB, free: 55.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.4144, allocations: 12.88 kB / 478.2 MB, free: 55.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.92e-05/0.4145, allocations: 82.73 kB / 478.3 MB, free: 55.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004905/0.415, allocations: 280.5 kB / 478.6 MB, free: 55.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005105/0.4155, allocations: 168.8 kB / 478.8 MB, free: 55.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007113/0.4162, allocations: 0.884 MB / 479.6 MB, free: 54.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009823/0.4172, allocations: 109.1 kB / 479.7 MB, free: 54.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.65e-05/0.4173, allocations: 71.08 kB / 479.8 MB, free: 54.38 MB / 382.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.0005414/0.4178, allocations: 425.9 kB / 480.2 MB, free: 54.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000356/0.4182, allocations: 383.4 kB / 480.6 MB, free: 53.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002466/0.4207, allocations: 1.28 MB / 481.9 MB, free: 53.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.4207, allocations: 7.125 kB / 481.9 MB, free: 53.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.319e-06/0.4207, allocations: 0 / 481.9 MB, free: 53.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.4207, allocations: 3.938 kB / 481.9 MB, free: 53.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002933/0.4237, allocations: 2.206 MB / 484.1 MB, free: 51.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.001e-05/0.4238, allocations: 69.03 kB / 484.2 MB, free: 51.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002831/0.424, allocations: 65.22 kB / 484.2 MB, free: 51.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000393/0.4244, allocations: 265.9 kB / 484.5 MB, free: 51.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.447e-05/0.4245, allocations: 31.98 kB / 484.5 MB, free: 51.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006389/0.4251, allocations: 0.8685 MB / 485.4 MB, free: 50.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4252, allocations: 3.938 kB / 485.4 MB, free: 50.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.4266, allocations: 1.158 MB / 486.6 MB, free: 49.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004597/0.4271, allocations: 492.8 kB / 487 MB, free: 49.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002592/0.4273, allocations: 8 kB / 487 MB, free: 49.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006428/0.428, allocations: 31.66 kB / 487.1 MB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.4281, allocations: 63.94 kB / 487.1 MB, free: 48.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.675e-05/0.4282, allocations: 36 kB / 487.2 MB, free: 48.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001651/0.4298, allocations: 1.838 MB / 489 MB, free: 47.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4298, allocations: 4 kB / 489 MB, free: 47.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001058/0.4309, allocations: 0.5717 MB / 489.6 MB, free: 46.57 MB / 382.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.0008537/0.4318, allocations: 0.7859 MB / 490.4 MB, free: 45.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.4332, allocations: 0.8506 MB / 491.2 MB, free: 45.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4332, allocations: 0 / 491.2 MB, free: 45.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007555/0.434, allocations: 0.491 MB / 491.7 MB, free: 44.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001358/0.4354, allocations: 0.507 MB / 492.2 MB, free: 44.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003657/0.439, allocations: 4.007 MB / 496.2 MB, free: 39.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006241/0.4397, allocations: 1.608 MB / 497.8 MB, free: 38.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007808/0.4405, allocations: 388.7 kB / 498.2 MB, free: 37.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001756/0.4406, allocations: 171.4 kB / 498.4 MB, free: 37.79 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4406, allocations: 0 / 498.4 MB, free: 37.79 MB / 382.1 MB Notification: Performance of Templates: time 0.04136/0.482, allocations: 33.51 MB / 0.5194 GB, free: 4.234 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)