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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01145/0.01145, allocations: 170 kB / 16.26 MB, free: 6.613 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.942/1.942, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0005828/0.000583, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.367/0.3676, allocations: 47.58 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002292/0.37, allocations: 1.812 MB / 328.8 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002416/0.3724, allocations: 1.07 MB / 329.9 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.3726, allocations: 2.031 kB / 329.9 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001982/0.3728, allocations: 27.19 kB / 329.9 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.373, allocations: 53.28 kB / 330 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.3734, allocations: 109.4 kB / 330.1 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004248/0.3738, allocations: 333.3 kB / 330.4 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002433/0.3741, allocations: 96.73 kB / 330.5 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001224/0.3753, allocations: 0.9076 MB / 331.4 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.3755, allocations: 162.6 kB / 331.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.918e-05/0.3756, allocations: 12.69 kB / 331.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.167e-05/0.3757, allocations: 8.625 kB / 331.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000184/0.3759, allocations: 154.4 kB / 331.8 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003018/0.3762, allocations: 280.3 kB / 332 MB, free: 14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009875/0.3772, allocations: 0.9212 MB / 332.9 MB, free: 13.29 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3772, allocations: 0 / 332.9 MB, free: 13.29 MB / 270.1 MB Notification: Performance of FrontEnd: time 5.71e-06/0.3772, allocations: 1.062 kB / 332.9 MB, free: 13.29 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.3772, allocations: 3.938 kB / 333 MB, free: 13.29 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.001514/0.3787, allocations: 0.9715 MB / 333.9 MB, free: 12.38 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.06e-05/0.3788, allocations: 13.97 kB / 333.9 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001634/0.379, allocations: 80.09 kB / 334 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006379/0.3796, allocations: 428.1 kB / 334.4 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.716e-05/0.3797, allocations: 16.38 kB / 334.4 MB, free: 11.83 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.705e-05/0.3798, allocations: 24.36 kB / 334.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007825/0.3806, allocations: 305.5 kB / 334.8 MB, free: 11.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.3806, allocations: 0 / 334.8 MB, free: 11.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.306e-05/0.3807, allocations: 12 kB / 334.8 MB, free: 11.49 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.3807, allocations: 4 kB / 334.8 MB, free: 11.48 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005113/0.3812, allocations: 203.9 kB / 335 MB, free: 11.29 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001891/0.3831, allocations: 0.89 MB / 335.9 MB, free: 10.34 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005326/0.3837, allocations: 222.4 kB / 336.1 MB, free: 10.12 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/0.384, allocations: 156.8 kB / 336.2 MB, free: 9.961 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.634e-05/0.384, allocations: 0 / 336.2 MB, free: 9.961 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006145/0.3846, allocations: 385.9 kB / 336.6 MB, free: 9.547 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.874e-06/0.3847, allocations: 0 / 336.6 MB, free: 9.547 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001476/0.3861, allocations: 0.7413 MB / 337.4 MB, free: 8.773 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.3863, allocations: 178.2 kB / 337.5 MB, free: 8.562 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001577/0.3879, allocations: 0.9961 MB / 338.5 MB, free: 7.555 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.652e-05/0.3879, allocations: 37.7 kB / 338.6 MB, free: 7.512 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.3881, allocations: 153.8 kB / 338.7 MB, free: 7.359 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.3882, allocations: 55.27 kB / 338.8 MB, free: 7.305 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.709e-05/0.3883, allocations: 41.7 kB / 338.8 MB, free: 7.258 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002424/0.3885, allocations: 342.7 kB / 339.1 MB, free: 6.914 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003092/0.3889, allocations: 127.9 kB / 339.3 MB, free: 6.789 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.3892, allocations: 168.2 kB / 339.4 MB, free: 6.609 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006817/0.3899, allocations: 473.7 kB / 339.9 MB, free: 6.082 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.3899, allocations: 0 / 339.9 MB, free: 6.082 MB / 270.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001112/0.391, allocations: 0.5819 MB / 340.5 MB, free: 5.469 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001242/0.3912, allocations: 138.8 kB / 340.6 MB, free: 5.309 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3912, allocations: 0 / 340.6 MB, free: 5.309 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.3912, allocations: 0 / 340.6 MB, free: 5.309 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.987e-05/0.3913, allocations: 15.98 kB / 340.6 MB, free: 5.293 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.3913, allocations: 7.938 kB / 340.6 MB, free: 5.285 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003447/0.3917, allocations: 39.81 kB / 340.7 MB, free: 5.246 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.3918, allocations: 111.9 kB / 340.8 MB, free: 5.137 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.0007347/0.3926, allocations: 0.5416 MB / 341.3 MB, free: 4.559 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.3927, allocations: 75.25 kB / 341.4 MB, free: 4.484 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002338/0.3929, allocations: 130.3 kB / 341.5 MB, free: 4.344 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.3929, allocations: 0 / 341.5 MB, free: 4.344 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.393, allocations: 3.938 kB / 341.5 MB, free: 4.34 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.393, allocations: 3.984 kB / 341.5 MB, free: 4.336 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000933/0.3939, allocations: 0.6296 MB / 342.2 MB, free: 3.656 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3939, allocations: 0 / 342.2 MB, free: 3.656 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.667e-05/0.394, allocations: 15.98 kB / 342.2 MB, free: 3.641 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.394, allocations: 4 kB / 342.2 MB, free: 3.637 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.264e-05/0.3941, allocations: 20.11 kB / 342.2 MB, free: 3.617 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/0.3941, allocations: 4 kB / 342.2 MB, free: 3.613 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.3941, allocations: 4 kB / 342.2 MB, free: 3.609 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.3954, allocations: 0.7062 MB / 342.9 MB, free: 2.859 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007741/0.3962, allocations: 0.4957 MB / 343.4 MB, free: 2.344 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.3964, allocations: 20 kB / 343.4 MB, free: 2.324 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.3966, allocations: 27.97 kB / 343.5 MB, free: 2.297 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.3968, allocations: 51.95 kB / 343.5 MB, free: 2.246 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001542/0.397, allocations: 111.9 kB / 343.6 MB, free: 2.137 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.001128/0.3981, allocations: 0.729 MB / 344.4 MB, free: 1.41 MB / 270.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3981, allocations: 0 / 344.4 MB, free: 1.41 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004426/0.3986, allocations: 87.91 kB / 344.4 MB, free: 1.324 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.0002628/0.3989, allocations: 138.7 kB / 344.6 MB, free: 1.18 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.4, allocations: 0.6574 MB / 345.2 MB, free: 484 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.4, allocations: 128 / 345.2 MB, free: 484 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005971/0.4006, allocations: 0.5327 MB / 345.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009034/0.4015, allocations: 175.2 kB / 345.9 MB, free: 15.72 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002586/0.4041, allocations: 1.55 MB / 347.5 MB, free: 14.14 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008589/0.405, allocations: 0.9678 MB / 348.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004653/0.4055, allocations: 165.1 kB / 348.6 MB, free: 12.98 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001986/0.4057, allocations: 75.56 kB / 348.7 MB, free: 12.91 MB / 286.1 MB Notification: Performance of SimCode: time 1.543e-06/0.4057, allocations: 0 / 348.7 MB, free: 12.91 MB / 286.1 MB Notification: Performance of Templates: time 0.01229/0.418, allocations: 6.842 MB / 355.5 MB, free: 6.031 MB / 286.1 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)