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.0009909/0.0009909, allocations: 180 kB / 16.38 MB, free: 5.762 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.188/1.188, allocations: 194.5 MB / 211.6 MB, free: 3.055 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.00158/0.00158, allocations: 115 kB / 256.9 MB, free: 4.328 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000359/0.000359, allocations: 12 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08807/0.08844, allocations: 44.5 MB / 355.1 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2229/0.3114, allocations: 79.08 MB / 434.1 MB, free: 10.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001726/0.3116, allocations: 79.66 kB / 434.2 MB, free: 10.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06038/0.372, allocations: 34.36 MB / 468.6 MB, free: 10.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.258e-06/0.372, allocations: 4 kB / 468.6 MB, free: 10.8 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.75e-05/0.3721, allocations: 19.94 kB / 468.6 MB, free: 10.79 MB / 346.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.001247/0.3733, allocations: 0.9823 MB / 469.6 MB, free: 9.727 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.3734, allocations: 12.03 kB / 469.6 MB, free: 9.715 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.3735, allocations: 79.06 kB / 469.7 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005992/0.3741, allocations: 404.3 kB / 470.1 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/0.3742, allocations: 16 kB / 470.1 MB, free: 9.184 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.667e-05/0.3743, allocations: 16 kB / 470.1 MB, free: 9.168 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006046/0.3749, allocations: 310.1 kB / 470.4 MB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.3749, allocations: 4 kB / 470.4 MB, free: 8.855 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.126e-05/0.3749, allocations: 8 kB / 470.4 MB, free: 8.848 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.375, allocations: 8 kB / 470.4 MB, free: 8.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004127/0.3754, allocations: 207.9 kB / 470.6 MB, free: 8.637 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.3767, allocations: 0.8844 MB / 471.5 MB, free: 7.699 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004036/0.3771, allocations: 210.5 kB / 471.7 MB, free: 7.484 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.3771, allocations: 0 / 471.7 MB, free: 7.484 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004929/0.3776, allocations: 397.9 kB / 472.1 MB, free: 7.059 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.763e-06/0.3777, allocations: 4 kB / 472.1 MB, free: 7.055 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001312/0.379, allocations: 0.8823 MB / 473 MB, free: 6.105 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.749e-05/0.3791, allocations: 178.1 kB / 473.2 MB, free: 5.895 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/0.3802, allocations: 0.8782 MB / 474 MB, free: 5.012 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.4e-05/0.3803, allocations: 37.69 kB / 474.1 MB, free: 4.969 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.867e-05/0.3804, allocations: 145.8 kB / 474.2 MB, free: 4.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.364e-05/0.3805, allocations: 55.34 kB / 474.3 MB, free: 4.766 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.982e-05/0.3805, allocations: 15.98 kB / 474.3 MB, free: 4.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.3806, allocations: 338.8 kB / 474.6 MB, free: 4.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002406/0.3809, allocations: 120 kB / 474.7 MB, free: 4.293 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002464/0.3811, allocations: 160.2 kB / 474.9 MB, free: 4.121 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002669/0.3814, allocations: 225.2 kB / 475.1 MB, free: 3.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3814, allocations: 4 kB / 475.1 MB, free: 3.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008931/0.3823, allocations: 0.5748 MB / 475.7 MB, free: 3.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.3824, allocations: 130.8 kB / 475.8 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/0.3824, allocations: 0 / 475.8 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.3825, allocations: 4 kB / 475.8 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.314e-05/0.3825, allocations: 16.83 kB / 475.8 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.3826, allocations: 3.953 kB / 475.8 MB, free: 3.094 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.3828, allocations: 39.91 kB / 475.9 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.3829, allocations: 111.9 kB / 476 MB, free: 2.945 MB / 346.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.0005472/0.3835, allocations: 0.5298 MB / 476.5 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.87e-05/0.3836, allocations: 83.05 kB / 476.6 MB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001838/0.3838, allocations: 122.4 kB / 476.7 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3838, allocations: 0 / 476.7 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.3838, allocations: 4 kB / 476.7 MB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3838, allocations: 9.078 kB / 476.7 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006483/0.3845, allocations: 0.6181 MB / 477.4 MB, free: 1.496 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3845, allocations: 0 / 477.4 MB, free: 1.496 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.538e-05/0.3845, allocations: 23.97 kB / 477.4 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.3846, allocations: 3.984 kB / 477.4 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.741e-05/0.3846, allocations: 23.98 kB / 477.4 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.3846, allocations: 0 / 477.4 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3846, allocations: 0 / 477.4 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009556/0.3856, allocations: 0.6945 MB / 478.1 MB, free: 0.707 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006516/0.3862, allocations: 0.4918 MB / 478.6 MB, free: 200 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.3864, allocations: 20 kB / 478.6 MB, free: 180 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.3866, allocations: 33.97 kB / 478.6 MB, free: 148 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.3867, allocations: 55.94 kB / 478.7 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001681/0.3869, allocations: 115.9 kB / 478.8 MB, free: 15.97 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008983/0.3878, allocations: 0.7289 MB / 479.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3878, allocations: 0 / 479.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003394/0.3882, allocations: 91.95 kB / 479.6 MB, free: 15.16 MB / 362.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.0001649/0.3883, allocations: 130.8 kB / 479.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008322/0.3892, allocations: 0.6501 MB / 480.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3892, allocations: 4.125 kB / 480.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004932/0.3897, allocations: 0.5288 MB / 480.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006412/0.3903, allocations: 163.2 kB / 481.1 MB, free: 13.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002008/0.3924, allocations: 1.497 MB / 482.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006164/0.393, allocations: 0.9795 MB / 483.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003594/0.3934, allocations: 164 kB / 483.7 MB, free: 10.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/0.3935, allocations: 79.27 kB / 483.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3935, allocations: 4 kB / 483.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of Templates: time 0.01038/0.4039, allocations: 6.689 MB / 490.5 MB, free: 4.117 MB / 362.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)