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.0009963/0.0009963, allocations: 169.9 kB / 12.72 MB, free: 2.594 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.22/1.22, allocations: 170.6 MB / 183.8 MB, free: 11.42 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.001579/0.001579, allocations: 115.4 kB / 223.2 MB, free: 4.043 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.069e-05/3.075e-05, allocations: 4 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06388/0.06392, allocations: 38.76 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2543/0.3182, allocations: 73.68 MB / 381.3 MB, free: 2.559 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.3185, allocations: 71.52 kB / 381.4 MB, free: 2.523 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06556/0.3841, allocations: 34.59 MB / 416 MB, free: 6.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3841, allocations: 0 / 416 MB, free: 6.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.249e-05/0.3842, allocations: 11.94 kB / 416 MB, free: 6.008 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001003/0.3852, allocations: 0.8775 MB / 416.9 MB, free: 5.105 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.3852, allocations: 8.031 kB / 416.9 MB, free: 5.098 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.3854, allocations: 79.06 kB / 416.9 MB, free: 5.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005909/0.386, allocations: 405.8 kB / 417.3 MB, free: 4.582 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.48e-05/0.386, allocations: 19.95 kB / 417.4 MB, free: 4.562 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.228e-05/0.3861, allocations: 16 kB / 417.4 MB, free: 4.547 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005496/0.3866, allocations: 297.5 kB / 417.7 MB, free: 4.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.3866, allocations: 0 / 417.7 MB, free: 4.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.276e-05/0.3867, allocations: 12 kB / 417.7 MB, free: 4.238 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.3867, allocations: 4 kB / 417.7 MB, free: 4.234 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003785/0.3871, allocations: 199.9 kB / 417.9 MB, free: 4.039 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.3884, allocations: 0.8863 MB / 418.8 MB, free: 3.098 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003821/0.3888, allocations: 214.5 kB / 419 MB, free: 2.879 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.3891, allocations: 148.8 kB / 419.1 MB, free: 2.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.3891, allocations: 0 / 419.1 MB, free: 2.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004633/0.3896, allocations: 386.1 kB / 419.5 MB, free: 2.316 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.3896, allocations: 0 / 419.5 MB, free: 2.316 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009882/0.3906, allocations: 0.5931 MB / 420.1 MB, free: 1.691 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.921e-05/0.3907, allocations: 166.2 kB / 420.2 MB, free: 1.492 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.3919, allocations: 0.8783 MB / 421.1 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.59e-05/0.3919, allocations: 37.7 kB / 421.2 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.83e-05/0.392, allocations: 149.8 kB / 421.3 MB, free: 424 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.046e-05/0.3921, allocations: 59.28 kB / 421.4 MB, free: 364 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.884e-05/0.3921, allocations: 15.94 kB / 421.4 MB, free: 348 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.3923, allocations: 339.7 kB / 421.7 MB, free: 0 / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.3925, allocations: 120 kB / 421.8 MB, free: 15.88 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002387/0.3927, allocations: 155 kB / 422 MB, free: 15.72 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.393, allocations: 234.7 kB / 422.2 MB, free: 15.47 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.393, allocations: 0 / 422.2 MB, free: 15.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008233/0.3939, allocations: 0.5507 MB / 422.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.394, allocations: 134.8 kB / 422.9 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.394, allocations: 4 kB / 422.9 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.394, allocations: 0 / 422.9 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.579e-05/0.3941, allocations: 23.92 kB / 422.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.3941, allocations: 0 / 422.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/0.3944, allocations: 35.88 kB / 423 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.3945, allocations: 111.9 kB / 423.1 MB, free: 14.56 MB / 314.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.000248/0.3948, allocations: 285.8 kB / 423.3 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.582e-05/0.3949, allocations: 79 kB / 423.4 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002928/0.3952, allocations: 130.2 kB / 423.5 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.3952, allocations: 3.984 kB / 423.6 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3952, allocations: 0 / 423.6 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3952, allocations: 0 / 423.6 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007679/0.396, allocations: 0.6258 MB / 424.2 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.396, allocations: 3.984 kB / 424.2 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.68e-05/0.3961, allocations: 16 kB / 424.2 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.3961, allocations: 0 / 424.2 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.954e-05/0.3961, allocations: 27.98 kB / 424.2 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.3961, allocations: 0 / 424.2 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3961, allocations: 128 / 424.2 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009593/0.3971, allocations: 0.6784 MB / 424.9 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007474/0.3979, allocations: 0.4957 MB / 425.4 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.398, allocations: 27.98 kB / 425.4 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.3982, allocations: 23.98 kB / 425.4 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.3984, allocations: 55.94 kB / 425.5 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.3985, allocations: 115.8 kB / 425.6 MB, free: 11.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009959/0.3995, allocations: 0.7212 MB / 426.3 MB, free: 11.13 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3995, allocations: 0 / 426.3 MB, free: 11.13 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003792/0.3999, allocations: 88 kB / 426.4 MB, free: 11.05 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) * 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.0001988/0.4001, allocations: 134.7 kB / 426.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008195/0.401, allocations: 0.6421 MB / 427.2 MB, free: 10.21 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.401, allocations: 0 / 427.2 MB, free: 10.21 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005038/0.4015, allocations: 0.5249 MB / 427.7 MB, free: 9.641 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008334/0.4023, allocations: 182.8 kB / 427.9 MB, free: 9.465 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.4041, allocations: 1.068 MB / 429 MB, free: 8.371 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006848/0.4048, allocations: 0.9915 MB / 430 MB, free: 7.352 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004079/0.4053, allocations: 156.9 kB / 430.1 MB, free: 7.199 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.4054, allocations: 75.27 kB / 430.2 MB, free: 7.125 MB / 314.7 MB Notification: Performance of SimCode: time 6.91e-07/0.4055, allocations: 4 kB / 430.2 MB, free: 7.121 MB / 314.7 MB Notification: Performance of Templates: time 0.01041/0.4159, allocations: 6.699 MB / 436.9 MB, free: 400 kB / 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)