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.005218/0.005218, allocations: 104.1 kB / 15.73 MB, free: 6.051 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.001125, allocations: 196.2 kB / 16.68 MB, free: 5.961 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.379/1.379, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001292/0.001292, allocations: 54.2 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08579/0.08709, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01351/0.1007, allocations: 13.35 MB / 386.5 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02405/0.1247, allocations: 19.33 MB / 405.8 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002527/0.1273, allocations: 126.9 kB / 406 MB, free: 380 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003311/0.1307, allocations: 1.096 MB / 407.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007718/0.1384, allocations: 2.25 MB / 409.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005073/0.1435, allocations: 1.381 MB / 410.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01039/0.154, allocations: 6.211 MB / 416.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008057/0.1548, allocations: 440.3 kB / 417.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001498/0.1563, allocations: 0.972 MB / 418.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001515/0.1578, allocations: 1.029 MB / 419.3 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003217/0.1582, allocations: 68 kB / 419.4 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004573/0.1628, allocations: 1.156 MB / 420.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005485/0.1633, allocations: 305.8 kB / 420.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002426/0.1658, allocations: 1.312 MB / 422.2 MB, free: 64 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006383/0.1722, allocations: 3.658 MB / 425.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1722, allocations: 4 kB / 425.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1722, allocations: 0 / 425.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001205/0.1723, allocations: 0 / 425.8 MB, free: 12.39 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.005941/0.1783, allocations: 3.518 MB / 429.3 MB, free: 8.797 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.1783, allocations: 8.031 kB / 429.4 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005643/0.1789, allocations: 379.4 kB / 429.7 MB, free: 8.414 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003941/0.1829, allocations: 2.517 MB / 432.2 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.923e-05/0.1829, allocations: 36.94 kB / 432.3 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/0.1831, allocations: 47.91 kB / 432.3 MB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.1845, allocations: 0.707 MB / 433 MB, free: 5.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.1846, allocations: 0 / 433 MB, free: 5.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.886e-05/0.1846, allocations: 19.94 kB / 433.1 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.803e-05/0.1847, allocations: 23.98 kB / 433.1 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.1863, allocations: 0.789 MB / 433.9 MB, free: 4.191 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005379/0.1917, allocations: 2.892 MB / 436.8 MB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.193, allocations: 0.7014 MB / 437.5 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.194, allocations: 0.6588 MB / 438.1 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2169/0.411, allocations: 30.14 MB / 468.3 MB, free: 61.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007635/0.4118, allocations: 366.9 kB / 468.6 MB, free: 61.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.806e-06/0.4118, allocations: 0 / 468.6 MB, free: 61.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003214/0.415, allocations: 1.391 MB / 470 MB, free: 60.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.4151, allocations: 70.52 kB / 470.1 MB, free: 60.69 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003301/0.4184, allocations: 2.817 MB / 472.9 MB, free: 59.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.824e-05/0.4185, allocations: 39.95 kB / 472.9 MB, free: 59.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008734/0.4193, allocations: 1.394 MB / 474.3 MB, free: 57.94 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.4195, allocations: 162.8 kB / 474.5 MB, free: 57.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002867/0.4198, allocations: 224.4 kB / 474.7 MB, free: 57.69 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.24e-05/0.4198, allocations: 334.5 kB / 475 MB, free: 57.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005528/0.4204, allocations: 243.9 kB / 475.3 MB, free: 57.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006668/0.4211, allocations: 0.5917 MB / 475.9 MB, free: 56.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.4222, allocations: 0.8769 MB / 476.7 MB, free: 55.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.4222, allocations: 3.969 kB / 476.7 MB, free: 55.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001875/0.4241, allocations: 1.284 MB / 478 MB, free: 55.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.4241, allocations: 12.98 kB / 478 MB, free: 55.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.727e-05/0.4242, allocations: 82.47 kB / 478.1 MB, free: 55.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004968/0.4247, allocations: 276.9 kB / 478.4 MB, free: 55.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005204/0.4253, allocations: 169.7 kB / 478.6 MB, free: 55.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007571/0.426, allocations: 0.8838 MB / 479.4 MB, free: 54.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009242/0.427, allocations: 112 kB / 479.5 MB, free: 54.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.238e-05/0.4271, allocations: 63.19 kB / 479.6 MB, free: 54.54 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.0006103/0.4277, allocations: 425.7 kB / 480 MB, free: 54.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/0.4279, allocations: 367.8 kB / 480.4 MB, free: 54.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002362/0.4303, allocations: 1.278 MB / 481.7 MB, free: 53.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.4303, allocations: 3.656 kB / 481.7 MB, free: 53.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4303, allocations: 0 / 481.7 MB, free: 53.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.4303, allocations: 7.922 kB / 481.7 MB, free: 53.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002887/0.4332, allocations: 2.193 MB / 483.9 MB, free: 52.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.996e-05/0.4333, allocations: 73.14 kB / 483.9 MB, free: 52.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000298/0.4337, allocations: 65.77 kB / 484 MB, free: 52.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003751/0.434, allocations: 271.5 kB / 484.3 MB, free: 51.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.111e-05/0.4341, allocations: 28.88 kB / 484.3 MB, free: 51.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006687/0.4348, allocations: 0.8757 MB / 485.2 MB, free: 50.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.4348, allocations: 0 / 485.2 MB, free: 50.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00151/0.4363, allocations: 1.143 MB / 486.3 MB, free: 49.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000538/0.4369, allocations: 472.4 kB / 486.8 MB, free: 49.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002763/0.4371, allocations: 8 kB / 486.8 MB, free: 49.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006673/0.4378, allocations: 31.95 kB / 486.8 MB, free: 49.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.438, allocations: 61.14 kB / 486.9 MB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.037e-05/0.438, allocations: 36 kB / 486.9 MB, free: 49.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001874/0.4399, allocations: 1.84 MB / 488.7 MB, free: 47.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4399, allocations: 0 / 488.7 MB, free: 47.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001233/0.4412, allocations: 0.5686 MB / 489.3 MB, free: 46.74 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.0009168/0.4421, allocations: 0.7797 MB / 490.1 MB, free: 46.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.4437, allocations: 0.8527 MB / 490.9 MB, free: 45.19 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4437, allocations: 3.938 kB / 491 MB, free: 45.19 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007875/0.4445, allocations: 0.4894 MB / 491.4 MB, free: 44.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.4461, allocations: 0.5121 MB / 492 MB, free: 44.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004252/0.4504, allocations: 3.92 MB / 495.9 MB, free: 40.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006548/0.451, allocations: 1.608 MB / 497.5 MB, free: 38.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009061/0.4519, allocations: 399.2 kB / 497.9 MB, free: 38.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.4521, allocations: 159.4 kB / 498 MB, free: 38.04 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4521, allocations: 0 / 498 MB, free: 38.04 MB / 382.1 MB Notification: Performance of Templates: time 0.0437/0.4958, allocations: 33.51 MB / 0.5191 GB, free: 4.496 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)