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.001156/0.001156, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001405/0.001405, allocations: 197.3 kB / 16.14 MB, free: 6.664 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.386/1.386, allocations: 205.1 MB / 222 MB, free: 4.742 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.001215/0.001215, allocations: 48.22 kB / 278 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.1944, allocations: 46.63 MB / 324.7 MB, free: 2.266 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01338/0.2079, allocations: 13.24 MB / 337.9 MB, free: 7.137 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02236/0.2303, allocations: 19.49 MB / 357.4 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003381/0.2337, allocations: 67.44 kB / 357.5 MB, free: 3.504 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003342/0.2371, allocations: 0.9479 MB / 358.4 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007206/0.2443, allocations: 1.872 MB / 360.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003998/0.2483, allocations: 1.149 MB / 361.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009497/0.2578, allocations: 6.109 MB / 367.5 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006749/0.2585, allocations: 408.9 kB / 367.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001205/0.2597, allocations: 0.9055 MB / 368.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009142/0.2607, allocations: 1.005 MB / 369.9 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001701/0.2609, allocations: 48 kB / 369.9 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003454/0.2643, allocations: 1.124 MB / 371 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002841/0.2646, allocations: 289.7 kB / 371.3 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00125/0.2659, allocations: 1.288 MB / 372.6 MB, free: 4.281 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004678/0.2706, allocations: 3.564 MB / 376.2 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2706, allocations: 0 / 376.2 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2706, allocations: 4 kB / 376.2 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.401e-05/0.2707, allocations: 0 / 376.2 MB, free: 0.6953 MB / 302.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.004876/0.2755, allocations: 3.525 MB / 379.7 MB, free: 13.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.2756, allocations: 12.02 kB / 379.7 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004684/0.2761, allocations: 379.4 kB / 380.1 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003629/0.2797, allocations: 2.536 MB / 382.6 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/0.2798, allocations: 44.94 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.2799, allocations: 44 kB / 382.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.2812, allocations: 0.7031 MB / 383.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.2812, allocations: 4 kB / 383.4 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.952e-05/0.2813, allocations: 20 kB / 383.4 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.717e-05/0.2813, allocations: 19.98 kB / 383.4 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.2828, allocations: 0.7889 MB / 384.2 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004848/0.2877, allocations: 2.9 MB / 387.1 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.2889, allocations: 0.6943 MB / 387.8 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009839/0.2899, allocations: 0.647 MB / 388.5 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02681/0.3168, allocations: 30.16 MB / 418.6 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007093/0.3175, allocations: 357.7 kB / 419 MB, free: 1.496 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/0.3175, allocations: 0 / 419 MB, free: 1.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003127/0.3206, allocations: 1.399 MB / 420.4 MB, free: 64 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.359e-05/0.3207, allocations: 75.2 kB / 420.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003972/0.3247, allocations: 2.812 MB / 423.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001238/0.3249, allocations: 41.7 kB / 423.3 MB, free: 13.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001121/0.326, allocations: 1.387 MB / 424.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/0.3262, allocations: 169.7 kB / 424.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003071/0.3265, allocations: 222.1 kB / 425.1 MB, free: 11.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.3266, allocations: 337.9 kB / 425.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005764/0.3272, allocations: 241.9 kB / 425.6 MB, free: 10.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007876/0.328, allocations: 0.5852 MB / 426.2 MB, free: 9.992 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/0.3294, allocations: 0.8841 MB / 427.1 MB, free: 8.938 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.3294, allocations: 8 kB / 427.1 MB, free: 8.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002295/0.3317, allocations: 1.283 MB / 428.4 MB, free: 7.633 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/0.3317, allocations: 8 kB / 428.4 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001297/0.3319, allocations: 80 kB / 428.5 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005689/0.3324, allocations: 289.2 kB / 428.8 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005521/0.333, allocations: 163.7 kB / 428.9 MB, free: 7.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00095/0.334, allocations: 0.8841 MB / 429.8 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/0.3352, allocations: 111 kB / 429.9 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.3353, allocations: 64 kB / 430 MB, free: 6.02 MB / 366.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.0008694/0.3361, allocations: 417.6 kB / 430.4 MB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004276/0.3366, allocations: 367.5 kB / 430.8 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003008/0.3396, allocations: 1.283 MB / 432 MB, free: 3.938 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.3396, allocations: 7.938 kB / 432 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3396, allocations: 0 / 432 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.3396, allocations: 3.984 kB / 432.1 MB, free: 3.926 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003465/0.3431, allocations: 2.197 MB / 434.3 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.504e-05/0.3432, allocations: 75.92 kB / 434.3 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000318/0.3436, allocations: 63.89 kB / 434.4 MB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004817/0.344, allocations: 260.9 kB / 434.6 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.609e-05/0.3441, allocations: 32 kB / 434.7 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008575/0.345, allocations: 0.8762 MB / 435.5 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.345, allocations: 0 / 435.5 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001831/0.3468, allocations: 1.133 MB / 436.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006552/0.3475, allocations: 476.4 kB / 437.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002783/0.3478, allocations: 8 kB / 437.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006754/0.3485, allocations: 35.95 kB / 437.2 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001845/0.3487, allocations: 51.95 kB / 437.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.161e-05/0.3487, allocations: 43.98 kB / 437.3 MB, free: 14.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002395/0.3511, allocations: 1.836 MB / 439.1 MB, free: 12.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3512, allocations: 0 / 439.1 MB, free: 12.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001349/0.3525, allocations: 0.5662 MB / 439.7 MB, free: 12.11 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.001088/0.3536, allocations: 0.7812 MB / 440.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001745/0.3554, allocations: 0.8501 MB / 441.3 MB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3554, allocations: 0 / 441.3 MB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000937/0.3563, allocations: 0.4886 MB / 441.8 MB, free: 9.934 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.3582, allocations: 482 kB / 442.3 MB, free: 9.457 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005628/0.3639, allocations: 4.732 MB / 447 MB, free: 4.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009338/0.3648, allocations: 1.613 MB / 448.6 MB, free: 3.035 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00127/0.3661, allocations: 395 kB / 449 MB, free: 2.645 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.3663, allocations: 163.4 kB / 449.2 MB, free: 2.484 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3664, allocations: 0 / 449.2 MB, free: 2.484 MB / 382.1 MB Notification: Performance of Templates: time 0.188/0.5543, allocations: 32.26 MB / 481.4 MB, free: 94.54 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)