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.0008858/0.0008859, allocations: 91.77 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.001121/0.00112, 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.612/1.612, allocations: 205.4 MB / 222.1 MB, free: 5.512 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.0004527/0.0004528, allocations: 12 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2472, allocations: 47.59 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003665/0.2509, allocations: 3.467 MB / 329.9 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002042/0.253, allocations: 1.073 MB / 331 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000328/0.2534, allocations: 12.94 kB / 331 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001991/0.2536, allocations: 65.23 kB / 331.1 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00036/0.2539, allocations: 148.1 kB / 331.2 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004857/0.2544, allocations: 157.5 kB / 331.4 MB, free: 13.45 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000881/0.2553, allocations: 0.8383 MB / 332.2 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003723/0.2557, allocations: 214.3 kB / 332.4 MB, free: 12.8 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004551/0.2562, allocations: 298.3 kB / 332.7 MB, free: 12.63 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000435/0.2566, allocations: 365.2 kB / 333.1 MB, free: 12.38 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.2567, allocations: 51.09 kB / 333.1 MB, free: 12.38 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.2568, allocations: 47.56 kB / 333.2 MB, free: 12.38 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.257, allocations: 143.3 kB / 333.3 MB, free: 12.26 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.2572, allocations: 150 kB / 333.5 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007864/0.258, allocations: 0.8682 MB / 334.3 MB, free: 11.47 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.258, allocations: 0 / 334.3 MB, free: 11.47 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.258, allocations: 0 / 334.3 MB, free: 11.47 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.906e-06/0.258, allocations: 0 / 334.3 MB, free: 11.47 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.002625/0.2606, allocations: 1.162 MB / 335.5 MB, free: 10.34 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.2607, allocations: 8.031 kB / 335.5 MB, free: 10.33 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00016/0.2608, allocations: 75.16 kB / 335.6 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005421/0.2614, allocations: 420.8 kB / 336 MB, free: 9.805 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.004e-05/0.2615, allocations: 57.19 kB / 336 MB, free: 9.746 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.2616, allocations: 52 kB / 336.1 MB, free: 9.695 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002168/0.2638, allocations: 1.003 MB / 337.1 MB, free: 8.629 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.2638, allocations: 0 / 337.1 MB, free: 8.629 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.86e-05/0.2639, allocations: 24 kB / 337.1 MB, free: 8.605 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.2639, allocations: 12 kB / 337.1 MB, free: 8.594 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002881/0.2668, allocations: 1.128 MB / 338.3 MB, free: 7.469 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004516/0.2713, allocations: 3.13 MB / 341.4 MB, free: 4.203 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002264/0.2736, allocations: 1.03 MB / 342.4 MB, free: 3.125 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/0.2747, allocations: 498.2 kB / 342.9 MB, free: 2.637 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.687e-05/0.2748, allocations: 20.48 kB / 342.9 MB, free: 2.617 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001227/0.276, allocations: 0.5127 MB / 343.4 MB, free: 2.09 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 3.436e-06/0.2761, allocations: 7.938 kB / 343.4 MB, free: 2.082 MB / 270.1 MB Notification: Performance of matching and sorting (n=50): time 0.00314/0.2792, allocations: 1.252 MB / 344.7 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.2794, allocations: 269.5 kB / 345 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000736/0.2801, allocations: 0.5018 MB / 345.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.04e-05/0.2802, allocations: 37.7 kB / 345.5 MB, free: 15.94 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002395/0.2804, allocations: 335.6 kB / 345.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.2806, allocations: 169.6 kB / 346 MB, free: 15.44 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/0.2806, allocations: 16 kB / 346 MB, free: 15.43 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2808, allocations: 366.8 kB / 346.4 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.2819, allocations: 465.6 kB / 346.8 MB, free: 14.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.2833, allocations: 0.7014 MB / 347.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.2845, allocations: 0.5286 MB / 348.1 MB, free: 13.26 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.2845, allocations: 0 / 348.1 MB, free: 13.26 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002749/0.2872, allocations: 1.24 MB / 349.3 MB, free: 12 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.523e-05/0.2873, allocations: 67.39 kB / 349.4 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.2873, allocations: 4 kB / 349.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.634e-05/0.2874, allocations: 12 kB / 349.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.2884, allocations: 243.9 kB / 349.6 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.049e-05/0.2885, allocations: 27.86 kB / 349.6 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001046/0.2895, allocations: 215.1 kB / 349.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.807e-05/0.2896, allocations: 31.98 kB / 349.9 MB, free: 11.39 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.0003712/0.29, allocations: 213.6 kB / 350.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.685e-05/0.2901, allocations: 63.25 kB / 350.2 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001578/0.2902, allocations: 61.58 kB / 350.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.2903, allocations: 12 kB / 350.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.2903, allocations: 0 / 350.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.2903, allocations: 3.984 kB / 350.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003238/0.2935, allocations: 1.759 MB / 352 MB, free: 9.223 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.2936, allocations: 0 / 352 MB, free: 9.223 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007392/0.2943, allocations: 179.8 kB / 352.2 MB, free: 9.047 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.968e-06/0.2943, allocations: 7.953 kB / 352.2 MB, free: 9.039 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.392e-05/0.2944, allocations: 15.98 kB / 352.2 MB, free: 9.023 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.2944, allocations: 0 / 352.2 MB, free: 9.023 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2944, allocations: 0 / 352.2 MB, free: 9.023 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003156/0.2975, allocations: 1.466 MB / 353.7 MB, free: 7.539 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.2977, allocations: 136.3 kB / 353.8 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.225e-05/0.2978, allocations: 20.02 kB / 353.8 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006903/0.2985, allocations: 135.9 kB / 353.9 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.2986, allocations: 60.34 kB / 354 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.861e-05/0.2987, allocations: 19.98 kB / 354 MB, free: 7.156 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005072/0.2992, allocations: 342.9 kB / 354.4 MB, free: 6.824 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2992, allocations: 0 / 354.4 MB, free: 6.824 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.00064/0.2999, allocations: 171.8 kB / 354.5 MB, free: 6.656 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.0001898/0.3001, allocations: 111.2 kB / 354.6 MB, free: 6.539 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00239/0.3025, allocations: 1.11 MB / 355.7 MB, free: 5.41 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3025, allocations: 0.875 kB / 355.7 MB, free: 5.41 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.3035, allocations: 474.2 kB / 356.2 MB, free: 4.941 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006274/0.3042, allocations: 85.88 kB / 356.3 MB, free: 4.859 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002405/0.3066, allocations: 1.417 MB / 357.7 MB, free: 3.418 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003906/0.307, allocations: 0.863 MB / 358.6 MB, free: 2.531 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004292/0.3074, allocations: 72.66 kB / 358.6 MB, free: 2.457 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.3076, allocations: 51.42 kB / 358.7 MB, free: 2.406 MB / 286.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3076, allocations: 4 kB / 358.7 MB, free: 2.402 MB / 286.1 MB Notification: Performance of Templates: time 0.01319/0.3208, allocations: 7.14 MB / 365.8 MB, free: 11.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)