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.001137/0.001137, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001262/0.001262, allocations: 199.2 kB / 16.14 MB, free: 6.707 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.347/1.347, allocations: 205.1 MB / 222 MB, free: 4.996 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.001158/0.001158, allocations: 56.34 kB / 278.1 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2002/0.2014, allocations: 46.62 MB / 324.7 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01105/0.2125, allocations: 13.24 MB / 337.9 MB, free: 7.02 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02082/0.2333, allocations: 19.5 MB / 357.4 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0028/0.2362, allocations: 63.5 kB / 357.5 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002701/0.2389, allocations: 0.9478 MB / 358.4 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007252/0.2462, allocations: 1.872 MB / 360.3 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004051/0.2503, allocations: 1.141 MB / 361.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009285/0.2596, allocations: 6.113 MB / 367.5 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005975/0.2602, allocations: 404.8 kB / 367.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.2614, allocations: 0.9133 MB / 368.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000816/0.2622, allocations: 1.005 MB / 369.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001655/0.2624, allocations: 48 kB / 369.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003233/0.2656, allocations: 1.128 MB / 371 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002764/0.2659, allocations: 285.7 kB / 371.3 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001145/0.267, allocations: 1.285 MB / 372.6 MB, free: 4.164 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003988/0.271, allocations: 3.572 MB / 376.2 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2711, allocations: 0 / 376.2 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2711, allocations: 0 / 376.2 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.172e-05/0.2711, allocations: 4 kB / 376.2 MB, free: 0.5742 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.004575/0.2757, allocations: 3.525 MB / 379.7 MB, free: 12.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.2757, allocations: 8.031 kB / 379.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004084/0.2762, allocations: 375.4 kB / 380.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003257/0.2794, allocations: 2.544 MB / 382.6 MB, free: 9.969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.727e-05/0.2795, allocations: 36.92 kB / 382.7 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.2796, allocations: 52 kB / 382.7 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.2808, allocations: 0.6992 MB / 383.4 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.2808, allocations: 0 / 383.4 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.401e-05/0.2809, allocations: 16 kB / 383.4 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.2809, allocations: 19.98 kB / 383.4 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.2824, allocations: 0.7929 MB / 384.2 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004135/0.2865, allocations: 2.908 MB / 387.1 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.2877, allocations: 0.6938 MB / 387.8 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009465/0.2887, allocations: 0.6509 MB / 388.5 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02654/0.3152, allocations: 30.16 MB / 418.6 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007583/0.316, allocations: 357.7 kB / 419 MB, free: 1.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.114e-06/0.316, allocations: 0 / 419 MB, free: 1.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002911/0.319, allocations: 1.403 MB / 420.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.319, allocations: 63.28 kB / 420.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002946/0.322, allocations: 2.816 MB / 423.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.725e-05/0.322, allocations: 33.7 kB / 423.3 MB, free: 12.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001029/0.3231, allocations: 1.395 MB / 424.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.3232, allocations: 169.7 kB / 424.9 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002589/0.3235, allocations: 222.1 kB / 425.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.3236, allocations: 341.9 kB / 425.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005457/0.3242, allocations: 237.9 kB / 425.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007362/0.3249, allocations: 0.593 MB / 426.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.3262, allocations: 0.8763 MB / 427.1 MB, free: 8.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.3262, allocations: 4 kB / 427.1 MB, free: 8.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002/0.3282, allocations: 1.287 MB / 428.4 MB, free: 7.516 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3283, allocations: 12 kB / 428.4 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.594e-05/0.3284, allocations: 80 kB / 428.5 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005148/0.3289, allocations: 277.3 kB / 428.8 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005429/0.3294, allocations: 171.7 kB / 428.9 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008475/0.3303, allocations: 0.8803 MB / 429.8 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008338/0.3311, allocations: 103.1 kB / 429.9 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.3313, allocations: 64 kB / 430 MB, free: 5.914 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.000804/0.3321, allocations: 429.5 kB / 430.4 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004932/0.3326, allocations: 371.5 kB / 430.8 MB, free: 5.117 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003363/0.336, allocations: 1.275 MB / 432 MB, free: 3.824 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.934e-06/0.336, allocations: 7.938 kB / 432 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.336, allocations: 0 / 432 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.336, allocations: 3.984 kB / 432.1 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003222/0.3392, allocations: 2.209 MB / 434.3 MB, free: 1.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.74e-05/0.3393, allocations: 71.94 kB / 434.3 MB, free: 1.449 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002978/0.3396, allocations: 63.88 kB / 434.4 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004566/0.3401, allocations: 264.9 kB / 434.7 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.618e-05/0.3402, allocations: 35.98 kB / 434.7 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008272/0.341, allocations: 0.8685 MB / 435.6 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.341, allocations: 0 / 435.6 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.3427, allocations: 1.129 MB / 436.7 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005899/0.3433, allocations: 476.3 kB / 437.1 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002803/0.3436, allocations: 15.98 kB / 437.2 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006426/0.3442, allocations: 27.97 kB / 437.2 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.3444, allocations: 59.94 kB / 437.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.225e-05/0.3445, allocations: 36 kB / 437.3 MB, free: 14.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002089/0.3466, allocations: 1.836 MB / 439.1 MB, free: 12.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3466, allocations: 0 / 439.1 MB, free: 12.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001213/0.3478, allocations: 0.5662 MB / 439.7 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.001048/0.3488, allocations: 0.789 MB / 440.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.3505, allocations: 0.8465 MB / 441.3 MB, free: 10.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3505, allocations: 0 / 441.3 MB, free: 10.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008761/0.3514, allocations: 0.496 MB / 441.8 MB, free: 9.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.353, allocations: 482 kB / 442.3 MB, free: 9.328 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005381/0.3584, allocations: 4.732 MB / 447 MB, free: 4.551 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009383/0.3594, allocations: 1.609 MB / 448.6 MB, free: 2.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001147/0.3606, allocations: 395.1 kB / 449 MB, free: 2.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002104/0.3608, allocations: 159.4 kB / 449.2 MB, free: 2.363 MB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3608, allocations: 0 / 449.2 MB, free: 2.363 MB / 382.1 MB Notification: Performance of Templates: time 0.1856/0.5464, allocations: 32.25 MB / 481.4 MB, free: 94.32 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)