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.001605/0.001605, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001911/0.001911, allocations: 191.1 kB / 16.67 MB, free: 6.543 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.456/1.456, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.001168/0.001168, allocations: 46.44 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.083/0.08419, allocations: 46.62 MB / 373.1 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01162/0.09584, allocations: 13.35 MB / 386.5 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02148/0.1173, allocations: 19.32 MB / 405.8 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002487/0.1199, allocations: 126.9 kB / 405.9 MB, free: 412 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003014/0.123, allocations: 1.1 MB / 407 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006564/0.1295, allocations: 2.258 MB / 409.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00388/0.1334, allocations: 1.377 MB / 410.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009917/0.1434, allocations: 6.219 MB / 416.9 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007018/0.1441, allocations: 440.4 kB / 417.3 MB, free: 4.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001204/0.1453, allocations: 0.9681 MB / 418.3 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.1463, allocations: 1.036 MB / 419.3 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.1465, allocations: 68 kB / 419.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00338/0.1499, allocations: 1.152 MB / 420.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002687/0.1502, allocations: 305.8 kB / 420.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.1512, allocations: 1.304 MB / 422.2 MB, free: 88 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004198/0.1554, allocations: 3.69 MB / 425.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1555, allocations: 0 / 425.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1555, allocations: 0 / 425.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.519e-05/0.1555, allocations: 0 / 425.8 MB, free: 12.38 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.004729/0.1603, allocations: 3.649 MB / 429.5 MB, free: 8.656 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.1603, allocations: 8.031 kB / 429.5 MB, free: 8.648 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003635/0.1607, allocations: 393.6 kB / 429.9 MB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003235/0.1639, allocations: 2.548 MB / 432.4 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.023e-05/0.164, allocations: 36.94 kB / 432.5 MB, free: 5.602 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.1641, allocations: 47.95 kB / 432.5 MB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.1654, allocations: 0.707 MB / 433.2 MB, free: 4.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.1654, allocations: 3.984 kB / 433.2 MB, free: 4.836 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.676e-05/0.1655, allocations: 16 kB / 433.2 MB, free: 4.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.3e-05/0.1655, allocations: 19.98 kB / 433.3 MB, free: 4.801 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00157/0.1671, allocations: 0.7928 MB / 434.1 MB, free: 4.012 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004706/0.1718, allocations: 2.9 MB / 437 MB, free: 1.043 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.1732, allocations: 0.7092 MB / 437.7 MB, free: 308 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.1743, allocations: 0.647 MB / 438.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1957/0.3699, allocations: 30.14 MB / 468.5 MB, free: 61.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006955/0.3706, allocations: 368.9 kB / 468.8 MB, free: 60.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.364e-06/0.3707, allocations: 0 / 468.8 MB, free: 60.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003108/0.3738, allocations: 1.42 MB / 470.2 MB, free: 60.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.3738, allocations: 60.78 kB / 470.3 MB, free: 60.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003478/0.3773, allocations: 2.821 MB / 473.1 MB, free: 58.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.362e-05/0.3774, allocations: 32.52 kB / 473.1 MB, free: 58.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009108/0.3783, allocations: 1.4 MB / 474.5 MB, free: 57.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.3785, allocations: 174.8 kB / 474.7 MB, free: 57.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000287/0.3787, allocations: 229.1 kB / 474.9 MB, free: 57.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.111e-05/0.3788, allocations: 341.2 kB / 475.3 MB, free: 57.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005462/0.3794, allocations: 232 kB / 475.5 MB, free: 56.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000647/0.38, allocations: 0.5971 MB / 476.1 MB, free: 56.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.3812, allocations: 0.8784 MB / 477 MB, free: 55.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.3812, allocations: 3.938 kB / 477 MB, free: 55.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002063/0.3833, allocations: 1.298 MB / 478.3 MB, free: 55.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.3833, allocations: 14.22 kB / 478.3 MB, free: 55.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001024/0.3834, allocations: 78.78 kB / 478.4 MB, free: 55.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005449/0.384, allocations: 286.7 kB / 478.6 MB, free: 55.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005504/0.3845, allocations: 165.8 kB / 478.8 MB, free: 54.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007626/0.3853, allocations: 0.8832 MB / 479.7 MB, free: 54.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009004/0.3862, allocations: 113.1 kB / 479.8 MB, free: 54.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-05/0.3863, allocations: 58.94 kB / 479.9 MB, free: 54.27 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.0005588/0.3869, allocations: 434.1 kB / 480.3 MB, free: 53.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002477/0.3871, allocations: 382.7 kB / 480.7 MB, free: 53.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002515/0.3897, allocations: 1.281 MB / 481.9 MB, free: 53.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.3897, allocations: 6.156 kB / 481.9 MB, free: 53.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3897, allocations: 7.391 kB / 482 MB, free: 53.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3897, allocations: 4.875 kB / 482 MB, free: 53.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002964/0.3927, allocations: 2.199 MB / 484.2 MB, free: 51.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.982e-05/0.3928, allocations: 72.94 kB / 484.2 MB, free: 51.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003041/0.3931, allocations: 64.56 kB / 484.3 MB, free: 51.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004135/0.3935, allocations: 262.6 kB / 484.5 MB, free: 51.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-05/0.3936, allocations: 35.98 kB / 484.6 MB, free: 51.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006888/0.3943, allocations: 0.8606 MB / 485.4 MB, free: 50.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3943, allocations: 3.938 kB / 485.4 MB, free: 50.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.3959, allocations: 1.162 MB / 486.6 MB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005526/0.3964, allocations: 484.8 kB / 487.1 MB, free: 48.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002762/0.3967, allocations: 17.84 kB / 487.1 MB, free: 48.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006473/0.3974, allocations: 27.97 kB / 487.1 MB, free: 48.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.3975, allocations: 59.95 kB / 487.2 MB, free: 48.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.583e-05/0.3976, allocations: 43.98 kB / 487.2 MB, free: 48.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002026/0.3996, allocations: 1.836 MB / 489.1 MB, free: 46.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3996, allocations: 0 / 489.1 MB, free: 46.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00133/0.401, allocations: 0.5756 MB / 489.6 MB, free: 46.43 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.0008772/0.4019, allocations: 0.7824 MB / 490.4 MB, free: 45.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.4035, allocations: 0.8497 MB / 491.3 MB, free: 44.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.4035, allocations: 1 kB / 491.3 MB, free: 44.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008066/0.4043, allocations: 0.4936 MB / 491.8 MB, free: 44.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001573/0.4059, allocations: 0.4977 MB / 492.3 MB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004483/0.4104, allocations: 4.015 MB / 496.3 MB, free: 39.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006732/0.4111, allocations: 1.604 MB / 497.9 MB, free: 38.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009098/0.412, allocations: 399.5 kB / 498.3 MB, free: 37.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/0.4122, allocations: 159.4 kB / 498.4 MB, free: 37.66 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4122, allocations: 0 / 498.4 MB, free: 37.66 MB / 382.1 MB Notification: Performance of Templates: time 0.04452/0.4567, allocations: 33.51 MB / 0.5195 GB, free: 4.105 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)