Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.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.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004997/0.004997, allocations: 165.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.145/1.145, allocations: 170.8 MB / 186.6 MB, free: 1.121 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.001655/0.001655, allocations: 110.6 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004452/0.0004452, allocations: 8 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2573, allocations: 38.77 MB / 312.9 MB, free: 38.71 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09351/0.3508, allocations: 73.77 MB / 386.7 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.3511, allocations: 75.95 kB / 386.7 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2664/0.6175, allocations: 34.35 MB / 421.1 MB, free: 85.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.277e-06/0.6176, allocations: 0 / 421.1 MB, free: 85.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.697e-05/0.6176, allocations: 12.27 kB / 421.1 MB, free: 85.05 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001329/0.619, allocations: 0.9962 MB / 422.1 MB, free: 84.44 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/0.619, allocations: 9 kB / 422.1 MB, free: 84.44 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001609/0.6192, allocations: 86.81 kB / 422.2 MB, free: 84.4 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006136/0.6198, allocations: 403.6 kB / 422.6 MB, free: 84.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.447e-05/0.6199, allocations: 20.53 kB / 422.6 MB, free: 84.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.984e-05/0.62, allocations: 18.53 kB / 422.6 MB, free: 84.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005998/0.6206, allocations: 299.9 kB / 422.9 MB, free: 84.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.6206, allocations: 3.938 kB / 422.9 MB, free: 84.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.464e-05/0.6207, allocations: 9.688 kB / 422.9 MB, free: 84.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.6207, allocations: 3.438 kB / 422.9 MB, free: 84.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004635/0.6211, allocations: 212.8 kB / 423.1 MB, free: 84.08 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.6227, allocations: 0.8804 MB / 424 MB, free: 83.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004822/0.6232, allocations: 218 kB / 424.2 MB, free: 83.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.6233, allocations: 1.375 kB / 424.2 MB, free: 83.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005735/0.6238, allocations: 389.1 kB / 424.6 MB, free: 83.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.575e-06/0.6239, allocations: 0 / 424.6 MB, free: 83.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001561/0.6254, allocations: 0.8882 MB / 425.5 MB, free: 83.16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.801e-05/0.6255, allocations: 174.6 kB / 425.7 MB, free: 82.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.6267, allocations: 0.8785 MB / 426.5 MB, free: 82.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.87e-05/0.6267, allocations: 35.67 kB / 426.6 MB, free: 82.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.204e-05/0.6268, allocations: 154.7 kB / 426.7 MB, free: 82.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.243e-05/0.6269, allocations: 54.58 kB / 426.8 MB, free: 82.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.042e-05/0.6269, allocations: 7.781 kB / 426.8 MB, free: 82.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.614e-05/0.627, allocations: 338 kB / 427.1 MB, free: 82.24 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000249/0.6273, allocations: 120.1 kB / 427.2 MB, free: 82.24 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002787/0.6276, allocations: 164.1 kB / 427.4 MB, free: 82.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002749/0.6278, allocations: 235.3 kB / 427.6 MB, free: 82.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.6278, allocations: 0 / 427.6 MB, free: 82.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009037/0.6288, allocations: 0.5569 MB / 428.2 MB, free: 81.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.764e-05/0.6289, allocations: 137.7 kB / 428.3 MB, free: 81.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.6289, allocations: 1.719 kB / 428.3 MB, free: 81.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.6289, allocations: 2.594 kB / 428.3 MB, free: 81.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.216e-05/0.629, allocations: 13.88 kB / 428.3 MB, free: 81.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.629, allocations: 5.438 kB / 428.3 MB, free: 81.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/0.6293, allocations: 44.62 kB / 428.4 MB, free: 81.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/0.6295, allocations: 113.6 kB / 428.5 MB, free: 81.75 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * 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.0005787/0.6301, allocations: 0.5309 MB / 429 MB, free: 81.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.497e-05/0.6302, allocations: 80.94 kB / 429.1 MB, free: 81.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002059/0.6304, allocations: 133.7 kB / 429.2 MB, free: 81.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.6304, allocations: 0.5312 kB / 429.2 MB, free: 81.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.6304, allocations: 1.031 kB / 429.2 MB, free: 81.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.6304, allocations: 2.25 kB / 429.2 MB, free: 81.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007312/0.6311, allocations: 0.6256 MB / 429.9 MB, free: 81.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.6312, allocations: 0 / 429.9 MB, free: 81.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.432e-05/0.6312, allocations: 13.36 kB / 429.9 MB, free: 81.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.6312, allocations: 5.281 kB / 429.9 MB, free: 81.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.476e-05/0.6313, allocations: 25.3 kB / 429.9 MB, free: 81.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.6313, allocations: 2.062 kB / 429.9 MB, free: 81.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.6313, allocations: 0 / 429.9 MB, free: 81.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.6324, allocations: 0.6837 MB / 430.6 MB, free: 80.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007136/0.6332, allocations: 0.4958 MB / 431.1 MB, free: 80.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.6333, allocations: 19.66 kB / 431.1 MB, free: 80.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002402/0.6335, allocations: 34.16 kB / 431.1 MB, free: 80.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.6337, allocations: 52.58 kB / 431.2 MB, free: 80.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001523/0.6339, allocations: 114.5 kB / 431.3 MB, free: 80.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009971/0.6349, allocations: 0.7314 MB / 432 MB, free: 80.44 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6349, allocations: 0 / 432 MB, free: 80.44 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003979/0.6353, allocations: 85.44 kB / 432.1 MB, free: 80.44 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.XOR.G1.auxiliary_n,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,Adder.AND.G1.auxiliary_n,b.y,a.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.0001882/0.6355, allocations: 137.4 kB / 432.3 MB, free: 80.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009652/0.6365, allocations: 0.6657 MB / 432.9 MB, free: 79.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.6365, allocations: 0 / 432.9 MB, free: 79.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004987/0.637, allocations: 0.5319 MB / 433.5 MB, free: 79.57 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000712/0.6377, allocations: 168 kB / 433.6 MB, free: 79.53 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.6396, allocations: 1.501 MB / 435.1 MB, free: 78.63 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004887/0.6401, allocations: 0.9821 MB / 436.1 MB, free: 77.85 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000396/0.6405, allocations: 166.5 kB / 436.3 MB, free: 77.75 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/0.6407, allocations: 74.11 kB / 436.3 MB, free: 77.7 MB / 314.7 MB Notification: Performance of SimCode: time 1.453e-06/0.6407, allocations: 0 / 436.3 MB, free: 77.7 MB / 314.7 MB Notification: Performance of Templates: time 0.01045/0.6512, allocations: 6.697 MB / 443 MB, free: 76.56 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)