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.001144/0.001144, allocations: 109 kB / 17.06 MB, free: 5.812 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.001086/0.001087, allocations: 195 kB / 18 MB, free: 4.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.328/1.328, allocations: 205.1 MB / 223.9 MB, free: 12.25 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: 55.92 kB / 327.9 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09866/0.09988, allocations: 46.61 MB / 374.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1875/0.2875, allocations: 13.36 MB / 387.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0216/0.3091, allocations: 19.32 MB / 407.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00251/0.3117, allocations: 124.7 kB / 407.3 MB, free: 7.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003431/0.3151, allocations: 1.088 MB / 408.4 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009807/0.325, allocations: 2.23 MB / 410.6 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005454/0.3304, allocations: 1.378 MB / 412 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01059/0.3411, allocations: 6.218 MB / 418.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008808/0.342, allocations: 424.3 kB / 418.6 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001825/0.3438, allocations: 0.9809 MB / 419.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.3452, allocations: 1.031 MB / 420.6 MB, free: 448 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001796/0.3454, allocations: 70.12 kB / 420.7 MB, free: 448 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004755/0.3502, allocations: 1.158 MB / 421.8 MB, free: 104 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003736/0.3506, allocations: 307.1 kB / 422.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001922/0.3525, allocations: 1.308 MB / 423.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007074/0.3596, allocations: 3.658 MB / 427.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.3596, allocations: 0 / 427.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3596, allocations: 4 kB / 427.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.891e-05/0.3597, allocations: 0 / 427.1 MB, free: 10.86 MB / 350.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.005268/0.365, allocations: 3.518 MB / 430.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.365, allocations: 12.03 kB / 430.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004011/0.3654, allocations: 375.4 kB / 431 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003418/0.3689, allocations: 2.513 MB / 433.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.3689, allocations: 36.94 kB / 433.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.369, allocations: 55.89 kB / 433.6 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.3703, allocations: 0.7031 MB / 434.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3703, allocations: 3.984 kB / 434.3 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.3704, allocations: 16 kB / 434.3 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.223e-05/0.3704, allocations: 19.98 kB / 434.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00147/0.3719, allocations: 0.789 MB / 435.1 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004761/0.3767, allocations: 2.903 MB / 438 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001263/0.3779, allocations: 0.6991 MB / 438.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009737/0.3789, allocations: 0.6509 MB / 439.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02931/0.4082, allocations: 30.15 MB / 469.5 MB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007587/0.409, allocations: 368.1 kB / 469.9 MB, free: 11.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.434e-06/0.4091, allocations: 4 kB / 469.9 MB, free: 11.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003296/0.4124, allocations: 1.388 MB / 471.3 MB, free: 10.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.4124, allocations: 67.33 kB / 471.4 MB, free: 10.19 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003082/0.4155, allocations: 2.809 MB / 474.2 MB, free: 7.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.795e-05/0.4156, allocations: 45.62 kB / 474.2 MB, free: 7.309 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001051/0.4166, allocations: 1.387 MB / 475.6 MB, free: 5.914 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.4168, allocations: 169.7 kB / 475.8 MB, free: 5.746 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00028/0.4171, allocations: 234.1 kB / 476 MB, free: 5.512 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.4172, allocations: 334 kB / 476.3 MB, free: 5.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005663/0.4177, allocations: 233.9 kB / 476.6 MB, free: 4.949 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007669/0.4185, allocations: 0.593 MB / 477.1 MB, free: 4.184 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.4199, allocations: 0.8802 MB / 478 MB, free: 3.137 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.4199, allocations: 4 kB / 478 MB, free: 3.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002101/0.4221, allocations: 1.283 MB / 479.3 MB, free: 1.832 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.4221, allocations: 8 kB / 479.3 MB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001028/0.4222, allocations: 83.98 kB / 479.4 MB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005503/0.4227, allocations: 281 kB / 479.7 MB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000566/0.4233, allocations: 171.6 kB / 479.8 MB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009278/0.4243, allocations: 0.8802 MB / 480.7 MB, free: 400 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008481/0.4251, allocations: 111.1 kB / 480.8 MB, free: 288 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.4252, allocations: 64 kB / 480.9 MB, free: 224 kB / 398.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.000637/0.4259, allocations: 421.6 kB / 481.3 MB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003133/0.4262, allocations: 371.5 kB / 481.7 MB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002634/0.4288, allocations: 1.274 MB / 482.9 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.4289, allocations: 4 kB / 482.9 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.4289, allocations: 0 / 482.9 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4289, allocations: 0 / 482.9 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/0.4324, allocations: 2.209 MB / 485.2 MB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.094e-05/0.4325, allocations: 75.94 kB / 485.2 MB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003135/0.4328, allocations: 59.88 kB / 485.3 MB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004599/0.4333, allocations: 268.9 kB / 485.6 MB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.856e-05/0.4333, allocations: 35.98 kB / 485.6 MB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008266/0.4342, allocations: 0.8587 MB / 486.4 MB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.4342, allocations: 12.03 kB / 486.5 MB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.436, allocations: 1.125 MB / 487.6 MB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007615/0.4367, allocations: 476.3 kB / 488 MB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002315/0.437, allocations: 12 kB / 488.1 MB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006281/0.4376, allocations: 31.97 kB / 488.1 MB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.4378, allocations: 59.94 kB / 488.1 MB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-05/0.4378, allocations: 43.94 kB / 488.2 MB, free: 8.723 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002079/0.4399, allocations: 1.832 MB / 490 MB, free: 6.887 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4399, allocations: 0 / 490 MB, free: 6.887 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001208/0.4412, allocations: 0.5739 MB / 490.6 MB, free: 6.312 MB / 414.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.001037/0.4422, allocations: 0.785 MB / 491.4 MB, free: 5.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.4439, allocations: 0.8423 MB / 492.2 MB, free: 4.656 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/0.4439, allocations: 4.125 kB / 492.2 MB, free: 4.652 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009124/0.4449, allocations: 0.4962 MB / 492.7 MB, free: 4.133 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001528/0.4464, allocations: 0.506 MB / 493.2 MB, free: 3.625 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004947/0.4514, allocations: 3.921 MB / 497.2 MB, free: 15.65 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.4524, allocations: 1.608 MB / 498.8 MB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009513/0.4533, allocations: 391.1 kB / 499.1 MB, free: 13.63 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.4536, allocations: 171.4 kB / 499.3 MB, free: 13.46 MB / 430.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4536, allocations: 4 kB / 499.3 MB, free: 13.46 MB / 430.1 MB Notification: Performance of Templates: time 0.05371/0.5073, allocations: 34.18 MB / 0.521 GB, free: 11.22 MB / 462.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)