Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.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.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009889/0.0009889, allocations: 182.8 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.299/1.299, allocations: 194.3 MB / 208.4 MB, free: 6.707 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.001546/0.001546, allocations: 120.7 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.488e-05/2.493e-05, allocations: 4 kB / 304.9 MB, free: 29.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06817/0.06821, allocations: 44.49 MB / 349.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2971/0.3654, allocations: 79 MB / 428.4 MB, free: 10.2 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002032/0.3656, allocations: 74.36 kB / 428.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06139/0.427, allocations: 34.59 MB / 463.1 MB, free: 3.809 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.4271, allocations: 3.938 kB / 463.1 MB, free: 3.805 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.281e-05/0.4271, allocations: 11.94 kB / 463.1 MB, free: 3.793 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.000923/0.428, allocations: 0.8706 MB / 464 MB, free: 2.895 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.4281, allocations: 8.031 kB / 464 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001234/0.4282, allocations: 82.97 kB / 464.1 MB, free: 2.805 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000572/0.4288, allocations: 403.7 kB / 464.5 MB, free: 2.398 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.927e-05/0.4288, allocations: 18.19 kB / 464.5 MB, free: 2.387 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/0.4289, allocations: 22.94 kB / 464.5 MB, free: 2.367 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005398/0.4294, allocations: 295.9 kB / 464.8 MB, free: 2.145 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.4295, allocations: 0 / 464.8 MB, free: 2.145 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.655e-05/0.4295, allocations: 7.75 kB / 464.8 MB, free: 2.141 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.4295, allocations: 7.984 kB / 464.8 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003917/0.4299, allocations: 207.7 kB / 465 MB, free: 1.996 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.4312, allocations: 0.8788 MB / 465.9 MB, free: 1.258 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003537/0.4316, allocations: 206.7 kB / 466.1 MB, free: 1.121 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002238/0.4318, allocations: 153.1 kB / 466.2 MB, free: 1.031 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.4318, allocations: 0 / 466.2 MB, free: 1.031 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004534/0.4323, allocations: 393.7 kB / 466.6 MB, free: 0.668 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.713e-06/0.4323, allocations: 0 / 466.6 MB, free: 0.668 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009028/0.4332, allocations: 0.5825 MB / 467.2 MB, free: 160 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.4334, allocations: 177.5 kB / 467.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001079/0.4344, allocations: 0.8768 MB / 468.3 MB, free: 15.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.031e-05/0.4345, allocations: 40.39 kB / 468.3 MB, free: 15.2 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.099e-05/0.4346, allocations: 151.8 kB / 468.4 MB, free: 15.08 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.02e-05/0.4347, allocations: 56.97 kB / 468.5 MB, free: 15.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.792e-05/0.4347, allocations: 4 kB / 468.5 MB, free: 15.03 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4348, allocations: 343 kB / 468.8 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/0.4351, allocations: 119.8 kB / 469 MB, free: 14.63 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.4353, allocations: 151.6 kB / 469.1 MB, free: 14.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002546/0.4355, allocations: 232.6 kB / 469.3 MB, free: 14.31 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.4356, allocations: 0 / 469.3 MB, free: 14.31 MB / 330.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007928/0.4364, allocations: 0.5568 MB / 469.9 MB, free: 13.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/0.4365, allocations: 137.8 kB / 470 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.4365, allocations: 0 / 470 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.4365, allocations: 4 kB / 470 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.326e-05/0.4366, allocations: 19.94 kB / 470 MB, free: 13.67 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.4366, allocations: 0 / 470 MB, free: 13.67 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002844/0.4369, allocations: 39.08 kB / 470.1 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.4371, allocations: 112 kB / 470.2 MB, free: 13.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (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,$PRE.Adder.XOR.G2.y,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,$PRE.Adder.AND.G2.y,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 () * 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.0002237/0.4373, allocations: 275.2 kB / 470.5 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.968e-05/0.4374, allocations: 83.09 kB / 470.5 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002287/0.4376, allocations: 131.4 kB / 470.7 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.4377, allocations: 0 / 470.7 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.148e-06/0.4377, allocations: 7.953 kB / 470.7 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.4377, allocations: 0 / 470.7 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008493/0.4385, allocations: 0.618 MB / 471.3 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4385, allocations: 7.938 kB / 471.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.782e-05/0.4386, allocations: 11.98 kB / 471.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.4386, allocations: 4 kB / 471.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.435e-05/0.4387, allocations: 27.42 kB / 471.3 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4387, allocations: 3.938 kB / 471.4 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4387, allocations: 3.953 kB / 471.4 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009245/0.4396, allocations: 0.6723 MB / 472 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006901/0.4403, allocations: 0.4919 MB / 472.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.801e-05/0.4404, allocations: 20 kB / 472.5 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.4407, allocations: 31.88 kB / 472.6 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001651/0.4408, allocations: 59.88 kB / 472.6 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.441, allocations: 123.8 kB / 472.7 MB, free: 11 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000942/0.4419, allocations: 0.7212 MB / 473.5 MB, free: 10.29 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4419, allocations: 0 / 473.5 MB, free: 10.29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003362/0.4423, allocations: 84 kB / 473.6 MB, free: 10.21 MB / 330.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) * 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.0002096/0.4425, allocations: 130.8 kB / 473.7 MB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008288/0.4433, allocations: 0.6421 MB / 474.3 MB, free: 9.379 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4433, allocations: 4 kB / 474.3 MB, free: 9.375 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004881/0.4438, allocations: 0.521 MB / 474.8 MB, free: 8.805 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007253/0.4446, allocations: 170.4 kB / 475 MB, free: 8.641 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.4463, allocations: 1.093 MB / 476.1 MB, free: 7.523 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00068/0.447, allocations: 0.9799 MB / 477.1 MB, free: 6.52 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003934/0.4474, allocations: 165 kB / 477.2 MB, free: 6.355 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001715/0.4476, allocations: 71.3 kB / 477.3 MB, free: 6.285 MB / 330.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4476, allocations: 0 / 477.3 MB, free: 6.285 MB / 330.7 MB Notification: Performance of Templates: time 0.01029/0.4579, allocations: 6.689 MB / 484 MB, free: 15.55 MB / 346.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)