Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001078/0.001078, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001169/0.00117, allocations: 172.7 kB / 15.95 MB, free: 208 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.604/1.604, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.0005075/0.0005079, allocations: 11.98 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2651, allocations: 47.58 MB / 326.5 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004171/0.2693, allocations: 3.464 MB / 329.9 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002607/0.272, allocations: 1.086 MB / 331 MB, free: 13.74 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003524/0.2723, allocations: 7.781 kB / 331 MB, free: 13.74 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002241/0.2726, allocations: 68.58 kB / 331.1 MB, free: 13.68 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003019/0.2729, allocations: 136 kB / 331.2 MB, free: 13.56 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005058/0.2734, allocations: 166.2 kB / 331.4 MB, free: 13.42 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008612/0.2743, allocations: 0.8424 MB / 332.2 MB, free: 12.89 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004533/0.2747, allocations: 206.3 kB / 332.4 MB, free: 12.77 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004738/0.2752, allocations: 298.6 kB / 332.7 MB, free: 12.61 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005309/0.2758, allocations: 364.5 kB / 333.1 MB, free: 12.36 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.2759, allocations: 48.38 kB / 333.1 MB, free: 12.36 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001317/0.276, allocations: 46.53 kB / 333.2 MB, free: 12.36 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.2762, allocations: 143.7 kB / 333.3 MB, free: 12.23 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002051/0.2764, allocations: 149.8 kB / 333.5 MB, free: 12.14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007937/0.2772, allocations: 0.868 MB / 334.3 MB, free: 11.45 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.2772, allocations: 0 / 334.3 MB, free: 11.45 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2772, allocations: 0 / 334.3 MB, free: 11.45 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.2773, allocations: 0 / 334.3 MB, free: 11.45 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.002596/0.2799, allocations: 1.164 MB / 335.5 MB, free: 10.38 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2799, allocations: 8.031 kB / 335.5 MB, free: 10.37 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001477/0.2801, allocations: 71.16 kB / 335.6 MB, free: 10.3 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005558/0.2806, allocations: 428.8 kB / 336 MB, free: 9.836 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.957e-05/0.2807, allocations: 49.2 kB / 336 MB, free: 9.785 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.17e-05/0.2808, allocations: 56 kB / 336.1 MB, free: 9.73 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.2828, allocations: 0.9994 MB / 337.1 MB, free: 8.668 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.2829, allocations: 4 kB / 337.1 MB, free: 8.664 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.576e-05/0.283, allocations: 24 kB / 337.1 MB, free: 8.641 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.283, allocations: 12 kB / 337.1 MB, free: 8.629 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002708/0.2857, allocations: 1.128 MB / 338.3 MB, free: 7.504 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004316/0.29, allocations: 3.134 MB / 341.4 MB, free: 4.234 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002234/0.2923, allocations: 1.038 MB / 342.4 MB, free: 3.148 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001106/0.2934, allocations: 498.2 kB / 342.9 MB, free: 2.66 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.843e-05/0.2935, allocations: 16.48 kB / 342.9 MB, free: 2.645 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001244/0.2947, allocations: 0.5127 MB / 343.4 MB, free: 2.117 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.775e-06/0.2947, allocations: 3.938 kB / 343.4 MB, free: 2.113 MB / 270.1 MB Notification: Performance of matching and sorting (n=50): time 0.003053/0.2978, allocations: 1.256 MB / 344.7 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.2979, allocations: 269.5 kB / 345 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006597/0.2986, allocations: 0.4978 MB / 345.5 MB, free: 16 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 8.08e-05/0.2987, allocations: 45.7 kB / 345.5 MB, free: 15.96 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/0.2989, allocations: 331.6 kB / 345.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.2991, allocations: 177.6 kB / 346 MB, free: 15.46 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.2991, allocations: 12 kB / 346 MB, free: 15.45 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.2993, allocations: 366.7 kB / 346.4 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.3004, allocations: 461.7 kB / 346.8 MB, free: 14.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/0.3017, allocations: 0.7092 MB / 347.5 MB, free: 13.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.3029, allocations: 0.5208 MB / 348.1 MB, free: 13.29 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/0.3029, allocations: 8 kB / 348.1 MB, free: 13.28 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002731/0.3056, allocations: 1.232 MB / 349.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.707e-05/0.3057, allocations: 63.39 kB / 349.4 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.3057, allocations: 8 kB / 349.4 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.3058, allocations: 12.41 kB / 349.4 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009905/0.3067, allocations: 251.7 kB / 349.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.3068, allocations: 11.94 kB / 349.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009556/0.3077, allocations: 219.1 kB / 349.8 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.394e-05/0.3078, allocations: 36 kB / 349.9 MB, free: 11.42 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 ($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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003044/0.3081, allocations: 209.6 kB / 350.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.28e-05/0.3082, allocations: 63.23 kB / 350.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001484/0.3084, allocations: 65.59 kB / 350.2 MB, free: 11.08 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.3084, allocations: 4 kB / 350.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.3084, allocations: 0 / 350.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.3084, allocations: 3.984 kB / 350.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003176/0.3116, allocations: 1.767 MB / 352 MB, free: 9.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3116, allocations: 0 / 352 MB, free: 9.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007432/0.3124, allocations: 179.8 kB / 352.2 MB, free: 9.074 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.3124, allocations: 7.953 kB / 352.2 MB, free: 9.066 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.894e-05/0.3124, allocations: 8 kB / 352.2 MB, free: 9.059 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.652e-05/0.3124, allocations: 4 kB / 352.2 MB, free: 9.055 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3124, allocations: 0 / 352.2 MB, free: 9.055 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003144/0.3156, allocations: 1.462 MB / 353.6 MB, free: 7.574 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001544/0.3158, allocations: 140.3 kB / 353.8 MB, free: 7.418 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.148e-05/0.3159, allocations: 15.95 kB / 353.8 MB, free: 7.402 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006888/0.3166, allocations: 143.9 kB / 353.9 MB, free: 7.262 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.3167, allocations: 56.34 kB / 354 MB, free: 7.207 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.032e-05/0.3168, allocations: 15.94 kB / 354 MB, free: 7.191 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004886/0.3173, allocations: 350.8 kB / 354.4 MB, free: 6.852 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3173, allocations: 0 / 354.4 MB, free: 6.852 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000658/0.3179, allocations: 167.8 kB / 354.5 MB, free: 6.688 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 (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.00019/0.3181, allocations: 115.2 kB / 354.6 MB, free: 6.566 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00243/0.3206, allocations: 1.11 MB / 355.7 MB, free: 5.438 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3206, allocations: 4 kB / 355.7 MB, free: 5.434 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.3216, allocations: 471.1 kB / 356.2 MB, free: 4.969 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005679/0.3222, allocations: 89.86 kB / 356.3 MB, free: 4.883 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002376/0.3246, allocations: 1.421 MB / 357.7 MB, free: 3.438 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004286/0.325, allocations: 0.8552 MB / 358.6 MB, free: 2.559 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004117/0.3254, allocations: 80.66 kB / 358.6 MB, free: 2.477 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.3256, allocations: 47.42 kB / 358.7 MB, free: 2.43 MB / 286.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3256, allocations: 0 / 358.7 MB, free: 2.43 MB / 286.1 MB Notification: Performance of Templates: time 0.01428/0.3399, allocations: 7.144 MB / 365.8 MB, free: 11.28 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)