Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001049/0.001049, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.521/1.521, allocations: 194.2 MB / 208.4 MB, free: 6.715 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001841/0.00184, allocations: 130.2 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.404e-05/3.404e-05, allocations: 4 kB / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08209/0.08214, allocations: 44.5 MB / 349.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3273/0.4095, allocations: 75.28 MB / 424.7 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001904/0.4098, allocations: 80.73 kB / 424.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02406/0.4338, allocations: 10.21 MB / 435 MB, free: 7.078 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4339, allocations: 0 / 435 MB, free: 7.078 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.482e-05/0.4339, allocations: 15.53 kB / 435 MB, free: 7.074 MB / 298.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.00211/0.436, allocations: 1.075 MB / 436.1 MB, free: 6.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.4361, allocations: 7.688 kB / 436.1 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.4363, allocations: 73.59 kB / 436.2 MB, free: 6.305 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00049/0.4367, allocations: 420.2 kB / 436.6 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.284e-05/0.4368, allocations: 44.75 kB / 436.6 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.59e-05/0.4369, allocations: 63.69 kB / 436.7 MB, free: 5.996 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.4379, allocations: 0.731 MB / 437.4 MB, free: 5.711 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.438, allocations: 3.938 kB / 437.4 MB, free: 5.707 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/0.438, allocations: 26.25 kB / 437.5 MB, free: 5.707 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.438, allocations: 15.5 kB / 437.5 MB, free: 5.707 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008649/0.4389, allocations: 0.5929 MB / 438.1 MB, free: 5.676 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003765/0.4427, allocations: 3.158 MB / 441.2 MB, free: 3.793 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009503/0.4437, allocations: 0.6859 MB / 441.9 MB, free: 3.535 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004522/0.4441, allocations: 303 kB / 442.2 MB, free: 3.516 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.148e-05/0.4442, allocations: 19.55 kB / 442.2 MB, free: 3.508 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004877/0.4447, allocations: 332.1 kB / 442.5 MB, free: 3.402 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.815e-06/0.4447, allocations: 0 / 442.5 MB, free: 3.402 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.000827/0.4455, allocations: 0.4931 MB / 443 MB, free: 3.309 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.06e-05/0.4456, allocations: 267.9 kB / 443.3 MB, free: 2.996 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003956/0.446, allocations: 446.6 kB / 443.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.771e-05/0.4461, allocations: 40.83 kB / 443.8 MB, free: 2.633 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.4462, allocations: 336.1 kB / 444.1 MB, free: 2.375 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.82e-05/0.4463, allocations: 164.5 kB / 444.3 MB, free: 2.238 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.031e-05/0.4464, allocations: 15.62 kB / 444.3 MB, free: 2.234 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.823e-05/0.4465, allocations: 365 kB / 444.6 MB, free: 1.895 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000356/0.4468, allocations: 246.8 kB / 444.9 MB, free: 1.762 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004541/0.4473, allocations: 0.501 MB / 445.4 MB, free: 1.273 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003967/0.4477, allocations: 334.6 kB / 445.7 MB, free: 1.031 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.4477, allocations: 4 kB / 445.7 MB, free: 1.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001078/0.4488, allocations: 0.8274 MB / 446.5 MB, free: 416 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.43e-05/0.4488, allocations: 63.36 kB / 446.6 MB, free: 340 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.4488, allocations: 11.94 kB / 446.6 MB, free: 328 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.4489, allocations: 12 kB / 446.6 MB, free: 316 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009761/0.4499, allocations: 255.9 kB / 446.9 MB, free: 68 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.526e-05/0.4499, allocations: 11.94 kB / 446.9 MB, free: 56 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.4509, allocations: 215.7 kB / 447.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.087e-05/0.451, allocations: 35.62 kB / 447.1 MB, free: 15.83 MB / 314.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.0001738/0.4512, allocations: 148 kB / 447.3 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.472e-05/0.4513, allocations: 55.34 kB / 447.3 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001513/0.4515, allocations: 75.88 kB / 447.4 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.4515, allocations: 4 kB / 447.4 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.4515, allocations: 0 / 447.4 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.4515, allocations: 3.984 kB / 447.4 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.4534, allocations: 1.379 MB / 448.8 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.4534, allocations: 4 kB / 448.8 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000811/0.4543, allocations: 181.1 kB / 449 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.496e-05/0.4543, allocations: 4 kB / 449 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.337e-05/0.4543, allocations: 15.19 kB / 449 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.4543, allocations: 4 kB / 449 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.4543, allocations: 0 / 449 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.4556, allocations: 0.8999 MB / 449.9 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.4558, allocations: 139.2 kB / 450 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.894e-05/0.4559, allocations: 16.42 kB / 450 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007715/0.4567, allocations: 143 kB / 450.2 MB, free: 13.51 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.4568, allocations: 55.67 kB / 450.2 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.269e-05/0.4569, allocations: 12.69 kB / 450.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003601/0.4572, allocations: 329.9 kB / 450.6 MB, free: 13.22 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4572, allocations: 4 kB / 450.6 MB, free: 13.21 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005665/0.4578, allocations: 165.9 kB / 450.7 MB, free: 13.07 MB / 314.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.0001924/0.458, allocations: 121.5 kB / 450.9 MB, free: 12.95 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.4591, allocations: 0.7173 MB / 451.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4591, allocations: 1.688 kB / 451.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004166/0.4595, allocations: 280.2 kB / 451.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004209/0.4599, allocations: 85.12 kB / 451.9 MB, free: 12.19 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.4616, allocations: 0.8421 MB / 452.8 MB, free: 11.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004562/0.462, allocations: 0.8748 MB / 453.6 MB, free: 10.56 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004153/0.4625, allocations: 76.66 kB / 453.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.4627, allocations: 45.94 kB / 453.8 MB, free: 10.45 MB / 314.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4627, allocations: 3.938 kB / 453.8 MB, free: 10.44 MB / 314.7 MB Notification: Performance of Templates: time 0.0127/0.4754, allocations: 7.141 MB / 460.9 MB, free: 3.316 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)