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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001965/0.001965, allocations: 110.8 kB / 17.06 MB, free: 6.02 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.002492/0.002492, allocations: 191 kB / 18 MB, free: 5.102 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.928/1.928, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001625/0.001625, allocations: 55.92 kB / 327.9 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.15, allocations: 46.62 MB / 374.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.005189/0.1553, allocations: 2.122 MB / 376.6 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002925/0.1582, allocations: 1.065 MB / 377.7 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002648/0.1585, allocations: 7.938 kB / 377.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002354/0.1588, allocations: 35.66 kB / 377.7 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002204/0.159, allocations: 47.52 kB / 377.8 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006435/0.1597, allocations: 127.8 kB / 377.9 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006151/0.1603, allocations: 407.1 kB / 378.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003202/0.1606, allocations: 111 kB / 378.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3003/0.461, allocations: 0.9353 MB / 379.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000386/0.4614, allocations: 196.8 kB / 379.5 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.4615, allocations: 33.69 kB / 379.5 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.4616, allocations: 36.16 kB / 379.6 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002592/0.4619, allocations: 166.4 kB / 379.7 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002927/0.4622, allocations: 288.1 kB / 380 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001228/0.4634, allocations: 0.9715 MB / 381 MB, free: 9.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.4635, allocations: 4.609 kB / 381 MB, free: 9.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4635, allocations: 4.75 kB / 381 MB, free: 9.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.4635, allocations: 0 / 381 MB, free: 9.984 MB / 318.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.001729/0.4652, allocations: 1.147 MB / 382.2 MB, free: 9.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.373e-05/0.4653, allocations: 9.312 kB / 382.2 MB, free: 9.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002073/0.4655, allocations: 85.89 kB / 382.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004898/0.466, allocations: 434.2 kB / 382.7 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.965e-05/0.4661, allocations: 18.47 kB / 382.7 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.221e-05/0.4662, allocations: 19.31 kB / 382.7 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007347/0.4669, allocations: 297.7 kB / 383 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.4669, allocations: 5.062 kB / 383 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.066e-05/0.467, allocations: 9.375 kB / 383 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.467, allocations: 4.344 kB / 383 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004826/0.4675, allocations: 215.9 kB / 383.2 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.4691, allocations: 0.8864 MB / 384.1 MB, free: 8.418 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004897/0.4696, allocations: 215.9 kB / 384.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003331/0.4699, allocations: 158.9 kB / 384.5 MB, free: 8.387 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.47, allocations: 3.844 kB / 384.5 MB, free: 8.387 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007178/0.4707, allocations: 388.6 kB / 384.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.154e-06/0.4707, allocations: 0 / 384.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001596/0.4723, allocations: 0.7432 MB / 385.6 MB, free: 7.922 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.28e-05/0.4724, allocations: 175.8 kB / 385.8 MB, free: 7.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/0.4741, allocations: 1.001 MB / 386.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.653e-05/0.4742, allocations: 37.25 kB / 386.8 MB, free: 7.191 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.4743, allocations: 154.2 kB / 387 MB, free: 7.062 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.536e-05/0.4744, allocations: 60.02 kB / 387 MB, free: 7.023 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003155/0.4747, allocations: 169.5 kB / 387.2 MB, free: 6.934 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.4749, allocations: 339.4 kB / 387.5 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003142/0.4752, allocations: 120.4 kB / 387.6 MB, free: 6.566 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003704/0.4756, allocations: 163 kB / 387.8 MB, free: 6.477 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006554/0.4762, allocations: 476.7 kB / 388.3 MB, free: 6.098 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.4763, allocations: 1.094 kB / 388.3 MB, free: 6.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00121/0.4775, allocations: 0.5827 MB / 388.8 MB, free: 5.805 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.4776, allocations: 137 kB / 389 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.4776, allocations: 2.5 kB / 389 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.271e-05/0.4777, allocations: 2.797 kB / 389 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.4778, allocations: 16.98 kB / 389 MB, free: 5.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.4778, allocations: 5.641 kB / 389 MB, free: 5.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002692/0.4781, allocations: 18.98 kB / 389 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002051/0.4783, allocations: 113.8 kB / 389.1 MB, free: 5.652 MB / 318.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.0007994/0.4791, allocations: 0.544 MB / 389.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.4793, allocations: 83.75 kB / 389.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002531/0.4795, allocations: 133.3 kB / 389.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.4796, allocations: 7.062 kB / 389.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.4796, allocations: 5.562 kB / 389.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.4796, allocations: 0.75 kB / 389.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.4807, allocations: 0.6231 MB / 390.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.4807, allocations: 0.8438 kB / 390.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.008e-05/0.4808, allocations: 10.45 kB / 390.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.4808, allocations: 1.125 kB / 390.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.081e-05/0.4809, allocations: 27.22 kB / 390.6 MB, free: 4.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.4809, allocations: 4 kB / 390.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4809, allocations: 1.062 kB / 390.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.4821, allocations: 0.7032 MB / 391.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006474/0.4827, allocations: 0.4974 MB / 391.8 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.4828, allocations: 23.94 kB / 391.8 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.483, allocations: 15.83 kB / 391.8 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/0.4832, allocations: 50.88 kB / 391.9 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001659/0.4834, allocations: 118.4 kB / 392 MB, free: 3.969 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00114/0.4845, allocations: 0.7295 MB / 392.7 MB, free: 3.609 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4845, allocations: 0 / 392.7 MB, free: 3.609 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004341/0.485, allocations: 93.86 kB / 392.8 MB, free: 3.598 MB / 318.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.0002131/0.4852, allocations: 138.6 kB / 392.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.4862, allocations: 0.6532 MB / 393.6 MB, free: 3.055 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4863, allocations: 0 / 393.6 MB, free: 3.055 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006234/0.4869, allocations: 0.5298 MB / 394.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009882/0.4879, allocations: 203.3 kB / 394.3 MB, free: 2.578 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/0.4903, allocations: 1.339 MB / 395.7 MB, free: 1.844 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007412/0.4911, allocations: 0.9663 MB / 396.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005447/0.4916, allocations: 161 kB / 396.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/0.4918, allocations: 75.77 kB / 396.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4918, allocations: 0 / 396.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of Templates: time 0.01686/0.5087, allocations: 7.736 MB / 404.6 MB, free: 14.32 MB / 334.1 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)