Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.004766/0.004766, allocations: 99.03 kB / 15.73 MB, free: 6.043 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.001091/0.001091, allocations: 195.3 kB / 16.68 MB, free: 5.973 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.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.001161/0.001162, allocations: 50.7 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08879/0.08996, allocations: 46.62 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01177/0.1018, allocations: 13.35 MB / 386.5 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02298/0.1248, allocations: 19.32 MB / 405.8 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00323/0.1281, allocations: 126.9 kB / 406 MB, free: 408 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003277/0.1314, allocations: 1.093 MB / 407 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007568/0.139, allocations: 2.231 MB / 409.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004457/0.1435, allocations: 1.369 MB / 410.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009519/0.1531, allocations: 6.223 MB / 416.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009711/0.1541, allocations: 432.4 kB / 417.3 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001394/0.1555, allocations: 0.9486 MB / 418.2 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.1565, allocations: 1.029 MB / 419.3 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.1567, allocations: 76 kB / 419.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003333/0.16, allocations: 1.156 MB / 420.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002928/0.1603, allocations: 305.8 kB / 420.8 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001165/0.1615, allocations: 1.304 MB / 422.1 MB, free: 148 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004307/0.1658, allocations: 3.666 MB / 425.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1658, allocations: 0 / 425.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1658, allocations: 0 / 425.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.785e-05/0.1659, allocations: 0 / 425.8 MB, free: 12.46 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.004928/0.1708, allocations: 3.521 MB / 429.3 MB, free: 8.871 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.1709, allocations: 16.02 kB / 429.3 MB, free: 8.855 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004298/0.1713, allocations: 375.4 kB / 429.7 MB, free: 8.484 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003573/0.1749, allocations: 2.513 MB / 432.2 MB, free: 5.895 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.1749, allocations: 32.94 kB / 432.2 MB, free: 5.859 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.1751, allocations: 59.83 kB / 432.3 MB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.1764, allocations: 0.6992 MB / 433 MB, free: 5.094 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.1765, allocations: 4 kB / 433 MB, free: 5.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.069e-05/0.1765, allocations: 16 kB / 433 MB, free: 5.074 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.179e-05/0.1766, allocations: 19.98 kB / 433 MB, free: 5.055 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.1781, allocations: 0.789 MB / 433.8 MB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005278/0.1834, allocations: 2.884 MB / 436.7 MB, free: 1.316 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.1847, allocations: 0.7169 MB / 437.4 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.1858, allocations: 0.651 MB / 438.1 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2026/0.3883, allocations: 30.13 MB / 468.2 MB, free: 61.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006976/0.3891, allocations: 371.4 kB / 468.6 MB, free: 61.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.325e-06/0.3891, allocations: 0 / 468.6 MB, free: 61.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002992/0.3921, allocations: 1.394 MB / 469.9 MB, free: 60.78 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.882e-05/0.3921, allocations: 64.31 kB / 470 MB, free: 60.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003166/0.3953, allocations: 2.822 MB / 472.8 MB, free: 59.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.52e-05/0.3954, allocations: 36.44 kB / 472.9 MB, free: 59.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008592/0.3963, allocations: 1.386 MB / 474.3 MB, free: 57.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.3964, allocations: 165.2 kB / 474.4 MB, free: 57.83 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000275/0.3967, allocations: 229.4 kB / 474.6 MB, free: 57.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.305e-05/0.3967, allocations: 338.4 kB / 475 MB, free: 57.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005676/0.3973, allocations: 235 kB / 475.2 MB, free: 57.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006238/0.3979, allocations: 0.597 MB / 475.8 MB, free: 56.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.3991, allocations: 0.8766 MB / 476.7 MB, free: 56.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.3991, allocations: 3.969 kB / 476.7 MB, free: 56.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001878/0.401, allocations: 1.288 MB / 478 MB, free: 55.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.401, allocations: 9 kB / 478 MB, free: 55.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.475e-05/0.4011, allocations: 86.8 kB / 478.1 MB, free: 55.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004675/0.4016, allocations: 274.1 kB / 478.3 MB, free: 55.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005209/0.4021, allocations: 169.2 kB / 478.5 MB, free: 55.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007197/0.4029, allocations: 0.8823 MB / 479.4 MB, free: 54.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008786/0.4038, allocations: 108.1 kB / 479.5 MB, free: 54.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.909e-05/0.4039, allocations: 65 kB / 479.5 MB, free: 54.57 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.0005577/0.4044, allocations: 427.4 kB / 480 MB, free: 54.26 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002451/0.4047, allocations: 369.6 kB / 480.3 MB, free: 54.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002437/0.4071, allocations: 1.273 MB / 481.6 MB, free: 53.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.4071, allocations: 7.5 kB / 481.6 MB, free: 53.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4071, allocations: 0 / 481.6 MB, free: 53.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.4072, allocations: 3.938 kB / 481.6 MB, free: 53.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003096/0.4103, allocations: 2.206 MB / 483.8 MB, free: 52.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.828e-05/0.4104, allocations: 71.22 kB / 483.9 MB, free: 52.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003075/0.4107, allocations: 61.47 kB / 483.9 MB, free: 52.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003909/0.4111, allocations: 263.9 kB / 484.2 MB, free: 51.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.802e-05/0.4111, allocations: 35.98 kB / 484.2 MB, free: 51.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006672/0.4118, allocations: 0.8719 MB / 485.1 MB, free: 50.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4118, allocations: 3.844 kB / 485.1 MB, free: 50.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/0.4134, allocations: 1.14 MB / 486.2 MB, free: 49.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006341/0.414, allocations: 472.4 kB / 486.7 MB, free: 49.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000249/0.4143, allocations: 15.98 kB / 486.7 MB, free: 49.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006346/0.4149, allocations: 23.97 kB / 486.7 MB, free: 49.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.4151, allocations: 67.88 kB / 486.8 MB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.817e-05/0.4151, allocations: 36 kB / 486.9 MB, free: 49.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001811/0.417, allocations: 1.832 MB / 488.7 MB, free: 47.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.417, allocations: 0 / 488.7 MB, free: 47.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001176/0.4182, allocations: 0.5805 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.0008993/0.4191, allocations: 0.7803 MB / 490 MB, free: 46.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.4206, allocations: 0.8518 MB / 490.9 MB, free: 45.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4207, allocations: 4 kB / 490.9 MB, free: 45.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007864/0.4215, allocations: 497.9 kB / 491.4 MB, free: 44.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001551/0.423, allocations: 0.5031 MB / 491.9 MB, free: 44.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003904/0.4269, allocations: 3.914 MB / 495.8 MB, free: 40.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006776/0.4276, allocations: 1.612 MB / 497.4 MB, free: 38.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008703/0.4285, allocations: 394.2 kB / 497.8 MB, free: 38.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001832/0.4287, allocations: 167.4 kB / 498 MB, free: 38.04 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4287, allocations: 0 / 498 MB, free: 38.04 MB / 382.1 MB Notification: Performance of Templates: time 0.04441/0.4731, allocations: 33.51 MB / 0.519 GB, free: 4.488 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)