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.001425/0.001425, allocations: 164.4 kB / 7.635 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.384/1.384, allocations: 170.7 MB / 178.7 MB, free: 15.64 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.001592/0.001592, allocations: 107.5 kB / 218 MB, free: 8.41 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.722e-05/1.732e-05, allocations: 4 kB / 262.2 MB, free: 26.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06865/0.06868, allocations: 38.77 MB / 301 MB, free: 3.645 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2602/0.3289, allocations: 73.01 MB / 374 MB, free: 11.35 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003094/0.3293, allocations: 70.97 kB / 374.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06251/0.3919, allocations: 34.35 MB / 408.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3919, allocations: 4 kB / 408.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.049e-05/0.3919, allocations: 11.94 kB / 408.4 MB, free: 15.38 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.0008764/0.3928, allocations: 0.8739 MB / 409.3 MB, free: 14.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.3929, allocations: 12.02 kB / 409.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.393, allocations: 79.06 kB / 409.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004894/0.3935, allocations: 399.6 kB / 409.8 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/0.3935, allocations: 19.89 kB / 409.8 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.113e-05/0.3936, allocations: 16 kB / 409.8 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003462/0.3939, allocations: 187.9 kB / 410 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004323/0.3944, allocations: 265.5 kB / 410.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.3944, allocations: 0 / 410.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.675e-05/0.3945, allocations: 11.98 kB / 410.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.3945, allocations: 4 kB / 410.3 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001307/0.3958, allocations: 0.8478 MB / 411.1 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003303/0.3961, allocations: 198.5 kB / 411.3 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.3963, allocations: 148.8 kB / 411.5 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.3964, allocations: 0 / 411.5 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004224/0.3968, allocations: 374.6 kB / 411.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.793e-06/0.3968, allocations: 0 / 411.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007645/0.3976, allocations: 465.7 kB / 412.3 MB, free: 11.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.479e-05/0.3977, allocations: 174.2 kB / 412.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.3987, allocations: 0.8432 MB / 413.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.894e-05/0.3988, allocations: 33.7 kB / 413.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.888e-05/0.3989, allocations: 157.7 kB / 413.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.893e-05/0.399, allocations: 51.36 kB / 413.5 MB, free: 10 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.117e-05/0.399, allocations: 4 kB / 413.5 MB, free: 9.996 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3991, allocations: 342.9 kB / 413.9 MB, free: 9.652 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.3993, allocations: 116 kB / 414 MB, free: 9.539 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001968/0.3995, allocations: 138.5 kB / 414.1 MB, free: 9.395 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.3997, allocations: 99.89 kB / 414.2 MB, free: 9.297 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.3997, allocations: 0 / 414.2 MB, free: 9.297 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006958/0.4004, allocations: 429.2 kB / 414.6 MB, free: 8.871 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.4005, allocations: 134.7 kB / 414.8 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.4005, allocations: 0 / 414.8 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.4006, allocations: 8 kB / 414.8 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.977e-05/0.4007, allocations: 15.94 kB / 414.8 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.4007, allocations: 4 kB / 414.8 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.401, allocations: 31.88 kB / 414.8 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/0.4011, allocations: 119.8 kB / 414.9 MB, free: 8.539 MB / 298.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.0002442/0.4013, allocations: 275.4 kB / 415.2 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.089e-05/0.4014, allocations: 79.06 kB / 415.3 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002122/0.4017, allocations: 126.2 kB / 415.4 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.4017, allocations: 0 / 415.4 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.4017, allocations: 4 kB / 415.4 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4017, allocations: 0 / 415.4 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006685/0.4024, allocations: 0.5834 MB / 416 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4024, allocations: 0 / 416 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.655e-05/0.4024, allocations: 16.12 kB / 416 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.4024, allocations: 4.047 kB / 416 MB, free: 7.387 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.346e-05/0.4025, allocations: 27.97 kB / 416 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.4025, allocations: 4 kB / 416 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4025, allocations: 0 / 416 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00079/0.4033, allocations: 0.5271 MB / 416.6 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006927/0.404, allocations: 0.4919 MB / 417.1 MB, free: 6.297 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.4041, allocations: 20 kB / 417.1 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.4044, allocations: 31.97 kB / 417.1 MB, free: 6.246 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.4045, allocations: 55.94 kB / 417.2 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.4047, allocations: 115.9 kB / 417.3 MB, free: 6.078 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008718/0.4055, allocations: 0.6861 MB / 418 MB, free: 5.395 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4056, allocations: 0 / 418 MB, free: 5.395 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003488/0.4059, allocations: 84.19 kB / 418.1 MB, free: 5.312 MB / 298.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.0001847/0.4061, allocations: 134.7 kB / 418.2 MB, free: 5.168 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006886/0.4068, allocations: 0.6225 MB / 418.8 MB, free: 4.496 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4068, allocations: 0 / 418.8 MB, free: 4.496 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004508/0.4073, allocations: 0.5094 MB / 419.3 MB, free: 3.938 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007898/0.4081, allocations: 171.1 kB / 419.5 MB, free: 3.773 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.4097, allocations: 1.063 MB / 420.5 MB, free: 2.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000603/0.4103, allocations: 0.9874 MB / 421.5 MB, free: 1.664 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003725/0.4107, allocations: 161 kB / 421.7 MB, free: 1.508 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.4109, allocations: 67.48 kB / 421.8 MB, free: 1.441 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.4109, allocations: 0 / 421.8 MB, free: 1.441 MB / 298.7 MB Notification: Performance of Templates: time 0.009412/0.4203, allocations: 6.412 MB / 428.2 MB, free: 10.98 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)