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.001423/0.001423, allocations: 184 kB / 8.354 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.328/1.328, allocations: 194.3 MB / 203.1 MB, free: 13.03 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.001704/0.001704, allocations: 118.6 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.652e-05/1.655e-05, allocations: 7.938 kB / 298.1 MB, free: 35.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07099/0.07102, allocations: 44.5 MB / 342.6 MB, free: 6.996 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2751/0.3462, allocations: 78.34 MB / 420.9 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001699/0.3464, allocations: 71.16 kB / 421 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06053/0.4069, allocations: 34.36 MB / 455.3 MB, free: 11.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.407, allocations: 3.938 kB / 455.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.155e-05/0.407, allocations: 16 kB / 455.4 MB, free: 11.95 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.001378/0.4084, allocations: 0.8675 MB / 456.2 MB, free: 11.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.4085, allocations: 12.03 kB / 456.2 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.4087, allocations: 82.97 kB / 456.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007967/0.4095, allocations: 403 kB / 456.7 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.208e-05/0.4096, allocations: 11.98 kB / 456.7 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.353e-05/0.4097, allocations: 15.94 kB / 456.7 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006157/0.4103, allocations: 193.3 kB / 456.9 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007344/0.4111, allocations: 271.9 kB / 457.2 MB, free: 10.22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.4111, allocations: 8 kB / 457.2 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.03e-05/0.4112, allocations: 7.75 kB / 457.2 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.4112, allocations: 4 kB / 457.2 MB, free: 10.2 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.4132, allocations: 0.8307 MB / 458 MB, free: 9.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005285/0.4138, allocations: 202.9 kB / 458.2 MB, free: 9.391 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003645/0.4142, allocations: 145.3 kB / 458.4 MB, free: 9.309 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.86e-05/0.4142, allocations: 7.984 kB / 458.4 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006859/0.4149, allocations: 372.7 kB / 458.8 MB, free: 8.953 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.565e-06/0.4149, allocations: 0 / 458.8 MB, free: 8.953 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001412/0.4164, allocations: 461.8 kB / 459.2 MB, free: 8.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/0.4165, allocations: 172.8 kB / 459.4 MB, free: 8.391 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001847/0.4184, allocations: 0.8421 MB / 460.2 MB, free: 7.711 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.341e-05/0.4185, allocations: 35.14 kB / 460.2 MB, free: 7.672 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.4186, allocations: 156.1 kB / 460.4 MB, free: 7.551 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.4188, allocations: 55.94 kB / 460.5 MB, free: 7.508 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-05/0.4189, allocations: 9.562 kB / 460.5 MB, free: 7.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.4191, allocations: 336.8 kB / 460.8 MB, free: 7.172 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003551/0.4194, allocations: 111.4 kB / 460.9 MB, free: 7.105 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004082/0.4199, allocations: 143 kB / 461 MB, free: 6.957 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.4202, allocations: 91.89 kB / 461.1 MB, free: 6.867 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.355e-06/0.4202, allocations: 4 kB / 461.1 MB, free: 6.863 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001317/0.4215, allocations: 425.2 kB / 461.5 MB, free: 6.441 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001502/0.4217, allocations: 138.8 kB / 461.7 MB, free: 6.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.4217, allocations: 3.984 kB / 461.7 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.4218, allocations: 0 / 461.7 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.4219, allocations: 19.92 kB / 461.7 MB, free: 6.258 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.4219, allocations: 0 / 461.7 MB, free: 6.258 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005382/0.4225, allocations: 39.83 kB / 461.7 MB, free: 6.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002139/0.4227, allocations: 111.9 kB / 461.9 MB, free: 6.109 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.0003612/0.4231, allocations: 269.9 kB / 462.1 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/0.4233, allocations: 79.16 kB / 462.2 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003736/0.4237, allocations: 134.1 kB / 462.3 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-05/0.4238, allocations: 0 / 462.3 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.768e-05/0.4238, allocations: 0 / 462.3 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/0.4238, allocations: 0 / 462.3 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.425, allocations: 0.5827 MB / 462.9 MB, free: 4.984 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.425, allocations: 0 / 462.9 MB, free: 4.984 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.206e-05/0.4251, allocations: 19.98 kB / 462.9 MB, free: 4.965 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.4252, allocations: 3.938 kB / 462.9 MB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.281e-05/0.4252, allocations: 23.98 kB / 463 MB, free: 4.938 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.4253, allocations: 0 / 463 MB, free: 4.938 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.4253, allocations: 0 / 463 MB, free: 4.938 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.4267, allocations: 0.5348 MB / 463.5 MB, free: 4.383 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/0.4278, allocations: 499.7 kB / 464 MB, free: 3.875 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.428, allocations: 24.12 kB / 464 MB, free: 3.852 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/0.4285, allocations: 35.88 kB / 464 MB, free: 3.816 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002395/0.4287, allocations: 51.97 kB / 464.1 MB, free: 3.766 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002109/0.4289, allocations: 119.9 kB / 464.2 MB, free: 3.648 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001521/0.4305, allocations: 0.69 MB / 464.9 MB, free: 2.961 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4305, allocations: 0 / 464.9 MB, free: 2.961 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006142/0.4311, allocations: 80 kB / 465 MB, free: 2.883 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.0002567/0.4314, allocations: 134.7 kB / 465.1 MB, free: 2.742 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.4326, allocations: 0.6225 MB / 465.7 MB, free: 2.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.4327, allocations: 0 / 465.7 MB, free: 2.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007861/0.4335, allocations: 0.5054 MB / 466.2 MB, free: 1.516 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.4348, allocations: 180 kB / 466.4 MB, free: 1.344 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00287/0.4377, allocations: 1.067 MB / 467.5 MB, free: 256 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.4387, allocations: 0.9796 MB / 468.5 MB, free: 15.24 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005297/0.4392, allocations: 160.9 kB / 468.6 MB, free: 15.08 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002359/0.4395, allocations: 71.3 kB / 468.7 MB, free: 15.01 MB / 330.7 MB Notification: Performance of SimCode: time 5.51e-07/0.4395, allocations: 0 / 468.7 MB, free: 15.01 MB / 330.7 MB Notification: Performance of Templates: time 0.01268/0.4522, allocations: 6.409 MB / 475.1 MB, free: 8.57 MB / 330.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)