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.00119/0.00119, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001303/0.001302, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.607/1.607, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0004685/0.0004687, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2725, allocations: 47.58 MB / 326.4 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.0177/0.2903, allocations: 10.74 MB / 337.2 MB, free: 8.773 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.03892/0.3293, allocations: 16.64 MB / 353.8 MB, free: 8.086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003975/0.3333, allocations: 63.5 kB / 353.9 MB, free: 8.023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004768/0.3381, allocations: 0.8669 MB / 354.7 MB, free: 7.152 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008123/0.3463, allocations: 2.033 MB / 356.8 MB, free: 5.113 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005036/0.3514, allocations: 1.141 MB / 357.9 MB, free: 3.969 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01177/0.3632, allocations: 5.998 MB / 363.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001112/0.3644, allocations: 403.2 kB / 364.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001603/0.366, allocations: 0.7773 MB / 365.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001661/0.3677, allocations: 0.9397 MB / 366 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004141/0.3681, allocations: 40 kB / 366.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005322/0.3734, allocations: 1.214 MB / 367.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004431/0.3739, allocations: 258 kB / 367.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001041/0.375, allocations: 0.6014 MB / 368.1 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002961/0.3779, allocations: 2.533 MB / 370.7 MB, free: 7.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3779, allocations: 4 kB / 370.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3779, allocations: 0 / 370.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.17e-05/0.378, allocations: 0 / 370.7 MB, free: 7.152 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.005148/0.3832, allocations: 3.104 MB / 373.8 MB, free: 3.977 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.3832, allocations: 8.031 kB / 373.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003766/0.3836, allocations: 375.5 kB / 374.1 MB, free: 3.598 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003664/0.3873, allocations: 2.364 MB / 376.5 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.172e-05/0.3874, allocations: 33 kB / 376.5 MB, free: 1.129 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.3875, allocations: 59.88 kB / 376.6 MB, free: 1.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.3888, allocations: 0.7109 MB / 377.3 MB, free: 364 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.3888, allocations: 0 / 377.3 MB, free: 364 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.263e-05/0.3889, allocations: 23.98 kB / 377.3 MB, free: 340 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.3889, allocations: 16 kB / 377.3 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.3904, allocations: 0.828 MB / 378.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00455/0.3949, allocations: 2.897 MB / 381.1 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.3962, allocations: 0.7366 MB / 381.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02898/0.4251, allocations: 30.32 MB / 412.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007314/0.4259, allocations: 385.6 kB / 412.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.066e-06/0.4259, allocations: 0 / 412.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003165/0.4291, allocations: 1.443 MB / 414 MB, free: 7.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.4292, allocations: 59.41 kB / 414 MB, free: 7.398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003221/0.4324, allocations: 2.785 MB / 416.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.115e-05/0.4325, allocations: 33.7 kB / 416.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.4336, allocations: 1.395 MB / 418.2 MB, free: 3.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.4338, allocations: 161.7 kB / 418.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.179e-05/0.4339, allocations: 16 kB / 418.4 MB, free: 2.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.434, allocations: 345.9 kB / 418.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005804/0.4346, allocations: 257.9 kB / 419 MB, free: 2.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007993/0.4354, allocations: 0.5969 MB / 419.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006871/0.4361, allocations: 340.1 kB / 419.9 MB, free: 1.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.4361, allocations: 4 kB / 419.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002499/0.4386, allocations: 1.311 MB / 421.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.4387, allocations: 12 kB / 421.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/0.4388, allocations: 83.98 kB / 421.3 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005649/0.4394, allocations: 280.8 kB / 421.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005811/0.44, allocations: 175.7 kB / 421.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009214/0.4409, allocations: 0.8763 MB / 422.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009844/0.4419, allocations: 135 kB / 422.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.442, allocations: 67.94 kB / 422.8 MB, free: 14.32 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 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0008179/0.4428, allocations: 413.5 kB / 423.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000383/0.4432, allocations: 367.6 kB / 423.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003103/0.4463, allocations: 1.341 MB / 424.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.4464, allocations: 4 kB / 425 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.4464, allocations: 0 / 425 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.4464, allocations: 3.984 kB / 425 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003517/0.4499, allocations: 2.225 MB / 427.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.793e-05/0.45, allocations: 67.98 kB / 427.2 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.4504, allocations: 76.02 kB / 427.3 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004509/0.4508, allocations: 268.7 kB / 427.6 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.491e-05/0.4509, allocations: 31.98 kB / 427.6 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008221/0.4517, allocations: 0.8607 MB / 428.5 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.4517, allocations: 0 / 428.5 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001933/0.4537, allocations: 1.286 MB / 429.8 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007645/0.4544, allocations: 452.5 kB / 430.2 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/0.4547, allocations: 15.95 kB / 430.2 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006424/0.4554, allocations: 43.95 kB / 430.3 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.4555, allocations: 63.94 kB / 430.3 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-05/0.4556, allocations: 39.98 kB / 430.4 MB, free: 6.551 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002338/0.458, allocations: 1.805 MB / 432.2 MB, free: 4.742 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.458, allocations: 0 / 432.2 MB, free: 4.742 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001375/0.4594, allocations: 0.5738 MB / 432.7 MB, free: 4.168 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00101/0.4604, allocations: 0.742 MB / 433.5 MB, free: 3.418 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001872/0.4623, allocations: 0.8812 MB / 434.4 MB, free: 2.512 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.4623, allocations: 0 / 434.4 MB, free: 2.512 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009036/0.4632, allocations: 0.5047 MB / 434.9 MB, free: 1.984 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001468/0.4647, allocations: 489.6 kB / 435.3 MB, free: 1.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005791/0.4705, allocations: 4.443 MB / 439.8 MB, free: 13 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/0.4716, allocations: 1.664 MB / 441.5 MB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001291/0.4729, allocations: 399 kB / 441.8 MB, free: 10.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002104/0.4731, allocations: 163.4 kB / 442 MB, free: 10.76 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4731, allocations: 0 / 442 MB, free: 10.76 MB / 382.1 MB Notification: Performance of Templates: time 0.2014/0.6745, allocations: 30.27 MB / 472.3 MB, free: 104.7 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: