Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001199/0.001199, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.729/1.729, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.001419/0.001419, allocations: 47.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3593/0.3607, allocations: 46.62 MB / 324.8 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006674/0.3674, allocations: 4.064 MB / 328.9 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002966/0.3704, allocations: 1.113 MB / 330 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008742/0.3713, allocations: 9.5 kB / 330 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005018/0.3719, allocations: 67.23 kB / 330.1 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009449/0.3729, allocations: 140.7 kB / 330.2 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009204/0.3738, allocations: 250.4 kB / 330.5 MB, free: 13.36 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001738/0.3756, allocations: 0.9636 MB / 331.4 MB, free: 12.77 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005104/0.3761, allocations: 274.7 kB / 331.7 MB, free: 12.62 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005089/0.3766, allocations: 373.9 kB / 332.1 MB, free: 12.39 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004934/0.3771, allocations: 445.8 kB / 332.5 MB, free: 12.06 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001696/0.3773, allocations: 118.3 kB / 332.6 MB, free: 12.05 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002027/0.3775, allocations: 113.3 kB / 332.7 MB, free: 12.05 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.3777, allocations: 206.9 kB / 332.9 MB, free: 11.87 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004453/0.3782, allocations: 418.1 kB / 333.3 MB, free: 11.56 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.3792, allocations: 1.129 MB / 334.5 MB, free: 10.44 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3792, allocations: 0 / 334.5 MB, free: 10.44 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3792, allocations: 0 / 334.5 MB, free: 10.44 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.3792, allocations: 0 / 334.5 MB, free: 10.44 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00269/0.3819, allocations: 1.188 MB / 335.7 MB, free: 9.188 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.382, allocations: 8.031 kB / 335.7 MB, free: 9.18 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.3821, allocations: 76.09 kB / 335.7 MB, free: 9.105 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005364/0.3827, allocations: 441.7 kB / 336.2 MB, free: 8.633 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.905e-05/0.3827, allocations: 41.69 kB / 336.2 MB, free: 8.594 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.3828, allocations: 56.36 kB / 336.3 MB, free: 8.539 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002024/0.3849, allocations: 0.9329 MB / 337.2 MB, free: 7.539 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.3849, allocations: 3.938 kB / 337.2 MB, free: 7.535 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-05/0.385, allocations: 24 kB / 337.2 MB, free: 7.512 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.385, allocations: 15.98 kB / 337.2 MB, free: 7.496 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002636/0.3876, allocations: 0.9718 MB / 338.2 MB, free: 6.527 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004288/0.3919, allocations: 3.059 MB / 341.3 MB, free: 3.336 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002147/0.3941, allocations: 0.9095 MB / 342.2 MB, free: 2.379 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.3952, allocations: 437.9 kB / 342.6 MB, free: 1.949 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.52e-05/0.3953, allocations: 16.42 kB / 342.6 MB, free: 1.934 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001223/0.3965, allocations: 465 kB / 343.1 MB, free: 1.465 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.395e-06/0.3965, allocations: 0 / 343.1 MB, free: 1.465 MB / 270.1 MB Notification: Performance of matching and sorting (n=50): time 0.002982/0.3995, allocations: 1.076 MB / 344.2 MB, free: 392 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001695/0.3997, allocations: 281.4 kB / 344.4 MB, free: 44 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006904/0.4004, allocations: 0.5056 MB / 344.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.835e-05/0.4004, allocations: 37.7 kB / 345 MB, free: 15.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.4007, allocations: 335.6 kB / 345.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.4009, allocations: 165.6 kB / 345.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002565/0.4011, allocations: 142.5 kB / 345.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.4013, allocations: 370.8 kB / 346 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/0.4024, allocations: 401.7 kB / 346.4 MB, free: 14.08 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001291/0.4037, allocations: 0.6544 MB / 347 MB, free: 13.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002099/0.4058, allocations: 0.9701 MB / 348 MB, free: 12.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.4058, allocations: 4 kB / 348 MB, free: 12.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002582/0.4084, allocations: 1.126 MB / 349.1 MB, free: 11.1 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.023e-05/0.4085, allocations: 67.47 kB / 349.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.4085, allocations: 4 kB / 349.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.448e-05/0.4085, allocations: 12 kB / 349.2 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009702/0.4095, allocations: 223.6 kB / 349.4 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.732e-05/0.4095, allocations: 12 kB / 349.4 MB, free: 10.78 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.4106, allocations: 179.1 kB / 349.6 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.504e-05/0.4106, allocations: 32 kB / 349.6 MB, free: 10.57 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003294/0.411, allocations: 213.6 kB / 349.8 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.577e-05/0.4111, allocations: 55.34 kB / 349.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001383/0.4112, allocations: 65.59 kB / 350 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.4112, allocations: 15.91 kB / 350 MB, free: 10.22 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.4112, allocations: 0 / 350 MB, free: 10.22 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.4113, allocations: 4 kB / 350 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00307/0.4143, allocations: 1.657 MB / 351.6 MB, free: 8.5 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.4144, allocations: 0 / 351.6 MB, free: 8.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007535/0.4151, allocations: 143.8 kB / 351.8 MB, free: 8.359 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-06/0.4151, allocations: 8 kB / 351.8 MB, free: 8.352 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.685e-05/0.4152, allocations: 8 kB / 351.8 MB, free: 8.344 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.89e-06/0.4152, allocations: 3.984 kB / 351.8 MB, free: 8.34 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4152, allocations: 0 / 351.8 MB, free: 8.34 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00306/0.4183, allocations: 1.294 MB / 353.1 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.4184, allocations: 140.3 kB / 353.2 MB, free: 6.875 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.4185, allocations: 15.98 kB / 353.2 MB, free: 6.859 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007158/0.4192, allocations: 103.9 kB / 353.3 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.4194, allocations: 48.38 kB / 353.4 MB, free: 6.711 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.961e-05/0.4195, allocations: 12 kB / 353.4 MB, free: 6.699 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004915/0.4199, allocations: 354.8 kB / 353.7 MB, free: 6.355 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.42, allocations: 0 / 353.7 MB, free: 6.355 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006516/0.4206, allocations: 167.8 kB / 353.9 MB, free: 6.191 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001891/0.4208, allocations: 122.1 kB / 354 MB, free: 6.062 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002466/0.4233, allocations: 1.008 MB / 355 MB, free: 5.023 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4233, allocations: 4 kB / 355 MB, free: 5.02 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009962/0.4243, allocations: 415 kB / 355.4 MB, free: 4.613 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000576/0.4249, allocations: 105.8 kB / 355.6 MB, free: 4.508 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.4273, allocations: 1.395 MB / 356.9 MB, free: 3.086 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.4277, allocations: 0.8627 MB / 357.8 MB, free: 2.199 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003957/0.4281, allocations: 76.66 kB / 357.9 MB, free: 2.121 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002028/0.4283, allocations: 51.42 kB / 357.9 MB, free: 2.07 MB / 286.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4283, allocations: 0 / 357.9 MB, free: 2.07 MB / 286.1 MB Notification: Performance of Templates: time 0.01286/0.4412, allocations: 7.813 MB / 365.7 MB, free: 10.25 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)