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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.001415/0.001414, allocations: 156.1 kB / 7.633 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.289/1.289, allocations: 170.7 MB / 178.7 MB, free: 7.035 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00178/0.00178, allocations: 101.2 kB / 218 MB, free: 15.34 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.027e-05/2.029e-05, allocations: 4 kB / 262.2 MB, free: 3.07 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2335, allocations: 38.77 MB / 301 MB, free: 39.17 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07815/0.3117, allocations: 69.32 MB / 370.3 MB, free: 10.33 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001672/0.3119, allocations: 71.97 kB / 370.4 MB, free: 10.26 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02697/0.3389, allocations: 10.22 MB / 380.6 MB, free: 100 kB / 282.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.339, allocations: 4 kB / 380.6 MB, free: 96 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.871e-05/0.339, allocations: 16 kB / 380.6 MB, free: 80 kB / 282.7 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.002395/0.3414, allocations: 1.073 MB / 381.7 MB, free: 14.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.3414, allocations: 8.688 kB / 381.7 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001988/0.3417, allocations: 76.28 kB / 381.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005977/0.3423, allocations: 427.2 kB / 382.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.125e-05/0.3423, allocations: 31.97 kB / 382.2 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.3424, allocations: 36 kB / 382.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001009/0.3434, allocations: 0.5533 MB / 382.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.3445, allocations: 0.6502 MB / 383.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.3445, allocations: 0.5625 kB / 383.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.285e-05/0.3446, allocations: 4 kB / 383.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.707e-05/0.3446, allocations: 12 kB / 383.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004562/0.3492, allocations: 3.068 MB / 386.5 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.3503, allocations: 0.6647 MB / 387.2 MB, free: 9.156 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005283/0.3508, allocations: 289.4 kB / 387.5 MB, free: 8.875 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.07e-05/0.3509, allocations: 20.56 kB / 387.5 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005248/0.3514, allocations: 312.4 kB / 387.8 MB, free: 8.535 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.645e-06/0.3514, allocations: 0 / 387.8 MB, free: 8.535 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008419/0.3523, allocations: 483.4 kB / 388.3 MB, free: 8.059 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.3524, allocations: 273.5 kB / 388.5 MB, free: 7.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004503/0.3529, allocations: 397.1 kB / 388.9 MB, free: 7.336 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.42e-05/0.3529, allocations: 37.7 kB / 389 MB, free: 7.293 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.3532, allocations: 336.9 kB / 389.3 MB, free: 6.961 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.3533, allocations: 161.7 kB / 389.5 MB, free: 6.801 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.3534, allocations: 0 / 389.5 MB, free: 6.801 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.3536, allocations: 362.7 kB / 389.8 MB, free: 6.438 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003847/0.354, allocations: 241.5 kB / 390 MB, free: 6.199 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005169/0.3545, allocations: 485.6 kB / 390.5 MB, free: 5.617 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004041/0.3549, allocations: 258.8 kB / 390.8 MB, free: 5.367 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.3549, allocations: 0 / 390.8 MB, free: 5.367 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001092/0.356, allocations: 0.7058 MB / 391.5 MB, free: 4.652 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.084e-05/0.3561, allocations: 63.41 kB / 391.5 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.3561, allocations: 12.06 kB / 391.5 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.3561, allocations: 11.94 kB / 391.6 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.3572, allocations: 247.6 kB / 391.8 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.83e-05/0.3572, allocations: 17.58 kB / 391.8 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.3582, allocations: 203.1 kB / 392 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.108e-05/0.3583, allocations: 33.48 kB / 392.1 MB, free: 4.066 MB / 298.7 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 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001836/0.3585, allocations: 148.7 kB / 392.2 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.386e-05/0.3586, allocations: 51.34 kB / 392.2 MB, free: 3.863 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001872/0.3588, allocations: 61.28 kB / 392.3 MB, free: 3.809 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3588, allocations: 4 kB / 392.3 MB, free: 3.805 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.3588, allocations: 0 / 392.3 MB, free: 3.805 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3588, allocations: 0 / 392.3 MB, free: 3.805 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0018/0.3606, allocations: 1.291 MB / 393.6 MB, free: 2.473 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3606, allocations: 1.688 kB / 393.6 MB, free: 2.473 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000809/0.3615, allocations: 171.8 kB / 393.8 MB, free: 2.305 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.226e-06/0.3615, allocations: 8 kB / 393.8 MB, free: 2.297 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/0.3615, allocations: 11.98 kB / 393.8 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.3615, allocations: 7.891 kB / 393.8 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3616, allocations: 0 / 393.8 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.3629, allocations: 0.8575 MB / 394.7 MB, free: 1.402 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/0.363, allocations: 132.3 kB / 394.8 MB, free: 1.254 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.3631, allocations: 10.16 kB / 394.8 MB, free: 1.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008106/0.364, allocations: 131.9 kB / 394.9 MB, free: 1.117 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.3641, allocations: 56.31 kB / 395 MB, free: 1.062 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.4e-05/0.3642, allocations: 19.98 kB / 395 MB, free: 1.043 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003452/0.3645, allocations: 299 kB / 395.3 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3645, allocations: 0 / 395.3 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006342/0.3652, allocations: 147.7 kB / 395.4 MB, free: 0.6094 MB / 298.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002102/0.3654, allocations: 116.5 kB / 395.5 MB, free: 496 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.3664, allocations: 0.6792 MB / 396.2 MB, free: 15.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3664, allocations: 4.625 kB / 396.2 MB, free: 15.78 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004279/0.3669, allocations: 269.6 kB / 396.5 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.3673, allocations: 55.84 kB / 396.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.3689, allocations: 0.8165 MB / 397.4 MB, free: 14.63 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004155/0.3693, allocations: 0.8775 MB / 398.2 MB, free: 13.72 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004348/0.3698, allocations: 80.53 kB / 398.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.37, allocations: 47.42 kB / 398.4 MB, free: 13.59 MB / 314.7 MB Notification: Performance of SimCode: time 2.485e-06/0.37, allocations: 0 / 398.4 MB, free: 13.59 MB / 314.7 MB Notification: Performance of Templates: time 0.01187/0.3819, allocations: 6.5 MB / 404.9 MB, free: 7.184 MB / 314.7 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)