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.0008436/0.0008435, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005102/0.005102, allocations: 171.7 kB / 16.27 MB, free: 6.652 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.391/1.391, allocations: 205.4 MB / 222.4 MB, free: 5.574 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.0004752/0.0004752, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2114, allocations: 47.58 MB / 327 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01099/0.2224, allocations: 12.71 MB / 339.7 MB, free: 6.617 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02676/0.2493, allocations: 19.2 MB / 358.9 MB, free: 3.344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003486/0.2528, allocations: 67.44 kB / 359 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003319/0.2561, allocations: 0.9682 MB / 360 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007256/0.2634, allocations: 1.872 MB / 361.8 MB, free: 432 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00443/0.2679, allocations: 1.145 MB / 363 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009661/0.2775, allocations: 6.113 MB / 369.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007476/0.2783, allocations: 400.9 kB / 369.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001298/0.2796, allocations: 0.8976 MB / 370.4 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009975/0.2806, allocations: 0.9935 MB / 371.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001271/0.2808, allocations: 43.94 kB / 371.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003455/0.2842, allocations: 1.128 MB / 372.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002984/0.2846, allocations: 285.7 kB / 372.8 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001165/0.2857, allocations: 1.298 MB / 374.1 MB, free: 4.047 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003889/0.2896, allocations: 3.505 MB / 377.6 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.2896, allocations: 4 kB / 377.6 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2897, allocations: 0 / 377.6 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.173e-05/0.2897, allocations: 0 / 377.6 MB, free: 0.5234 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.004364/0.2941, allocations: 3.092 MB / 380.7 MB, free: 13.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.2941, allocations: 12.03 kB / 380.7 MB, free: 13.35 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004065/0.2945, allocations: 375.4 kB / 381.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003459/0.298, allocations: 2.536 MB / 383.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.734e-05/0.2981, allocations: 40.92 kB / 383.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.2982, allocations: 51.91 kB / 383.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.2995, allocations: 0.7226 MB / 384.5 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.2995, allocations: 0 / 384.5 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.697e-05/0.2996, allocations: 20 kB / 384.5 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.2996, allocations: 19.98 kB / 384.5 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.3012, allocations: 0.8281 MB / 385.3 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004782/0.306, allocations: 2.924 MB / 388.2 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.3073, allocations: 0.7484 MB / 389 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.3084, allocations: 0.6705 MB / 389.7 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02748/0.3359, allocations: 30.18 MB / 419.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007722/0.3367, allocations: 381.6 kB / 420.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 4.108e-06/0.3367, allocations: 4 kB / 420.2 MB, free: 1.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003346/0.34, allocations: 1.466 MB / 421.7 MB, free: 72 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.3401, allocations: 59.61 kB / 421.7 MB, free: 16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003401/0.3435, allocations: 2.816 MB / 424.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.874e-05/0.3436, allocations: 33.7 kB / 424.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001139/0.3447, allocations: 1.395 MB / 426 MB, free: 11.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.3449, allocations: 165.7 kB / 426.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.806e-05/0.345, allocations: 69.67 kB / 426.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.962e-05/0.3451, allocations: 338 kB / 426.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006064/0.3457, allocations: 261.9 kB / 426.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007897/0.3465, allocations: 0.6086 MB / 427.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.348, allocations: 0.9193 MB / 428.3 MB, free: 9.027 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.348, allocations: 4 kB / 428.3 MB, free: 9.023 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002427/0.3504, allocations: 1.33 MB / 429.7 MB, free: 7.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.3505, allocations: 12 kB / 429.7 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001144/0.3506, allocations: 83.98 kB / 429.8 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005873/0.3512, allocations: 276.7 kB / 430 MB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005913/0.3518, allocations: 179.7 kB / 430.2 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009275/0.3527, allocations: 0.8841 MB / 431.1 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.3538, allocations: 127 kB / 431.2 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.982e-05/0.3539, allocations: 60 kB / 431.3 MB, free: 6.039 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.000807/0.3547, allocations: 425.5 kB / 431.7 MB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003978/0.3551, allocations: 371.5 kB / 432.1 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003137/0.3582, allocations: 1.314 MB / 433.4 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.3583, allocations: 4 kB / 433.4 MB, free: 3.918 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.3583, allocations: 0 / 433.4 MB, free: 3.918 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3583, allocations: 4 kB / 433.4 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003553/0.3618, allocations: 2.24 MB / 435.6 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.05e-05/0.362, allocations: 71.94 kB / 435.7 MB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003329/0.3623, allocations: 76 kB / 435.8 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004757/0.3628, allocations: 264.8 kB / 436 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.241e-05/0.3629, allocations: 35.98 kB / 436.1 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008514/0.3637, allocations: 0.8645 MB / 436.9 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.3637, allocations: 4.031 kB / 436.9 MB, free: 256 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001931/0.3657, allocations: 1.172 MB / 438.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006575/0.3663, allocations: 460.4 kB / 438.5 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002475/0.3666, allocations: 23.92 kB / 438.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006559/0.3673, allocations: 39.97 kB / 438.6 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.3674, allocations: 59.94 kB / 438.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.527e-05/0.3675, allocations: 39.94 kB / 438.7 MB, free: 14.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002364/0.3699, allocations: 1.84 MB / 440.5 MB, free: 12.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3699, allocations: 0 / 440.5 MB, free: 12.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001347/0.3713, allocations: 0.57 MB / 441.1 MB, free: 11.99 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.001175/0.3724, allocations: 0.7696 MB / 441.9 MB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001934/0.3744, allocations: 0.893 MB / 442.8 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.3744, allocations: 3.938 kB / 442.8 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009465/0.3754, allocations: 0.5124 MB / 443.3 MB, free: 9.758 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002141/0.3775, allocations: 485.6 kB / 443.8 MB, free: 9.277 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006091/0.3836, allocations: 4.794 MB / 448.6 MB, free: 4.434 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.3847, allocations: 1.609 MB / 450.2 MB, free: 2.797 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001312/0.386, allocations: 395 kB / 450.6 MB, free: 2.406 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002273/0.3862, allocations: 163.4 kB / 450.7 MB, free: 2.246 MB / 382.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3862, allocations: 0 / 450.7 MB, free: 2.246 MB / 382.1 MB Notification: Performance of Templates: time 0.2031/0.5894, allocations: 32.15 MB / 482.9 MB, free: 93.53 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)