Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 107.3 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001926/0.001926, allocations: 193.1 kB / 16.25 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.864/1.864, allocations: 205.1 MB / 222.1 MB, free: 4.676 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 51.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3792/0.3807, allocations: 46.62 MB / 324.8 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004838/0.3856, allocations: 2.162 MB / 327 MB, free: 224 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.003531/0.3892, allocations: 1.052 MB / 328.1 MB, free: 15.41 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002554/0.3895, allocations: 0.9375 kB / 328.1 MB, free: 15.41 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003343/0.3899, allocations: 26.19 kB / 328.1 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.3901, allocations: 39.69 kB / 328.1 MB, free: 15.35 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006135/0.3907, allocations: 111.3 kB / 328.2 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006686/0.3914, allocations: 417.8 kB / 328.6 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003092/0.3917, allocations: 100.4 kB / 328.7 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001223/0.393, allocations: 0.9393 MB / 329.7 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003001/0.3933, allocations: 197.7 kB / 329.9 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.3934, allocations: 36.91 kB / 329.9 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.3935, allocations: 35.31 kB / 329.9 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002662/0.3938, allocations: 170.3 kB / 330.1 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003701/0.3942, allocations: 281.8 kB / 330.4 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001416/0.3956, allocations: 0.9638 MB / 331.3 MB, free: 13.4 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.077e-05/0.3956, allocations: 3.938 kB / 331.3 MB, free: 13.4 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.977e-06/0.3956, allocations: 0 / 331.3 MB, free: 13.4 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.989e-05/0.3957, allocations: 1.125 kB / 331.3 MB, free: 13.4 MB / 270.1 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.001934/0.3976, allocations: 1.119 MB / 332.5 MB, free: 12.39 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.656e-05/0.3977, allocations: 12.03 kB / 332.5 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.3979, allocations: 83.91 kB / 332.6 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000567/0.3984, allocations: 424.1 kB / 333 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.726e-05/0.3985, allocations: 20.38 kB / 333 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.333e-05/0.3986, allocations: 16.38 kB / 333 MB, free: 11.81 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007693/0.3994, allocations: 309.5 kB / 333.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.3994, allocations: 0 / 333.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.777e-05/0.3994, allocations: 15.94 kB / 333.3 MB, free: 11.48 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.3995, allocations: 4 kB / 333.3 MB, free: 11.48 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004413/0.3999, allocations: 199.9 kB / 333.5 MB, free: 11.29 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.4015, allocations: 0.894 MB / 334.4 MB, free: 10.34 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004682/0.402, allocations: 218.5 kB / 334.6 MB, free: 10.12 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002835/0.4023, allocations: 156.8 kB / 334.8 MB, free: 9.961 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.4023, allocations: 0 / 334.8 MB, free: 9.961 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007519/0.4031, allocations: 381.9 kB / 335.2 MB, free: 9.551 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.4031, allocations: 0 / 335.2 MB, free: 9.551 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001676/0.4048, allocations: 0.7375 MB / 335.9 MB, free: 8.781 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.4049, allocations: 178.2 kB / 336.1 MB, free: 8.57 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/0.4065, allocations: 0.9922 MB / 337.1 MB, free: 7.566 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.115e-05/0.4066, allocations: 41.64 kB / 337.1 MB, free: 7.52 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/0.4067, allocations: 157.8 kB / 337.3 MB, free: 7.363 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.93e-05/0.4068, allocations: 59.33 kB / 337.3 MB, free: 7.305 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002489/0.4071, allocations: 165 kB / 337.5 MB, free: 7.137 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.4073, allocations: 342.8 kB / 337.8 MB, free: 6.793 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002703/0.4076, allocations: 124 kB / 337.9 MB, free: 6.672 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003382/0.4079, allocations: 164.2 kB / 338.1 MB, free: 6.496 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006411/0.4086, allocations: 485.6 kB / 338.6 MB, free: 5.957 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4086, allocations: 4 kB / 338.6 MB, free: 5.953 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009791/0.4096, allocations: 0.5742 MB / 339.1 MB, free: 5.348 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001239/0.4097, allocations: 130.8 kB / 339.3 MB, free: 5.195 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.4097, allocations: 4 kB / 339.3 MB, free: 5.191 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.4097, allocations: 0 / 339.3 MB, free: 5.191 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.4099, allocations: 19.98 kB / 339.3 MB, free: 5.172 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.4099, allocations: 3.984 kB / 339.3 MB, free: 5.168 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003102/0.4102, allocations: 39.89 kB / 339.3 MB, free: 5.129 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001424/0.4103, allocations: 123.8 kB / 339.5 MB, free: 5.008 MB / 270.1 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,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000713/0.4111, allocations: 0.5298 MB / 340 MB, free: 4.441 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.4112, allocations: 71.16 kB / 340.1 MB, free: 4.371 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002788/0.4115, allocations: 134.4 kB / 340.2 MB, free: 4.227 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.4115, allocations: 0 / 340.2 MB, free: 4.227 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.862e-06/0.4115, allocations: 0 / 340.2 MB, free: 4.227 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.4115, allocations: 0 / 340.2 MB, free: 4.227 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008726/0.4124, allocations: 0.6335 MB / 340.8 MB, free: 3.543 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4124, allocations: 0 / 340.8 MB, free: 3.543 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.832e-05/0.4124, allocations: 16.12 kB / 340.8 MB, free: 3.527 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.4125, allocations: 0 / 340.8 MB, free: 3.527 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.109e-05/0.4125, allocations: 27.98 kB / 340.9 MB, free: 3.5 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.4125, allocations: 0 / 340.9 MB, free: 3.5 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4125, allocations: 0 / 340.9 MB, free: 3.5 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.4138, allocations: 0.6985 MB / 341.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000651/0.4145, allocations: 0.4996 MB / 342.1 MB, free: 2.238 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.4146, allocations: 24 kB / 342.1 MB, free: 2.215 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.4148, allocations: 27.97 kB / 342.1 MB, free: 2.188 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.415, allocations: 43.95 kB / 342.2 MB, free: 2.145 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/0.4151, allocations: 119.9 kB / 342.3 MB, free: 2.027 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.00104/0.4162, allocations: 0.7328 MB / 343 MB, free: 1.297 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.4162, allocations: 0 / 343 MB, free: 1.297 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003907/0.4166, allocations: 91.84 kB / 343.1 MB, free: 1.207 MB / 270.1 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.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,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.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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003027/0.4169, allocations: 142.7 kB / 343.2 MB, free: 1.059 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.418, allocations: 0.6652 MB / 343.9 MB, free: 352 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.418, allocations: 0 / 343.9 MB, free: 352 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006753/0.4187, allocations: 0.5289 MB / 344.4 MB, free: 15.77 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009244/0.4196, allocations: 203 kB / 344.6 MB, free: 15.57 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/0.4221, allocations: 1.549 MB / 346.2 MB, free: 13.99 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008271/0.4229, allocations: 0.9637 MB / 347.1 MB, free: 13 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004186/0.4233, allocations: 161.1 kB / 347.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/0.4235, allocations: 79.2 kB / 347.4 MB, free: 12.77 MB / 286.1 MB Notification: Performance of SimCode: time 1.623e-06/0.4235, allocations: 0 / 347.4 MB, free: 12.77 MB / 286.1 MB Notification: Performance of Templates: time 0.0134/0.4369, allocations: 7.63 MB / 355 MB, free: 5.102 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)