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.001461/0.001461, allocations: 184.5 kB / 8.354 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.423/1.423, allocations: 194.3 MB / 203.1 MB, free: 13.02 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.00168/0.00168, allocations: 112.7 kB / 248.1 MB, free: 28 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.042e-05/2.044e-05, allocations: 4 kB / 298.1 MB, free: 35.52 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07948/0.07951, allocations: 44.5 MB / 342.6 MB, free: 7.008 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3156/0.3951, allocations: 74.63 MB / 417.2 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.3954, allocations: 71.09 kB / 417.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02498/0.4204, allocations: 10.12 MB / 427.4 MB, free: 7.969 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4205, allocations: 0 / 427.4 MB, free: 7.969 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.933e-05/0.4205, allocations: 19.41 kB / 427.4 MB, free: 7.965 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.00258/0.4231, allocations: 1.07 MB / 428.5 MB, free: 7.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.4232, allocations: 7.469 kB / 428.5 MB, free: 7.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002668/0.4234, allocations: 73.84 kB / 428.6 MB, free: 7.195 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000629/0.4241, allocations: 430 kB / 429 MB, free: 6.887 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.582e-05/0.4241, allocations: 18.53 kB / 429 MB, free: 6.887 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.4243, allocations: 37.53 kB / 429 MB, free: 6.883 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001081/0.4254, allocations: 0.5584 MB / 429.6 MB, free: 6.867 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/0.4264, allocations: 0.6546 MB / 430.2 MB, free: 6.582 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.4264, allocations: 3.781 kB / 430.2 MB, free: 6.582 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.415e-05/0.4265, allocations: 3.984 kB / 430.2 MB, free: 6.578 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.4265, allocations: 19.06 kB / 430.3 MB, free: 6.574 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0042/0.4307, allocations: 3.062 MB / 433.3 MB, free: 4.738 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009434/0.4317, allocations: 0.6605 MB / 434 MB, free: 4.488 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004236/0.4321, allocations: 286.9 kB / 434.3 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.802e-05/0.4322, allocations: 19.36 kB / 434.3 MB, free: 4.461 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004585/0.4326, allocations: 312.3 kB / 434.6 MB, free: 4.359 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.405e-06/0.4326, allocations: 0 / 434.6 MB, free: 4.359 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.000895/0.4335, allocations: 486.4 kB / 435.1 MB, free: 4.258 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.059e-05/0.4336, allocations: 268.6 kB / 435.3 MB, free: 3.945 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00037/0.434, allocations: 406.7 kB / 435.7 MB, free: 3.793 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.909e-05/0.4341, allocations: 29.58 kB / 435.8 MB, free: 3.762 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.4342, allocations: 335.4 kB / 436.1 MB, free: 3.539 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.4344, allocations: 159.9 kB / 436.2 MB, free: 3.422 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.164e-05/0.4344, allocations: 3.969 kB / 436.2 MB, free: 3.422 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.667e-05/0.4345, allocations: 367.4 kB / 436.6 MB, free: 3.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000328/0.4348, allocations: 230.9 kB / 436.8 MB, free: 3.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.4353, allocations: 487.6 kB / 437.3 MB, free: 2.777 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003593/0.4356, allocations: 258.8 kB / 437.6 MB, free: 2.734 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.4357, allocations: 4.734 kB / 437.6 MB, free: 2.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001073/0.4367, allocations: 0.7099 MB / 438.3 MB, free: 2.578 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.663e-05/0.4368, allocations: 63.8 kB / 438.3 MB, free: 2.512 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.4368, allocations: 11.62 kB / 438.3 MB, free: 2.508 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.4368, allocations: 11.66 kB / 438.4 MB, free: 2.508 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009894/0.4378, allocations: 249.8 kB / 438.6 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.184e-05/0.4379, allocations: 15.64 kB / 438.6 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/0.4389, allocations: 198.9 kB / 438.8 MB, free: 2.355 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-05/0.439, allocations: 40.23 kB / 438.8 MB, free: 2.348 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.0001605/0.4391, allocations: 135.3 kB / 439 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.548e-05/0.4392, allocations: 57.34 kB / 439 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001351/0.4394, allocations: 57.34 kB / 439.1 MB, free: 2.176 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.4394, allocations: 7.531 kB / 439.1 MB, free: 2.176 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.4394, allocations: 11.95 kB / 439.1 MB, free: 2.164 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.4394, allocations: 7.922 kB / 439.1 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001581/0.441, allocations: 1.27 MB / 440.4 MB, free: 1.645 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.441, allocations: 3.906 kB / 440.4 MB, free: 1.645 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007663/0.4418, allocations: 183.5 kB / 440.6 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-06/0.4418, allocations: 3.812 kB / 440.6 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-05/0.4419, allocations: 6.906 kB / 440.6 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.4419, allocations: 0 / 440.6 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.4419, allocations: 0 / 440.6 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.443, allocations: 0.8549 MB / 441.4 MB, free: 1.387 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.4431, allocations: 141.2 kB / 441.6 MB, free: 1.254 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.707e-05/0.4432, allocations: 8.016 kB / 441.6 MB, free: 1.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000761/0.444, allocations: 128.2 kB / 441.7 MB, free: 1.207 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.4441, allocations: 64.83 kB / 441.8 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-05/0.4442, allocations: 13.98 kB / 441.8 MB, free: 1.176 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002676/0.4444, allocations: 298.8 kB / 442.1 MB, free: 1.074 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4444, allocations: 0 / 442.1 MB, free: 1.074 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005686/0.445, allocations: 157.3 kB / 442.2 MB, free: 1.051 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.0001838/0.4452, allocations: 113.6 kB / 442.3 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008366/0.446, allocations: 0.6827 MB / 443 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4461, allocations: 0 / 443 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003608/0.4464, allocations: 272.5 kB / 443.3 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000413/0.4468, allocations: 57.53 kB / 443.3 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.4483, allocations: 0.8229 MB / 444.2 MB, free: 380 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004804/0.4488, allocations: 0.8696 MB / 445 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004365/0.4493, allocations: 74.84 kB / 445.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001998/0.4495, allocations: 45.44 kB / 445.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4495, allocations: 0 / 445.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of Templates: time 0.0115/0.461, allocations: 6.493 MB / 451.6 MB, free: 11.76 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)